From 7a4acb5bb6efd93905b5acab1304502945660a47 Mon Sep 17 00:00:00 2001 From: djerom Date: Fri, 22 Apr 2022 18:41:30 +0500 Subject: [PATCH] wit added --- svgmap/svg-map-builder.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/svgmap/svg-map-builder.js b/svgmap/svg-map-builder.js index 7d68a95..13b0343 100644 --- a/svgmap/svg-map-builder.js +++ b/svgmap/svg-map-builder.js @@ -30,26 +30,26 @@ function build_pt_layer(wells, settings, style) { return { svg }; } -function build_it_layer(wells, settings) { +function build_it_layer(wells, settings, style) { 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) return Math.sqrt(((tons / settings.tons_in_cm2) * 100) / Math.PI); } - let { ppu, style } = settings; + let { ppu } = settings; 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( - 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 }; }