wit added
This commit is contained in:
parent
813abcd9d4
commit
7a4acb5bb6
@ -30,26 +30,26 @@ function build_pt_layer(wells, settings, style) {
|
|||||||
return { svg };
|
return { svg };
|
||||||
}
|
}
|
||||||
|
|
||||||
function build_it_layer(wells, settings) {
|
function build_it_layer(wells, settings, style) {
|
||||||
function t2r(tons) {
|
function t2r(tons) {
|
||||||
// tonns/mm2 = tonns/cm2 / 100. S(mm)=Pi*r*r=tons/tons_in_cm2*100. r = sqrt(tons/tons_in_cm2*100 / PI)
|
// tonns/mm2 = tonns/cm2 / 100. S(mm)=Pi*r*r=tons/tons_in_cm2*100. r = sqrt(tons/tons_in_cm2*100 / PI)
|
||||||
return Math.sqrt(((tons / settings.tons_in_cm2) * 100) / Math.PI);
|
return Math.sqrt(((tons / settings.tons_in_cm2) * 100) / Math.PI);
|
||||||
}
|
}
|
||||||
|
|
||||||
let { ppu, style } = settings;
|
let { ppu } = settings;
|
||||||
|
|
||||||
let svg = corel_layer("WWIT");
|
let svg = corel_layer("WWIT");
|
||||||
|
|
||||||
// Круги
|
// Круги
|
||||||
svg.append(wells.map((x) => SvgWellNodes.ring.it(t2r(x.wwit), ppu, style).move(x.lx, x.ly)));
|
svg.append(wells.map((x) => well_ring.it(t2r(x.wwit), ppu, style).move(x.lx, x.ly)));
|
||||||
|
|
||||||
// Знак скважины
|
// Знак скважины
|
||||||
svg.append(
|
svg.append(
|
||||||
wells.map((x) => SvgWellNodes.wellhead[t2r(x.wwit) > 1.6 ? "inj" : "gray"](ppu, style).move(x.lx, x.ly))
|
wells.map((x) => well_head[t2r(x.wwit) > 1.6 ? "inj" : "gray"](ppu, style).move(x.lx, x.ly))
|
||||||
);
|
);
|
||||||
|
|
||||||
// Имя скважины
|
// Имя скважины
|
||||||
svg.append(wells.map((x) => SvgWellNodes.wellhead.name(x.name, ppu, style).move(x.lx, x.ly)));
|
svg.append(wells.map((x) => well_head.name(x.name, ppu, style).move(x.lx, x.ly)));
|
||||||
|
|
||||||
return { svg };
|
return { svg };
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user