26 lines
415 B
JavaScript
26 lines
415 B
JavaScript
module.exports = class {
|
|
|
|
set_scale(scale){
|
|
this.scale = scale
|
|
}
|
|
|
|
get_bbox(data){
|
|
return data.reduce(
|
|
(s, c) => ({
|
|
l: Math.min(s.l, c.x),
|
|
t: Math.min(s.t, c.y),
|
|
r: Math.max(s.r, c.x),
|
|
b: Math.max(s.b, c.y),
|
|
}),
|
|
{ l: data[0].x, t: data[0].y, r: data[0].x, b: data[0].y }
|
|
)
|
|
}
|
|
|
|
wells_layer(wells){
|
|
|
|
}
|
|
|
|
render(){
|
|
|
|
}
|
|
} |