/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // identity function for calling harmony imports with the correct context /******/ __webpack_require__.i = function(value) { return value; }; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ } /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 5); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports) { /* COPYRIGHT 2012 SUPERMAP * 本程序只能在有效的授权许可下使用。 * 未经许可,不得以任何手段擅自使用或传播。*/ /** * @requires SuperMap/BaseTypes.js */ /** * Namespace: SuperMap.Lang * 国际化的命名空间,包含多种语言和方法库来设置和获取当前的语言。 */ var SuperMapAlgoPlot = window.SuperMapAlgoPlot = window.SuperMapAlgoPlot || {}; /*** * @private * @type {{translate: SuperMap.PlotLang.translate}} */ SuperMapAlgoPlot.PlotLang = { /** * APIMethod: translate * 从当前语言字符串的字典查找key。 * getCode获取的值用来判断合适的字典。字典存储在 方法中。 * * Parameters: * key - {String} 字典中i18n字符串值的关键字. * context - {Object} 使用此参数。 * * Returns: * {String} 国际化的字符串。 */ translate: function (key, context) { var dictionary = SuperMapAlgoPlot.PlotLang["zh-CN"]; var message = dictionary && dictionary[key]; if (!message) { // Message not found, fall back to message key message = key; } if (context) { message = SuperMapAlgoPlot.String.format(message, context); } return message; } }; /** * @private * APIMethod: SuperMap.plotI18n * 的别名. 当前语言字符串的字典查找key。 * getCode获取的值用来判断合适的字典。字典存储在 方法中。 * * Parameters: * key - {String} 字典中i18n字符串值的关键字. * context - {Object} 使用此参数。 * * Returns: * {String} 国际化的字符串。 */ SuperMapAlgoPlot.plotI18n = SuperMapAlgoPlot.PlotLang.translate; /** * @private * */ SuperMapAlgoPlot.PlotLang["zh-CN"] = { //字体 'SongTi': "宋体", //text 'text': "文本", 'textSizeLabel': "字体大小", 'textSizeTitle': "字体大小", 'textFaceNameLabel': "字体", 'textFaceNameTitle': "字体", 'textAlignLabel': "水平对齐方式", 'textAlignTitle': "文本的水平对齐方式", 'textVerticalAlignmentLabel': "垂直对齐方式", 'textVerticalAlignmentTitle': "文本的垂直对齐方式", 'textHaloRadiusLabel': "文本边框宽度", 'textHaloRadiusTitle': "文本的外围边框的宽度", 'textHaloColorLabel': "文本边框颜色", 'textHaloColorTitle': "文本的外围边框的颜色", 'textFillLabel': "文本颜色", 'textFillTitle': "文本的颜色值", 'textOpacityLabel': "透明度", 'textOpacityTitle': "文本的透明度", 'textDxLabel': "横向偏移", 'textDxTitle': "文本的横向偏移值", 'textDyLabel': "纵向偏移值", 'textDyTitle': "文本的纵向偏移值", 'textCompOpLabel': "叠加方式", 'textCompOpTitle': "文本之间相互叠加里使用的覆盖或者是异或等运算方式", 'expandingPointContent': "展", 'volleyPointContent': "齐", 'rendezvousPointContent': "会", 'supplyPointContent': "补", //symbolAlgo //JB 'symbolAlgo_17703': "加", 'symbolAlgo_17704': "急", 'symbolAlgo_21600': "冲", 'symbolAlgo_28000_1': "危", 'symbolAlgo_28000_2': "中", 'symbolAlgo_28000_3': "轻", 'symbolAlgo_315': "突击", 'symbolAlgo_31304': "慑阻", 'symbolAlgo_3010301': "调", 'symbolAlgo_3010303': "出", 'symbolAlgo_3010304': "协", //WJ 'symbolAlgo_2121505': "火", 'symbolAlgo_2121506': "墩", 'symbolAlgo_2121507': "复", 'symbolAlgo_2121601': "遥", 'symbolAlgo_2121602': "障", 'symbolAlgo_30010': "?", 'symbolAlgo_3001101': "集", 'symbolAlgo_3001102': "暴", 'symbolAlgo_3001103': "骚", 'symbolAlgo_3001104': "私", 'symbolAlgo_3001105': "盗", 'symbolAlgo_30020': "水", 'symbolAlgo_3002001': "震", 'symbolAlgo_3002004': "火", 'symbolAlgo_30025': "滞", 'symbolAlgo_5010301': "调", 'symbolAlgo_5010303': "出", 'symbolAlgo_5010304': "协", 'symbolAlgo_5010401': "JZ", 'symbolAlgo_5022001': "ZD0", 'symbolAlgo_5034801': "催", "symbolAlgo_60203": "避", 'symbolAlgo_60301': "爆", 'symbolAlgo_6030101': "挖", 'symbolAlgo_6030102': "浇", 'symbolAlgo_6030103': "砌", 'symbolAlgo_6030104': "装", 'symbolAlgo_6030105': "石", 'symbolAlgo_6030106': "沙", 'symbolAlgo_6030107': "练", 'symbolAlgo_60304': "隧", 'symbolAlgo_3002501': "踏", 'symbolAlgo_30026': "灾", 'symbolAlgo_40104': "缉", 'symbolAlgo_4030301': "标", 'symbolAlgo_4030302': "劝", 'symbolAlgo_4030303': "疏", 'symbolAlgo_40304': "警", 'symbolAlgo_4030401': "警", //basic symbol 'polyLine': "折线", 'parallelogram': "平行四边形", 'circle': "圆", 'ellipse': "椭圆", 'annotation': "注记", 'regularPolygon': "正多边形", 'polygon': "多边形", 'bezier': "贝塞尔曲线", 'closedBesselCurve': "闭合贝塞尔曲线", 'kidney': "集结地", 'brace': "大括号", 'trapezoid': "梯形", 'rectangle': "矩形", 'chord': "弓形", 'sector': "扇形", 'arc': "弧线", 'parallel': "平行线", 'annoframe': "注记指示框", 'tooltipBoxM': "多角标注框", 'runway': "跑道线", 'curveEight': "八字形", 'arrowLine': "箭头线", 'pathText': "沿线注记", 'concentricCircle': "同心圆", 'combinedCircle': "组合圆", 'freeCurve': "自由线", 'nodeChain': "节点链", 'lineMarking': "线型标注", 'symbolTextBox': "标注框", 'parallelFlatArrow': "平行平耳箭头", 'multipleArrow': "多箭头", 'trapezoidalFlatArrow': "梯形平耳箭头", 'besselPointArrow': "贝塞尔尖耳箭头", 'besselArrow': "普通贝塞尔箭头", 'doubleArrow': "钳击箭头", 'brokenSpaceTriangleArrow': "折线空三角箭头", 'besselDovetailArrow': "贝塞尔燕尾箭头", 'ordinaryLineArrow': "普通折线箭头", 'besselPointedEarsTailArrow': "贝塞尔尖耳燕尾箭头", 'besselTipArrow': "贝塞尔尖耳单点箭头", 'besselArrowNoGraph': "普通贝塞尔箭头(不随图)", 'brokenSpaceTriangleArrowNoGraph': "折线空三角箭头(不随图)", 'besselPointedEarsTailArrowNoGraph': "贝塞尔尖耳燕尾箭头(不随图)", 'ordinaryLineArrowNoGraph': "普通折线箭头(不随图)", 'combianationArrow': "组合箭头", 'symbolAlgo_311': '进攻方向', 'symbolAlgo_317': '钳击', //new obj 'airDeployment': "空军兵力部署", 'airRoute': "空军航线", 'arcRegion': "扇形区域", 'flagGroup': "多旗", 'lineRelation': "对象间连线", 'polygonRegion': "多边形区域管理", 'navyRoute': "海军航线", 'missileRoute': "导弹航线", 'navyDeployment': "海军兵力部署", 'satelliteTimeWindows': "卫星时间窗", 'satellite': "卫星", 'symbolText': "对象标注", 'symbolText1': "对象标注(带指示线)", 'interferenceBeam': "干扰波束", 'groupObject': "组合对象", //routeNodeTypeName 'RENDEZVOUS': "会合点", 'EXPANDING': "展开点", 'VOLLEY': "齐射点", 'STANDBY': "待机点", 'SUPPLY': "补给点", 'TAKEOFF': "起飞点", 'INITIAL': "初始点", 'VISUALINITAL': "可视初始点", 'LANCH': "发射点", 'TURNING': "转弯点", 'AIMING': "瞄准点", 'COMMONROUTE': "普通航路点", 'WEAPONLAUNCH': "武器发射点", 'TARGET': "目标点", 'ATTACK': "攻击点", 'SUPPRESS': "压制点", 'EIGHTSPIRAL': "八字盘旋点", 'HAPPYVALLEY': "跑马圈点", 'LITERATESIGN': "标牌文字", 'undoStackOverflow': '撤销的栈溢出', //Mapviewer 'noContent': '无内容', 'lableTitle': '_标签图层', "Distance": '距离', "Area": '面积:', "SpaceDistance": '空间距离', "VerticalHeight": '垂直高度', "LevelDistance": '水平距离', "SYMBOL_Model": '模型', "SYMBOL_POINT": '点图元', "OVERLAYER_DETAIL":'详细信息', }; /***/ }), /* 1 */ /***/ (function(module, exports) { !function(){"use strict";function t(e){"@babel/helpers - typeof";return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){for(var o=0;ol&&fl){var g;g=P>l?s:c,(p=this.getLineAddCircleIntersectPts(s,c,a)).length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p[0],g])}else{var y=SuperMapAlgoPlot.PlottingUtil.projectPoint(i,s,c);if(SuperMapAlgoPlot.PlottingUtil.distance(i,y)>=l)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c]);else if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(y,s,c)){if((p=this.getLineAddCircleIntersectPts(s,c,a)).length>0){p.unshift(s),p.push(c);for(var h=0;hSuperMapAlgoPlot.PlottingUtil.distance(n,o)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,o){var l=o.slice();l[0].x===l[l.length-1].x&&l[0].y===l[l.length-1].y||l.push(l[0]);for(var n,r=[],i=0;ie.x)for(var c=0;cr[P+1].x&&(n=r[P],r[P]=r[P+1],r[P+1]=n);else if(t.y>e.y)for(var f=0;fr[g+1].y&&(n=r[g],r[g]=r[g+1],r[g+1]=n);return r}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=0,r=-1,i=null,a=0;a1&&(P=1),this.scaleValues[0]=P}if(1===t){var f=this.scaleValues[0]*l,g=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,f);if(-1===g.index)return;var y=SuperMapAlgoPlot.PlottingUtil.distance(g.pt,e)/l;y>.4&&(y=.4),this.scaleValues[1]=y}}}}])&&e(n.prototype,r),i&&e(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}();function i(t){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var o=0;o1&&(P.push(f),f=[]):f.push(i.pt[g]);f.length>1&&P.push(f);for(var y=0;ythis.scaleValues.length)return;var l,n,r,i,a,u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),p=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),s=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t){var c=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),P=SuperMapAlgoPlot.PlottingUtil.distance(c,s);n=2*P/u,this.scaleValues[1]=n}else if(1===t)c=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),l=(P=SuperMapAlgoPlot.PlottingUtil.distance(c,s))/u,this.scaleValues[0]=l;else if(2==t){var f=-1,g=0;a=new SuperMapAlgoPlot.Point(0,0),l=this.scaleValues[0],n=this.scaleValues[1];for(var y=0;yd&&(f=y,a=b,g=d)}}if(-1==f||f>p.length-1)return;i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p);for(var A=[],M=0;Mi)return;r=m/i,this.scaleValues[2]=r}else if(3===t){l=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2];var v=(i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p))*r;if(-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,v)).index)return;var O=SuperMapAlgoPlot.PlottingUtil.distance(a.pt,e)/u;O>.4&&(O=.4),this.scaleValues[3]=O}}}},{key:"GetCurvePts",value:function(t,e,o){for(var l,n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),i=r*e,a=r*o/2,u=[],p=[],s=n[0],c=!1,P=n[0],f=1;f1&&0===b?this.ClearCurvePts2D(P,s,g,p,d,u):u.concat(d),p=(p=[]).concat(d),P=s,s=h}f===n.length-1&&(h=n[n.length-1],d=this.GetCosPts2D(s,h,i,a),u=p.length>1&&d.length>1?this.ClearCurvePts2D(P,s,g,p,d,u):u.concat(d))}}return{pt:u,scalePt:l}}},{key:"GetCosPts2D",value:function(t,e,o,l){for(var n=[],r=SuperMapAlgoPlot.PlottingUtil.distance(t,e),i=o/30,a=0;an&&gn){var y;y=f>n?P:a,(c=this.getLineAddCircleIntersectPts(P,a,p)).length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c[0],y])}else{var h=SuperMapAlgoPlot.PlottingUtil.projectPoint(u,P,a);if(SuperMapAlgoPlot.PlottingUtil.distance(u,h)>=n)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[P,a]);else if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(h,P,a)){if((c=this.getLineAddCircleIntersectPts(P,a,p)).length>0){c.unshift(P),c.push(a);for(var S=0;SSuperMapAlgoPlot.PlottingUtil.distance(n,o)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,o){var l=o.slice();l[0].x===l[l.length-1].x&&l[0].y===l[l.length-1].y||l.push(l[0]);for(var n,r=[],i=0;ie.x)for(var c=0;cr[P+1].x&&(n=r[P],r[P]=r[P+1],r[P+1]=n);else if(t.y>e.y)for(var f=0;fr[g+1].y&&(n=r[g],r[g]=r[g+1],r[g+1]=n);return r}}])&&f(e.prototype,o),l&&f(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function b(t){"@babel/helpers - typeof";return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var o=0;o=r)return;this.scaleValues=[];var i=SuperMapAlgoPlot.PlottingUtil.distance(o,l)/r;this.scaleValues.push(i);var a=180*SuperMapAlgoPlot.PlottingUtil.radian(o,l)/Math.PI;a>90?a-=90:a=270+a,this.scaleValues.push(a*(Math.PI/180));var u=180*SuperMapAlgoPlot.PlottingUtil.radian(o,n)/Math.PI;u>90?u-=90:u=270+u,this.scaleValues.push(u*(Math.PI/180)),e=this.scaleValues[0]*r;var p=this.scaleValues[1]*(180/Math.PI)+90,s=this.scaleValues[2]*(180/Math.PI)+90;p=s;f-=4)c=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,f),P.push(c);f!=s&&(c=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,s),P.push(c)),this.controlPoints[2]=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P)}this.finish()}}}])&&d(e.prototype,o),l&&d(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function O(t){"@babel/helpers - typeof";return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(t,e){for(var o=0;o.7&&(M=.7),this.scaleValues[2]=M}}}}])&&w(e.prototype,o),l&&w(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function T(t){"@babel/helpers - typeof";return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function R(t,e){for(var o=0;o=1)return;this.scaleValues[2]=S}}}}])&&F(e.prototype,o),l&&F(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function H(t){"@babel/helpers - typeof";return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function J(t,e){for(var o=0;o=this.minEditPts){this.scalePoints=[];var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o=this.scaleValues[0],l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=o*l,r=.6*n,i=this.scaleValues[2]*l,a=0===this.scaleValues[1],u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0===u)return;for(var p=[],s=0;s<=u;s+=i){var c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,s);if(!(c.index<0)){var P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,e[c.index+1],c.pt);if(a?p.push(P.pntRight):p.push(P.pntLeft),!((c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,s+.65*i)).index<0||(P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,e[c.index+1],c.pt),a?p.push(P.pntRight):p.push(P.pntLeft),(c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,s+.8*i)).index<0||(p.push(c.pt),(c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,s+.5*i)).index<0||(P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,e[c.index+1],c.pt),a?p.push(P.pntLeft):p.push(P.pntRight),c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,s+.2*i),p.push(c.pt),(c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,s+.35*i)).index<0||(P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,e[c.index+1],c.pt),a?p.push(P.pntRight):p.push(P.pntLeft),(c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,s+i)).index<0||(P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,e[c.index+1],c.pt),a?p.push(P.pntRight):p.push(P.pntLeft),!(Math.abs(s)<=1e-6)))))))){this.scalePoints=[];var f=new SuperMapAlgoPlot.Point(p[0].x,p[0].y);f.isScalePoint=!0,f.tag=0,this.scalePoints.push(f),(f=new SuperMapAlgoPlot.Point(c.pt.x,c.pt.y)).isScalePoint=!0,f.tag=1,this.scalePoints.push(f)}}}var g=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(p);SuperMapAlgoPlot.PlottingUtil.clearSamePts(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length0?new SuperMapAlgoPlot.Point(S.pntLeft.x,S.pntLeft.y):new SuperMapAlgoPlot.Point(S.pntRight.x,S.pntRight.y);var b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(c,h,y.pt),d=[];if(d.push(b.pntRight),d.push(h),d.push(b.pntLeft),0===g){var A=new SuperMapAlgoPlot.Point(h.x,h.y);A.isScalePoint=!0,A.tag=0,this.scalePoints.push(A)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0})}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[0]=l?-1:1}}}])&&Ct(e.prototype,o),l&&Ct(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zt(t){"@babel/helpers - typeof";return(zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ft(t,e){for(var o=0;o=2&&this.controlPoints.length0||f.length>0)&&(o=!0),P=[],f=[];for(var A=new SuperMapAlgoPlot.Point(n,e.y),M=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,10,10,45),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,10,10,135),v=0;v0||f.length>0)&&(o=!0),l-=.8,n+=.8}this.finish()}}}},{key:"sortPts2D",value:function(t){for(var e,o=0;ot[l+1].y&&(e=t[l],t[l]=t[l+1],t[l+1]=tempPt11):t[l].x>t[l+1].x&&(e=t[l],t[l]=t[l+1],t[l+1]=e);return t}}])&&Jt(e.prototype,o),l&&Jt(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function te(t){"@babel/helpers - typeof";return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ee(t,e){for(var o=0;o.9&&(this.scaleValues[1]=.9)}}}}])&&ae(e.prototype,o),l&&ae(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Pe(t){"@babel/helpers - typeof";return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fe(t,e){for(var o=0;ol-l*this.scaleValues[0]-r&&(this.scaleValues[1]=(l-l*this.scaleValues[0]-r)/l)}}}}])&&de(e.prototype,o),l&&de(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Oe(t){"@babel/helpers - typeof";return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function we(t,e){for(var o=0;o=this.minEditPts){var t,e=[];if(2===this.controlPoints.length){for(var o=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]),l=this.scaleValues[0]*o,n=SuperMapAlgoPlot.PlottingUtil.parallel(this.controlPoints,l/2),r=SuperMapAlgoPlot.PlottingUtil.parallel(this.controlPoints,-l/2),i=180*SuperMapAlgoPlot.PlottingUtil.radian(this.controlPoints[0],this.controlPoints[1])/Math.PI,a=[],u=i+90;u<=i+270;u+=10)t=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],l/2,l/2,u),a.push(t);for(var p=[],s=i-90;s<=i+90;s+=10)t=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[1],l/2,l/2,s),p.push(t);e=(e=(e=(e=e.concat(a)).concat(r)).concat(p)).concat(n)}else this.controlPoints.length<=3?e=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,this.controlPoints):this.controlPoints.length>3&&!0===this.polylineConnectLocationPoint?e=this.controlPoints:(this.controlPoints.push(this.controlPoints[0]),e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(this.controlPoints));e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var c=e[0].x,P=e[0].x,f=e[0].y,g=e[0].y;for(u=0;ue[u].x&&(c=e[u].x),Pe[u].y&&(f=e[u].y),g0||w.length>0)&&(b=!0),O=[],w=[];for(var E=new SuperMapAlgoPlot.Point(A,y.y),_=SuperMapAlgoPlot.PlottingUtil.circlePoint(E,5,5,45),B=SuperMapAlgoPlot.PlottingUtil.circlePoint(E,5,5,135),Y=0;Y0||w.length>0)&&(b=!0),d-=h,A+=h}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e,o=0;ot[l+1].y&&(e=t[l],t[l]=t[l+1],t[l+1]=e):t[l].x>t[l+1].x&&(e=t[l],t[l]=t[l+1],t[l+1]=e);return t}}])&&we(e.prototype,o),l&&we(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Te(t){"@babel/helpers - typeof";return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Re(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),l=e[0].x,n=e[0].x,r=e[0].y,i=e[0].y,a=[],u=0;ue[u].x&&(l=e[u].x),ne[u].y&&(r=e[u].y),i0&&(S=.015*o,this.computeSubSymbol(this.subSymbols[0],b,S,0)),g++):(g=0,this.subSymbols.length>0&&(S=.022*o,this.computeSubSymbol(this.subSymbols[1],b,S,0)))}this.finish()}}}}])&&Fe(e.prototype,o),l&&Fe(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function He(t){"@babel/helpers - typeof";return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Je(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=e[0].x,l=e[0].x,n=e[0].y,r=e[0].y,i=[],a=0;ae[a].x&&(o=e[a].x),le[a].y&&(n=e[a].y),r=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=e[0].x,l=e[0].x,n=e[0].y,r=e[0].y,i=0;ie[i].x&&(o=e[i].x),le[i].y&&(n=e[i].y),r=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=e[0].x,l=e[0].x,n=e[0].y,r=e[0].y,i=0;ie[i].x&&(o=e[i].x),le[i].y&&(n=e[i].y),rl)return o;for(var n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=2*parseInt(l/(1.5*e)),i=0;i0&&o.push(n),o}}])&&Ao(e.prototype,o),l&&Ao(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function wo(t){"@babel/helpers - typeof";return(wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lo(t,e){for(var o=0;o2*o.length-2)return;for(var l=0,n=0;n.45&&(p=.45),2==o.length?this.scaleValues[0]=p:this.scaleValues[2*t]=p}else{var s=-1;s=t%2==0?t/2:(t+1)/2;var c=(e.x-o[s].x)/l,P=(e.y-o[s].y)/l;this.scaleValues[2*t]=c,this.scaleValues[2*t+1]=P}}}}])&&Lo(e.prototype,o),l&&Lo(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ro(t){"@babel/helpers - typeof";return(Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xo(t,e){for(var o=0;oo.length)return;for(var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=-1,r=0,i=new SuperMapAlgoPlot.Point(0,0),a=0;ac&&(n=a,i=u,r=c)}}if(-1===n||n>o.length-1)return;for(var P=0,f=0;fl)return;var S=P/l;S>.95?S=.95:S<.1&&(S=.1),this.scaleValues[0]=S}}}])&&Ll(e.prototype,o),l&&Ll(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Rl(t){"@babel/helpers - typeof";return(Rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xl(t,e){for(var o=0;oo.length)return;var l=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),n=new SuperMapAlgoPlot.Point(o[1].x,o[1].y),r=SuperMapAlgoPlot.PlottingUtil.distance(l,n);if(0===r)return;var i=new SuperMapAlgoPlot.Point((l.x+n.x)/2,(l.y+n.y)/2);if(0===t){var a=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/r;this.scaleValues[0]=a,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l,n,e)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}}])&&xl(e.prototype,o),l&&xl(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Cl(t){"@babel/helpers - typeof";return(Cl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Il(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),r=n*(.5+.5*this.scaleValues[1]),i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,l);if(!i.bfind)return;var a,u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1,l[i.index],i.pts),p=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[i.index],l[i.index+1],e);this.scaleValues[2]=p?0:1,a=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,new SuperMapAlgoPlot.Point(u.pntLeft.x,u.pntLeft.y),new SuperMapAlgoPlot.Point(u.pntRight.x,u.pntRight.y));var s=SuperMapAlgoPlot.PlottingUtil.distance(a.projectPoint,new SuperMapAlgoPlot.Point(i.pts.x,i.pts.y));this.scaleValues[0]=s/n}}}])&&Gl(e.prototype,o),l&&Gl(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Jl(t){"@babel/helpers - typeof";return(Jl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zl(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=.01*n;if(0===t){var i=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,r);if(-1===i.index)return;var a=SuperMapAlgoPlot.PlottingUtil.distance(e,i.pt);this.scaleValues[0]=a/n}else if(1===t){var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,r);if(-1===u.index)return;var p=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,l);if(-1===p.index)return;for(var s=0,c=u.index+1;c.93&&(this.scaleValues[1]=.93)}}}}])&&Zl(e.prototype,o),l&&Zl(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function en(t){"@babel/helpers - typeof";return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function on(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[1]=.5*this.getSubSymbolScaleValue()}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.addSubSymbols(r,a,i);for(var u=[],p=[],s=0;s<=n.startIndex;s++)u.push(e[s]);if(u.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),n.endIndex<=e.length){p.push(n.endPt);for(var c=n.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p,this.scaleValues[1])}var P=o*this.scaleValues[0]*.5,f=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,P,P,i+90);this.addScalePoint(f,0),this.finish()}}},{key:"addSubSymbols",value:function(t,e,o){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,e,o-180)}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length0&&this.computeSubSymbol(this.subSymbols[0],t,e,o-90)}}])&&yn(e.prototype,o),l&&yn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function An(t){"@babel/helpers - typeof";return(An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mn(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],t,e,o-90)}}])&&Mn(e.prototype,o),l&&Mn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ln(t){"@babel/helpers - typeof";return(Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Un(t,e){for(var o=0;o0&&(u+=SuperMapAlgoPlot.PlottingUtil.distance(a[p],a[p-1]));var s,c,P=n-u,f=o*this.scaleValues[1],g=[];if(P>=f){s=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[r.index],f),a.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a),c=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[r.index+1],f),g.push(c);for(var y=e.length,h=r.index+1;h=0;A--)if(S=new SuperMapAlgoPlot.Point(a[A].x,a[A].y),b=new SuperMapAlgoPlot.Point(i.x,i.y),SuperMapAlgoPlot.PlottingUtil.distance(S,b)>f){d=A;break}if(-1==d)return;a.splice(d+1,a.length-1-d),s=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[d],f),a.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a);for(var M=-1,m=r.index;mf){M=m;break}if(-1==M)return;c=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[M],f),g.push(c);for(var v=M+1;vo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}}}])&&Un(e.prototype,o),l&&Un(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function xn(t){"@babel/helpers - typeof";return(xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function En(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}}}])&&En(e.prototype,o),l&&En(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function In(t){"@babel/helpers - typeof";return(In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nn(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[3]=.5*l}for(var n=this.getLinePts(e,this.scaleValues[0]),r=[],i=[],a=0;a<=n.startIndex;a++)r.push(e[a]);if(r.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),n.endIndex<=e.length){i.push(n.endPt);for(var u=n.endIndex+1;u<=e.length-1;u++)i.push(e[u]);this.addArrow(i,this.scaleValues[this.scaleValues.length-1])}var p,s,c,P,f,g,y,h,S,b,d,A,M,m=n.startPt.clone(),v=n.endPt.clone(),O=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),w=SuperMapAlgoPlot.PlottingUtil.distance(m,v),L=SuperMapAlgoPlot.PlottingUtil.radian(m,v)*SuperMapAlgoPlot.PlottingUtil.RTOD;p=new SuperMapAlgoPlot.Point(0,0),s=new SuperMapAlgoPlot.Point(0,0),c=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0),f=new SuperMapAlgoPlot.Point(0,0),g=new SuperMapAlgoPlot.Point(0,0),y=new SuperMapAlgoPlot.Point(0,0),h=new SuperMapAlgoPlot.Point(0,0),S=new SuperMapAlgoPlot.Point(0,0),b=new SuperMapAlgoPlot.Point(0,0),d=new SuperMapAlgoPlot.Point(0,0),A=new SuperMapAlgoPlot.Point(0,0),M=new SuperMapAlgoPlot.Point(0,0),m.x>=v.x?(p.x=.25*w,p.y=.25*-w,s.x=.5*-w,s.y=.25*-w,c.x=.5*-w,c.y=.25*w,P.x=.5*w,P.y=.25*w,f.x=.5*w,f.y=0,g.x=.25*-w,g.y=.125*-w,y.x=0,y.y=.125*w,h.x=0,h.y=.125*-w,S.x=.25*w,S.y=.2*w,b.x=.25*-w,b.y=.25*-w,d.x=.375*-w,d.y=.5*-w,A.x=.02*-w,A.y=.25*-w,M.x=.1*w,M.y=.5*-w):(p.x=.25*w,p.y=.25*w,s.x=.5*-w,s.y=.25*w,c.x=.5*-w,c.y=.25*-w,P.x=.5*w,P.y=.25*-w,f.x=.5*w,f.y=0,g.x=.25*w,g.y=.125*-w,y.x=0,y.y=.125*w,h.x=0,h.y=.125*-w,S.x=.25*-w,S.y=.125*w,b.x=.25*-w,b.y=.25*w,d.x=.375*-w,d.y=.5*w,A.x=.02*w,A.y=.25*w,M.x=.15*w,M.y=.5*w);var U=[],V=[],j=[],T=[],R=[],x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,p,L),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,s,L),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,c,L),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,P,L),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,f,L),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,g,L),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,y,L),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,h,L),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,S,L),k=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,b,L),z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,d,L),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,A,L),G=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,M,L);U.push(x),U.push(E),U.push(_),U.push(B),U.push(Y),V.push(C),V.push(I),V.push(N),V.push(D),j.push(k),j.push(z),T.push(F),T.push(G),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,U,{lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V,{lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,j,{lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T,{lineTypeLimit:!0,surroundLineLimit:!0},!0);var W=.3*SuperMapAlgoPlot.PlottingUtil.distance(N,D),K=SuperMapAlgoPlot.PlottingUtil.linePnt(D,N,W),q=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.3*W,D,K);R.push(q.pntLeft),R.push(D),R.push(q.pntRight);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,R,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},!0);var H=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),J=SuperMapAlgoPlot.PlottingUtil.circlePoint(H.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,L+90);this.addScalePoint(J,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[1]=.6*this.getSubSymbolScaleValue()}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);0=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05));var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.35*this.getSubSymbolScaleValue());var n=l*this.scaleValues[0],r=[];r.push(new SuperMapAlgoPlot.Point(o.x,o.y)),r.push(new SuperMapAlgoPlot.Point(o.x+n,o.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,r,{lineTypeLimit:!0,surroundLineLimit:!0});var i=[];i.push(new SuperMapAlgoPlot.Point(o.x,o.y+.8*n)),i.push(new SuperMapAlgoPlot.Point(o.x,o.y-.8*n)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i,{lineTypeLimit:!0,surroundLineLimit:!0});var a=[];a.push(new SuperMapAlgoPlot.Point(o.x+.8*n,o.y)),a.push(new SuperMapAlgoPlot.Point(o.x-.8*n,o.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,{lineTypeLimit:!0,surroundLineLimit:!0}),this.finish()}}}])&&lr(e.prototype,o),l&&lr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ur(t){"@babel/helpers - typeof";return(ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pr(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e),this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var o=this.scaleValues[0],l=this.scaleValues[1],n=this.scaleValues[2],r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),a=i*n,u=new SuperMapAlgoPlot.Point(r.x+i*o,r.y+i*l);if(this.subSymbols.length>0){if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],u,a,0),this.addScalePoint(u);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,a,a,0);this.addScalePoint(p)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t)n=(e.x-i.x)/a,this.scaleValues[0]=n,r=(e.y-i.y)/a,this.scaleValues[1]=r;else if(1===t){n=this.scaleValues[0],r=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(i.x+a*n,i.y+a*r),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e)/a;this.scaleValues[2]=p}}}}])&&pr(e.prototype,o),l&&pr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function gr(t){"@babel/helpers - typeof";return(gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yr(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.2||n<=0)&&(n=.2),this.scaleValues[0]=n}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3],u=l*r,p=new SuperMapAlgoPlot.Point(o.x+l*i,o.y+l*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,u,0),this.addScalePoint(p);var s=u,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,s,s,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t)n=(e.x-i.x)/a,this.scaleValues[2]=n,r=(e.y-i.y)/a,this.scaleValues[3]=r;else if(1===t){n=this.scaleValues[2],r=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(i.x+a*n,i.y+a*r),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e)/a;this.scaleValues[0]=p}}}}])&&yr(e.prototype,o),l&&yr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ar(t){"@babel/helpers - typeof";return(Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mr(t,e){for(var o=0;othis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=n/l*.8,this.scaleValues[3]=n/l*.8}var r=this.scaleValues[0],i=this.scaleValues[1],a=this.scaleValues[3],u=this.scaleValues[4],p=this.scaleValues[6],s=this.scaleValues[7],c=this.scaleValues[8],P=this.scaleValues[9],f=new SuperMapAlgoPlot.Point(o.x+l*p,o.y+l*s),g=new SuperMapAlgoPlot.Point(o.x+l*c,o.y+l*P),y=[],h=.15*SuperMapAlgoPlot.PlottingUtil.distance(f,g),S=SuperMapAlgoPlot.PlottingUtil.linePnt(f,g,h),b=SuperMapAlgoPlot.PlottingUtil.linePnt(g,f,h);y.push(S),y.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0});var d=l*r,A=i;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],f,d,A);var M=l*a,m=u;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],g,M,m),this.addScalePoint(f);var v=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,d,d,A);this.addScalePoint(v),this.addScalePoint(g);var O=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,M,M,m);this.addScalePoint(O),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengththis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var l=[];l=3>=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r,i,a,u=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),s=e;if(0==t)n=(s.x-u.x)/p,this.scaleValues[6]=n,r=(s.y-u.y)/p,this.scaleValues[7]=r;else if(1==t){n=this.scaleValues[6],r=this.scaleValues[7];var c=new SuperMapAlgoPlot.Point(u.x+p*n,u.y+p*r),P=SuperMapAlgoPlot.PlottingUtil.distance(c,s)/p;this.scaleValues[0]=P;var f=180*SuperMapAlgoPlot.PlottingUtil.radian(c,s)/Math.PI;this.scaleValues[1]=f,this.scaleValues[2]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}else if(2==t)i=(s.x-u.x)/p,this.scaleValues[8]=i,a=(s.y-u.y)/p,this.scaleValues[9]=a;else if(3==t){i=this.scaleValues[8],a=this.scaleValues[9];var g=new SuperMapAlgoPlot.Point(u.x+p*i,u.y+p*a),y=SuperMapAlgoPlot.PlottingUtil.distance(g,s)/p;this.scaleValues[3]=y;var h=180*SuperMapAlgoPlot.PlottingUtil.radian(g,s)/Math.PI;this.scaleValues[4]=h,this.scaleValues[5]=0<=h&&h<90?1:90<=h&&h<180?2:180<=h&&h<270?3:4}}}}])&&Mr(e.prototype,o),l&&Mr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Lr(t){"@babel/helpers - typeof";return(Lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ur(t,e){for(var o=0;o=t.length?(e=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)):e=t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=n}var r=l*this.scaleValues[0]*.15,i=[];i.push(new SuperMapAlgoPlot.Point(0,r)),i.push(new SuperMapAlgoPlot.Point(-r,0)),i.push(new SuperMapAlgoPlot.Point(0,-r));var a=[];a.push(new SuperMapAlgoPlot.Point(r,r)),a.push(new SuperMapAlgoPlot.Point(0,0)),a.push(new SuperMapAlgoPlot.Point(r,-r));for(var u=new SuperMapAlgoPlot.Point(-3*r,2*r),p=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,u,0),s=[],c=[],P=0;P<3;P++)s.push(new SuperMapAlgoPlot.Point(i[P].x+p.x,i[P].y+p.y)),c.push(new SuperMapAlgoPlot.Point(a[P].x+p.x,a[P].y+p.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s,{lineTypeLimit:!0,surroundLineLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{lineTypeLimit:!0,surroundLineLimit:!0});for(var f=new SuperMapAlgoPlot.Point(3*r,2*r),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,f,0),y=[],h=[],S=0;S<3;S++)y.push(new SuperMapAlgoPlot.Point(i[S].x+g.x,i[S].y+g.y)),h.push(new SuperMapAlgoPlot.Point(a[S].x+g.x,a[S].y+g.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0,surroundLineLimit:!0});var b=new SuperMapAlgoPlot.Point(-4*r,-2*r),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,b,0);y=[],h=[];for(var A=0;A<3;A++)y.push(new SuperMapAlgoPlot.Point(i[A].x+d.x,i[A].y+d.y)),h.push(new SuperMapAlgoPlot.Point(a[A].x+d.x,a[A].y+d.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0,surroundLineLimit:!0});var M=new SuperMapAlgoPlot.Point(0,-2*r),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,M,0);y=[],h=[];for(var v=0;v<3;v++)y.push(new SuperMapAlgoPlot.Point(i[v].x+m.x,i[v].y+m.y)),h.push(new SuperMapAlgoPlot.Point(a[v].x+m.x,a[v].y+m.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0,surroundLineLimit:!0});var O=new SuperMapAlgoPlot.Point(4*r,-2*r),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,O,0);y=[],h=[];for(var L=0;L<3;L++)y.push(new SuperMapAlgoPlot.Point(i[L].x+w.x,i[L].y+w.y)),h.push(new SuperMapAlgoPlot.Point(a[L].x+w.x,a[L].y+w.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0,surroundLineLimit:!0}),this.finish()}}}])&&Ur(e.prototype,o),l&&Ur(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function xr(t){"@babel/helpers - typeof";return(xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Er(t,e){for(var o=0;oo.length)return;var l,n,r,i=[];if(2==o.length){l=o[0],n=o[1];var a=SuperMapAlgoPlot.PlottingUtil.distance(l,n),u=180*SuperMapAlgoPlot.PlottingUtil.radian(l,n)/Math.PI;r=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,a,a,u+60),i.push(l),i.push(n),i.push(r)}else i=i.concat(o);l=i[0],n=i[1],r=i[2];SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(i);i.push(i[0]);var p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i),s=e;if(0==t)this.scaleValues[0]=e;else if(1==t){var c=this.scaleValues[0],P=SuperMapAlgoPlot.PlottingUtil.distance(c,s)/p;this.scaleValues[2]=P;var f=180*SuperMapAlgoPlot.PlottingUtil.radian(c,s)/Math.PI;this.scaleValues[3]=f}}}},{key:"ComputeSubSymbolPt",value:function(t,e,o,l){var n,r,i=o[0],a=o[1],u=o[2],p=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(u,i,a)*t,s=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(a,i,u)*e,c=[];if(SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(i,a,l)?((n=[]).push(i),n.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(n,p,!1)):((n=[]).push(i),n.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(n,p,!0)),SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(i,u,l)?((n=[]).push(i),n.push(u),r=SuperMapAlgoPlot.PlottingUtil.paraLine(n,s,!1)):((n=[]).push(i),n.push(u),r=SuperMapAlgoPlot.PlottingUtil.paraLine(n,s,!0)),2>c.length||2>r.length)return l;var P=SuperMapAlgoPlot.PlottingUtil.intersectLines(c[0],c[1],r[0],r[1]);return P.isIntersectLines?P.intersectPoint:l}}])&&Er(e.prototype,o),l&&Er(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ir(t){"@babel/helpers - typeof";return(Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nr(t,e){for(var o=0;oo.length)return;var l,n,r,i,a,u,p,s=[];2==o.length?(l=o[0],n=o[1],a=SuperMapAlgoPlot.PlottingUtil.distance(l,n),i=180*SuperMapAlgoPlot.PlottingUtil.radian(l,n)/Math.PI,r=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,a,a,i+60),s.push(l),s.push(n),s.push(r)):s=s.concat(o),l=s[0],n=s[1],r=s[2],s.push(s[0]);var c=SuperMapAlgoPlot.PlottingUtil.polylineDistance(s),P=e;if(0===t)a=SuperMapAlgoPlot.PlottingUtil.distance(P,s[0]),this.scaleValues[0]=a/c;else if(1===t){u=SuperMapAlgoPlot.PlottingUtil.distance(P,s[0])/c,this.scaleValues[1]=u,i=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(l,n,r)/Math.PI,0<=(p=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(l,n,P)/Math.PI/i)&&1>=p&&(this.scaleValues[2]=p)}else if(2===t){u=this.scaleValues[1],p=this.scaleValues[2];var f,g=c*u,y=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(l,n,r)/Math.PI*p,h=180*SuperMapAlgoPlot.PlottingUtil.radian(l,n)/Math.PI,S=h-y,b=h+y,d=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,g,g,S),A=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,g,g,b);f=SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(s,d)?d:A;var M=2*SuperMapAlgoPlot.PlottingUtil.distance(P,f)/c;this.scaleValues[3]=M;var m=180*SuperMapAlgoPlot.PlottingUtil.radian(f,P)/Math.PI;this.scaleValues[4]=m}}}},{key:"ComputeSubSymbolPt",value:function(t,e,o,l){var n,r,i=o[0],a=o[1],u=o[2],p=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(u,i,a)*t,s=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(a,i,u)*e,c=[];if(SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(i,a,l)?((n=[]).push(i),n.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(n,p,!1)):((n=[]).push(i),n.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(n,p,!0)),SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(i,u,l)?((n=[]).push(i),n.push(u),r=SuperMapAlgoPlot.PlottingUtil.paraLine(n,s,!1)):((n=[]).push(i),n.push(u),r=SuperMapAlgoPlot.PlottingUtil.paraLine(n,s,!0)),2>c.length||2>r.length)return l;var P=SuperMapAlgoPlot.PlottingUtil.intersectLines(c[0],c[1],r[0],r[1]);return P.isIntersectLines?P.intersectPoint:l}},{key:"createArcPts",value:function(t,e){for(var o=[],l=[],n=0;nMath.abs(l[r]-l[i]))for(var u=0;u<2;u++){var p,s,c;0==u?(c=r,p=SuperMapAlgoPlot.PlottingUtil.radian(t[r],t[i])*SuperMapAlgoPlot.PlottingUtil.RTOD,s=Math.acos((a*a+l[r]*l[r]-l[i]*l[i])/(2*a*l[r]))*SuperMapAlgoPlot.PlottingUtil.RTOD):(c=i,p=SuperMapAlgoPlot.PlottingUtil.radian(t[i],t[r])*SuperMapAlgoPlot.PlottingUtil.RTOD,s=Math.acos((a*a+l[i]*l[i]-l[r]*l[r])/(2*a*l[i]))*SuperMapAlgoPlot.PlottingUtil.RTOD);var P=p-s,f=p+s,g=P<0&&f>0||P>360||f>360;P=this.adjustAngle(P),f=this.adjustAngle(f);for(var y=o[c].length-1;y>=0;y--)if(g){if(f>o[c][y].End||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(f,o[c][y].End)){o[c].splice(y,1);continue}if(f>o[c][y].Start&&(o[c][y].Start=f),Po[c][y].End)o[c].splice(y,1);else if(P>o[c][y].Start&&fo[c][y].End)continue;if(P>o[c][y].Start&&(o[c][y].End=P),f=0;S--){for(var b=this.adjustAngle(o[h][S].Start),d=this.adjustAngle(o[h][S].End);d360;)t-=360;for(;t<0;)t+=360;return t}},{key:"GetCirclePts",value:function(t,e,o,l){var n=180*SuperMapAlgoPlot.PlottingUtil.radian(t,e)/Math.PI,r=180*SuperMapAlgoPlot.PlottingUtil.radian(t,o)/Math.PI,i=n;r>n&&(i=r);for(var a=[],u=i;u<360+i;u+=4)90==u&&(u=91),a.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,l,l,u));return a.push[0],a}},{key:"CreatArc",value:function(t,e,o){for(var l=[],n=[],r=0;r1&&l.push(n),n=[]):n.push(i)}n.length>1&&l.push(n);for(var a=0;a1&&l.push(n),n=[]):n.push(i)}n.length>1&&l.push(n);for(var a=[],u=0;ua){var u=new SuperMapAlgoPlot.Point(l.x,l.y);l=new SuperMapAlgoPlot.Point(i.x,i.y),i=new SuperMapAlgoPlot.Point(u.x,u.y),n=a,e[o]=l,e[r]=i}}return e}}])&&Nr(e.prototype,o),l&&Nr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Gr(t){"@babel/helpers - typeof";return(Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wr(t,e){for(var o=0;o.3||i<=0)&&(i=.3),this.scaleValues[1]=i}var a=this.scaleValues[1]*SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),u=0,p=.3*r;this.ComputeDashLine(3*n/19,n/19,e);var s=e[1].clone(),c=e[0].clone(),P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,s,c),f=P.pntRight,g=P.pntLeft,y=[];y.push(g.clone()),y.push(f.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0});for(var h=3*p,S=e[0].clone(),b=0;b<=n;b+=h){u=b+2*p;var d=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(u,e);if(d.bfind){if(o=d.pts,d.index>=e.length)break;var A,M,m,v,O,w,L,U=[];if(U.push(S.clone()),U.push(o.clone()),0==b){var V=o.clone();V.isScalePoint=!0,V.tag=0,this.scalePoints.push(V);var j=f.clone();j.isScalePoint=!0,j.tag=1,this.scalePoints.push(j)}if(0==this.scaleValues[2]){A=new SuperMapAlgoPlot.Point((S.x+o.x)/2,(S.y+o.y)/2),M=S.clone(),m=A.clone(),c=o.clone();var T=(P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,M,m)).pntLeft;v=SuperMapAlgoPlot.PlottingUtil.linePnt(A,M,.3*a),O=SuperMapAlgoPlot.PlottingUtil.linePnt(A,c,.3*a),0==b&&((w=T.clone()).isScalePoint=!0,w.tag=2,this.scalePoints.push(w)),(L=[]).push(T.clone()),L.push(v.clone()),L.push(O.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,L,{lineTypeLimit:!0,surroundLineLimit:!0})}else{A=new SuperMapAlgoPlot.Point((S.x+o.x)/2,(S.y+o.y)/2),M=S.clone(),m=A.clone(),c=o.clone();var R=(P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,M,m)).pntRight;v=SuperMapAlgoPlot.PlottingUtil.linePnt(A,M,.3*p),O=SuperMapAlgoPlot.PlottingUtil.linePnt(A,c,.3*p),0==b&&((w=R.clone()).isScalePoint=!0,w.tag=2,this.scalePoints.push(w)),(L=[]).push(R.clone()),L.push(v.clone()),L.push(O.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,L,{lineTypeLimit:!0,surroundLineLimit:!0})}if(u=b+3*p,(d=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(u,e)).bfind){if(o=d.pts,!(d.index=0?this.scaleValues[2]=0:this.scaleValues[2]=1}}}},{key:"ComputeDashLine",value:function(t,e,o){for(var l,n,r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=o[0].clone(),a=1,u=0,p=!0,s=!0;u=0;--m)M.push(b[m]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.scalePoints=[];var v=b[0].clone();v.isScalePoint=!0,v.tag=0,this.scalePoints.push(v);var O=b[1].clone();O.isScalePoint=!0,O.tag=1,this.scalePoints.push(O);var w=b[2].clone();w.isScalePoint=!0,w.tag=2,this.scalePoints.push(w),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l,n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),r=o[0].clone(),i=o[1].clone(),a=e.clone();if(0==t){var u=SuperMapAlgoPlot.PlottingUtil.distance(a,r)/n;this.scaleValues[0]=u}else if(1==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var p=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[1]=p;var s=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[3]=s}else if(2==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var c=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[2]=c;var P=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[4]=P}}}}])&&Xr(e.prototype,o),l&&Xr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function oi(t){"@babel/helpers - typeof";return(oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function li(t,e){for(var o=0;o=0;--m)M.push(d[m]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.scalePoints=[];var v=d[0].clone();v.isScalePoint=!0,v.tag=0,this.scalePoints.push(v);var O=d[1].clone();O.isScalePoint=!0,O.tag=1,this.scalePoints.push(O);var w=d[2].clone();w.isScalePoint=!0,w.tag=2,this.scalePoints.push(w);var L=.04*l,U=.0475*l,V=new SuperMapAlgoPlot.Point(y.x-L,0),j=new SuperMapAlgoPlot.Point(f.x,f.y+U),T=SuperMapAlgoPlot.PlottingUtil.intersectLines(p,f,V,j),R=T.intersectPoint;if(0!=T.isIntersectLines){var x=new SuperMapAlgoPlot.Point(g.x,g.y-U),E=(T=SuperMapAlgoPlot.PlottingUtil.intersectLines(g,s,V,x)).intersectPoint;if(0!=T.isIntersectLines){var _=[];_.push(R),_.push(V),_.push(E);for(var B=[],Y=0;Y<_.length;Y++)b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,_[Y],h*SuperMapAlgoPlot.PlottingUtil.RTOD),B.push(b);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,B),this.finish()}}}}}])&&li(e.prototype,o),l&&li(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ui(t){"@babel/helpers - typeof";return(ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pi(t,e){for(var o=0;o=0;--m)M.push(d[m]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.scalePoints=[];var v=d[0].clone();v.isScalePoint=!0,v.tag=0,this.scalePoints.push(v);var O=d[1].clone();O.isScalePoint=!0,O.tag=1,this.scalePoints.push(O);var w=d[2].clone();w.isScalePoint=!0,w.tag=2,this.scalePoints.push(w);var L=.08125*l,U=new SuperMapAlgoPlot.Point(y.x-L,0),V=new SuperMapAlgoPlot.Point(U.x-L/2,0),j=new SuperMapAlgoPlot.Point(U.x+L/2,0),T=[];b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,V,h*SuperMapAlgoPlot.PlottingUtil.RTOD),T.push(b.clone()),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,j,h*SuperMapAlgoPlot.PlottingUtil.RTOD),T.push(b.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T);var R=new SuperMapAlgoPlot.Point(U.x,U.y-L/2),x=new SuperMapAlgoPlot.Point(U.x,U.y+L/2),E=[];b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,x,h*SuperMapAlgoPlot.PlottingUtil.RTOD),E.push(b.clone()),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,R,h*SuperMapAlgoPlot.PlottingUtil.RTOD),E.push(b.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,E),this.finish()}}},{key:"GetGoPts",value:function(){var t=[];return this.controlPoints.length=2&&this.controlPoints.length0){var o;if(null==this.subSymbols[0].symbolData)return;o=Math.max(this.subSymbols[0].symbolData.symbolSize.x,this.subSymbols[0].symbolData.symbolSize.y);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=l*this.scaleValues[4],r=l*this.scaleValues[5],i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,t),u=SuperMapAlgoPlot.PlottingUtil.radian(a.pts,i.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=100*SuperMapAlgoPlot.PlottingUtil.distance(i.pts,a.pts)/o,s=new SuperMapAlgoPlot.Point((a.pts.x+i.pts.x)/2,(i.pts.y+a.pts.y)/2);if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],s,p,u),i.pts.isScalePoint=!0,i.pts.tag=this.scalePoints.length,this.scalePoints.push(i.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var l=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),n=SuperMapAlgoPlot.PlottingUtil.clonePoints(o);n.splice(0,2),n.unshift(l);var r=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,n),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(3===t&&null==r.pt&&(r.pt=l.clone()),-1==r.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMapAlgoPlot.PlottingUtil.clonePoints(n);a.splice(0,r.index+1),a.unshift(r.pt);var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(a);i.5&&(this.scaleValues[4]=.5)}}}}}])&&yi(e.prototype,o),l&&yi(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ai(t){"@babel/helpers - typeof";return(Ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mi(t,e){for(var o=0;o2){for(var r=-1,i=e.length-2;i>=0;i--)if(lo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[o.length-1])/l;if(n>.2)return;this.scaleValues[0]=n}}}])&&Mi(e.prototype,o),l&&Mi(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Li(t){"@babel/helpers - typeof";return(Li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ui(t,e){for(var o=0;o=0;--S)h.push(n[S]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;if(n>.5)return;this.scaleValues[0]=n}}}])&&Ui(e.prototype,o),l&&Ui(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function xi(t){"@babel/helpers - typeof";return(xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ei(t,e){for(var o=0;o=0;c--)s.push(r[c]);if((i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,s)).bfind){var P=i.index,f=i.pts.clone(),g=[];g.push(f);for(var y=P+1;y0&&this.computeSubSymbol(this.subSymbols[0],v,p,m);var O=s[s.length-1].clone(),w=SuperMapAlgoPlot.PlottingUtil.circlePoint(O,.3*l,.3*l,m+30),L=SuperMapAlgoPlot.PlottingUtil.circlePoint(O,.3*l,.3*l,m+180),U=SuperMapAlgoPlot.PlottingUtil.circlePoint(O,.3*l,.3*l,m+330);(g=[]).push(w),g.push(L),g.push(U);var V={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0};if(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,V,!0),e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),(i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(e/2,n)).bfind){var j=i.index,T=i.pts.clone(),R=[];R.push(T);for(var x=j;x>=0;x--)R.push(n[x]);if((i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,R)).bfind){var E=i.index,_=i.pts.clone(),B=[];B.push(_);for(var Y=E+1;Y0&&this.computeSubSymbol(this.subSymbols[1],F,p,z+90);var G=R[R.length-1].clone(),W=SuperMapAlgoPlot.PlottingUtil.circlePoint(G,.3*l,.3*l,m+30),K=SuperMapAlgoPlot.PlottingUtil.circlePoint(G,.3*l,.3*l,m+180),q=SuperMapAlgoPlot.PlottingUtil.circlePoint(G,.3*l,.3*l,m+330);(g=[]).push(W),g.push(K),g.push(q),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,V,!0);var H=SuperMapAlgoPlot.PlottingUtil.linePnt(K,L,3*l),J=SuperMapAlgoPlot.PlottingUtil.linePnt(L,K,3*l);(B=[]).push(H),B.push(J),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,B,{surroundLineLimit:!0,lineTypeLimit:!0});var Z=SuperMapAlgoPlot.PlottingUtil.linePnt(S[S.length-1],C[C.length-1],3*l),X=SuperMapAlgoPlot.PlottingUtil.linePnt(C[C.length-1],S[S.length-1],3*l);(B=[]).push(Z),B.push(X),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,B,{surroundLineLimit:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(H.clone()),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l/2;n>=.45&&(n=.45),this.scaleValues[0]=n}}}])&&Ei(e.prototype,o),l&&Ei(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ii(t){"@babel/helpers - typeof";return(Ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ni(t,e){for(var o=0;o=0;c--)s.push(r[c]);if((i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,s)).bfind){var P=i.index,f=i.pts.clone(),g=[];g.push(f);for(var y=P+1;y0&&this.computeSubSymbol(this.subSymbols[0],v,p,m+90),e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),(i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(e/2,n)).bfind){var O=i.index,w=i.pts.clone(),L=[];L.push(w);for(var U=O;U>=0;U--)L.push(n[U]);if((i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,L)).bfind){var V=i.index,j=i.pts.clone(),T=[];T.push(j);for(var R=V+1;R1&&this.computeSubSymbol(this.subSymbols[1],I,p,C);var N=SuperMapAlgoPlot.PlottingUtil.linePnt(s[s.length-1],L[L.length-1],3*l),D=SuperMapAlgoPlot.PlottingUtil.linePnt(L[L.length-1],s[s.length-1],3*l);(T=[]).push(N),T.push(D),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T,{surroundLineLimit:!0,lineTypeLimit:!0});var k=SuperMapAlgoPlot.PlottingUtil.linePnt(S[S.length-1],x[x.length-1],3*l),z=SuperMapAlgoPlot.PlottingUtil.linePnt(x[x.length-1],S[S.length-1],3*l);(T=[]).push(k),T.push(z),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T,{surroundLineLimit:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(N.clone()),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l/2;n>=.4&&(n=.4),this.scaleValues[0]=n}}}])&&Ni(e.prototype,o),l&&Ni(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Gi(t){"@babel/helpers - typeof";return(Gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wi(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5));var n=this.getLinePts(e,this.scaleValues[0]),r=this.getLinePts(e,this.scaleValues[0]),i=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt),a=e[0],u=e[1],p=e[e.length-2],s=e[e.length-1],c=.3*i,P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(c,u,a),f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(c,p,s),g=P.pntLeft,y=f.pntLeft,h=[];h.push(s),h.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var S=[],b=[];S.push(g);for(var d=0;d<=r.startIndex;d++)S.push(e[d]);if(S.push(r.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S),r.endIndex<=e.length){b.push(r.endPt);for(var A=r.endIndex+1;A<=e.length-1;A++)b.push(e[A]);b.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b)}var M=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,m=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),v=new SuperMapAlgoPlot.Point(-.5*i,0),O=new SuperMapAlgoPlot.Point(.1*i,0),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,v,M),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,O,M),U=[];U.push(w),U.push(L);var V={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0,surroundLineLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,V);var j=new SuperMapAlgoPlot.Point(-.3*i,0),T=SuperMapAlgoPlot.PlottingUtil.circlePoint(j,-.3*i,-.3*i,135),R=SuperMapAlgoPlot.PlottingUtil.circlePoint(j,-.3*i,-.3*i,225),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,j,M),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,T,M),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,R,M);(U=[]).push(E),U.push(x),U.push(_),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,V);var B=new SuperMapAlgoPlot.Point(.1*i,0),Y=new SuperMapAlgoPlot.Point(.5*i,-.2*i),C=new SuperMapAlgoPlot.Point(.5*i,.2*i),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,B,M),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,Y,M),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,C,M);(U=[]).push(I),U.push(N),U.push(D),U.push(I),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,V);var k=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),z=SuperMapAlgoPlot.PlottingUtil.circlePoint(k.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,M);this.addScalePoint(z,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengtht[n].x&&(o=t[n].x),lSuperMapAlgoPlot.PlottingUtil.polylineDistance(u)?(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,u,p)):(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i,p),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,u));var s=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),c=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=.25*this.getSubSymbolScaleValue(c));var P=this.scaleValues[0],f=this.scaleValues[1],g=this.scaleValues[2],y=new SuperMapAlgoPlot.Point(s.x+c*P,s.y+c*f),h=g*c,S=new SuperMapAlgoPlot.Point(y.x-4*h,y.y+h/2),b=new SuperMapAlgoPlot.Point(y.x-4*h,y.y-h/2),d=[];d.push(S),d.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{lineTypeLimit:!0,surroundLineLimit:!0});var A=new SuperMapAlgoPlot.Point(y.x-4*h,y.y),M=new SuperMapAlgoPlot.Point(y.x-1.5*h,y.y);(d=[]).push(A),d.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{lineTypeLimit:!0,surroundLineLimit:!0});for(var m=new SuperMapAlgoPlot.Point(y.x,y.y-h),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,2*h,2*h,60),O=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,2*h,2*h,120),w=new SuperMapAlgoPlot.Point((v.x+O.x)/2,v.y),L=[],U=0;U<=180;U+=3)L.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(w,h,h,U));d=[];for(var V=0;V0&&this.computeSubSymbol(this.subSymbols[0],a,2*u,0);var P=[];P.push(new SuperMapAlgoPlot.Point(a.x+4*u,a.y)),P.push(new SuperMapAlgoPlot.Point(a.x+u,a.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,s);var f=[];f.push(new SuperMapAlgoPlot.Point(a.x+4*u,a.y+u/2)),f.push(new SuperMapAlgoPlot.Point(a.x+4*u,a.y-u/2)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,s),this.scalePoints=[],this.addScalePoint(a.clone());var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,2*u,2*u,90);this.addScalePoint(g),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t&&1!=t)return;var o,l,n=this.controlPoints,r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0))return;if(0==t)o=(e.x-r.x)/i,this.scaleValues[0]=o,l=(e.y-r.y)/i,this.scaleValues[1]=l;else if(1==t){o=this.scaleValues[0],l=this.scaleValues[1];var a=new SuperMapAlgoPlot.Point(r.x+i*o,r.y+i*l),u=SuperMapAlgoPlot.PlottingUtil.distance(a,e)/2/i;this.scaleValues[2]=u}}}}])&&ya(e.prototype,o),l&&ya(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Aa(t){"@babel/helpers - typeof";return(Aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ma(t,e){for(var o=0;ot[n].x&&(o=t[n].x),l2?SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(t[0],t[1],t[2])?(i=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,r,!1),a=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,r,!0)):(u=!1,i=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,r,!0),a=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,r,!1)):(i=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,r,!1),a=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,r,!0));var p,s,c,P,f,g,y,h,S;if(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,a),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1}),t.length>2){var b=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue(b));var d=this.scaleValues[0]*b*.25;a.push(a[0].clone());for(var A=0;At[n].x&&(o=t[n].x),l2&&p.length>0){for(var s=[],c=0;c0&&(y=!0),M=[];for(var U=new SuperMapAlgoPlot.Point(S,P.y),V=SuperMapAlgoPlot.PlottingUtil.circlePoint(U,5,5,45),j=0;j0&&(y=!0),h-=f,S+=f}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),o=0;ot[l+1].y&&(e=t[l],t[l]=t[l+1],t[l+1]=e):t[l].x>t[l+1].x&&(e=t[l],t[l]=t[l+1],t[l+1]=e);return t}}])&&Ea(e.prototype,o),l&&Ea(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ia(t){"@babel/helpers - typeof";return(Ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Na(t,e){for(var o=0;ot[n].x&&(o=t[n].x),l0&&(p=!0),S=[];for(var v=new SuperMapAlgoPlot.Point(c,i.y),O=SuperMapAlgoPlot.PlottingUtil.circlePoint(v,5,5,45),w=0;w0&&(p=!0),s-=u,c+=u}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),o=0;ot[l+1].y&&(e=t[l],t[l]=t[l+1],t[l+1]=e):t[l].x>t[l+1].x&&(e=t[l],t[l]=t[l+1],t[l+1]=e);return t}}])&&Na(e.prototype,o),l&&Na(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ga(t){"@babel/helpers - typeof";return(Ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wa(t,e){for(var o=0;ot[n].x&&(o=t[n].x),l2&&a.length>0){for(var u=[],p=new SuperMapAlgoPlot.Point(0,0),s=0;so.length)return;var l,n,r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==r)return;if(0==t)l=(e.x-i.x)/r,this.scaleValues[0]=l,n=(e.y-i.y)/r,this.scaleValues[1]=n;else if(1==t){l=this.scaleValues[0],n=this.scaleValues[1];var a=new SuperMapAlgoPlot.Point(i.x+r*l,i.y+r*n),u=2*SuperMapAlgoPlot.PlottingUtil.distance(a,e)/r;this.scaleValues[2]=u}}}}])&&Wa(e.prototype,o),l&&Wa(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Za(t){"@babel/helpers - typeof";return(Za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xa(t,e){for(var o=0;ot[n].x&&(o=t[n].x),l2&&a.length>0){for(var u=[],p=0;pthis.minEditPts){for(var V,j,T,R,x,E=1;E=0?(S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(q,t[H],J)).pntRight:(S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(q,t[H],J)).pntLeft;var Z=SuperMapAlgoPlot.PlottingUtil.linePnt(J,w,q),X=.3*q,Q=SuperMapAlgoPlot.PlottingUtil.linePnt(Z,J,X);(S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.3*X,Z,Q)).pntLeft,S.pntRight;(m=[]).push(Z),m.push(J),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,{surroundLineLimit:!0,lineTypeLimit:!0});var $=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(m,.3*q,this.arrowHeadType),tt=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL;this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL&&this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID&&this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE&&this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW||(tt=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL);this.addCell(tt,$,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addScalePoint(Z),this.addScalePoint(p);var et=SuperMapAlgoPlot.PlottingUtil.radian(a.pt,u.pt)*SuperMapAlgoPlot.PlottingUtil.RTOD+90,ot=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,.5*r,.5*r,et);this.addScalePoint(ot),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l,n,r,i,a,u,p,s,c,P,f=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),g=o.length,y=e;if(t>=0&&tP&&(n=M,i=p,r=P));if(-1==n||n>o.length-1)return;s=0;for(var m=0;mf)return;var w=s/f;this.scaleValues[g+1]=w;var L,U=this.scaleValues.length;l=f*this.scaleValues[U-5],L=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[n],o[n+1],y)?r/l:-Math.abs(r/l),this.scaleValues[g+2]=L}else if(t===g+2){n=-1,r=0,i=new SuperMapAlgoPlot.Point(0,0);for(var V=0;VP&&(n=V,i=p,r=P));if(-1===n||n>o.length-1)return;s=0;for(var j=0;jf)return;.1*fs&&(this.scaleValues[this.scaleValues.length-2]=s/f)}else if(t===g+3){var T=this.scaleValues[this.scaleValues.length-2]*f;if(-1===(u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,T)).index)return;var R=2*SuperMapAlgoPlot.PlottingUtil.distance(u.pt,e)/f;R>.15&&(R=.15),this.scaleValues[this.scaleValues.length-1]=R}}}}])&&yu(e.prototype,o),l&&yu(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Au(t){"@babel/helpers - typeof";return(Au="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mu(t,e){for(var o=0;o.3||r<=0)&&(r=.3),this.scaleValues[0]=r;var i=1.5*this.scaleValues[0]*o,a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[l.index],n),u=[];u.push(a.pntLeft),u.push(n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,null,!0),this.finish()}}}}])&&Mu(e.prototype,o),l&&Mu(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Lu(t){"@babel/helpers - typeof";return(Lu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Uu(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=180*SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);0.3||l<=0)&&(l=.3),this.scaleValues[0]=l}for(var n=o*this.scaleValues[0],r=this.getLinePts(e,this.scaleValues[0]),i=[],a=[],u=0;u<=r.startIndex;u++)i.push(e[u]);if(i.push(r.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),r.endIndex<=e.length){a.push(r.endPt);for(var p=r.endIndex+1;p<=e.length-1;p++)a.push(e[p]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a)}var s=.5*n,c=new SuperMapAlgoPlot.Point(r.endPt.x,r.endPt.y),P=new SuperMapAlgoPlot.Point(r.startPt.x,r.startPt.y),f=SuperMapAlgoPlot.PlottingUtil.distance(c,P),g=0*f,y=SuperMapAlgoPlot.PlottingUtil.linePnt(c,P,g),h=SuperMapAlgoPlot.PlottingUtil.linePnt(P,c,g),S=.5*f,b=SuperMapAlgoPlot.PlottingUtil.linePnt(c,P,S),d=new SuperMapAlgoPlot.Point((h.x+b.x)/2,(h.y+b.y)/2),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,h,d),M=A.pntLeft,m=A.pntRight,v=[];v.push(m),v.push(h),v.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.ARCSYMBOL,v,null,!0);var O=.1*f,w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O,h,b),L=w.pntLeft,U=w.pntRight,V=[];V.push(h),V.push(L),V.push(U);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,V,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var j=[];j.push(b),j.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,j,null,!0);var T=new SuperMapAlgoPlot.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),R=180*SuperMapAlgoPlot.PlottingUtil.radian(r.startPt,r.endPt)/Math.PI,x=.5*o*this.scaleValues[0],E=SuperMapAlgoPlot.PlottingUtil.circlePoint(T,x,x,R+90),_=e[0],B=e[1],Y=e[e.length-2],C=e[e.length-1],I=.5*n,N=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(I,B,_),D=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(I,Y,C),k=N.pntLeft,z=D.pntLeft,F=[];F.push(_),F.push(k),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,F);var G=[];G.push(C),G.push(z),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,G),this.addScalePoint(E),this.finish()}}}])&&Nu(e.prototype,o),l&&Nu(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Gu(t){"@babel/helpers - typeof";return(Gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wu(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],i,a,u),0===this.scaleValues[1]?this.addScalePoint(n[0]):this.addScalePoint(r[0]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===l)return;if(0===t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}}}}])&&lp(e.prototype,o),l&&lp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function up(t){"@babel/helpers - typeof";return(up="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pp(t,e){for(var o=0;o=n)return;this.scaleValues=[];var r=SuperMapAlgoPlot.PlottingUtil.distance(e,o)/n;this.scaleValues.push(r);var i=SuperMapAlgoPlot.PlottingUtil.radian(e,o)*SuperMapAlgoPlot.PlottingUtil.RTOD;i>90?i-=90:i=270+i,this.scaleValues.push(i*SuperMapAlgoPlot.PlottingUtil.DTOR);var a=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD;a>90?a-=90:a=270+a,this.scaleValues.push(a*SuperMapAlgoPlot.PlottingUtil.DTOR);var u=this.scaleValues[0]*n,p=this.scaleValues[1]*SuperMapAlgoPlot.PlottingUtil.RTOD+90,s=this.scaleValues[2]*SuperMapAlgoPlot.PlottingUtil.RTOD+90;p=s;f-=4)c=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],u,u,f),P.push(c);f!=s&&(c=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],u,u,s),P.push(c)),P.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,P)}this.finish()}}}])&&pp(e.prototype,o),l&&pp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function gp(t){"@babel/helpers - typeof";return(gp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yp(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],c,.9*s,g-90),this.scalePoints=[],this.addScalePoint(u[u.length-1]);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,g+90);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}else if(1==t){var r=this.scaleValues[0]*l,i=SuperMapAlgoPlot.PlottingUtil.radian(o[0],o[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],r,r,90+i),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[1],r,r,90+i),p=new SuperMapAlgoPlot.Point((a.x+u.x)/2,(a.y+u.y)/2),s=SuperMapAlgoPlot.PlottingUtil.distance(p,e)/l;s>=.8&&(s=.8),this.scaleValues[1]=s}}}}])&&yp(e.prototype,o),l&&yp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ap(t){"@babel/helpers - typeof";return(Ap="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mp(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),n=new SuperMapAlgoPlot.Point(l.x,0);if(!1===this.polylineConnectLocationPoint){for(var r=0,i=-1,a=0;a0;S--)s.push(y[S]);var b=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(s,f);if(-1===b.index)return;(y=[]).push(b.pt);for(var d=b.index+1;d0&&this.computeSubSymbol(this.subSymbols[0],n,p,0)}else{var A=t[0],M=t[1],m=SuperMapAlgoPlot.PlottingUtil.distance(A,M),v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.2*m,[A,M]);if(-1===v.index)return;var O=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.4*m,[A,M]);if(-1===O.index)return;var w=[];w.push(t[0]),w.push(v.pts),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w),(w=[]).push(O.pts);for(var L=1;L0&&this.computeSubSymbol(this.subSymbols[0],U,.1*m,0)}this.finish()}}}])&&Mp(e.prototype,o),l&&Mp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Lp(t){"@babel/helpers - typeof";return(Lp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Up(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());var r=this.scaleValues[0]*e*2,i=this.scaleValues[0]*e,a=new SuperMapAlgoPlot.Point(n.x-r-i,n.y),u=new SuperMapAlgoPlot.Point(n.x-r,n.y),p=new SuperMapAlgoPlot.Point(n.x-r+i,n.y),s=new SuperMapAlgoPlot.Point(n.x+r,n.y),c=new SuperMapAlgoPlot.Point(n.x+r+i,n.y),P=new SuperMapAlgoPlot.Point(n.x+r+2*i,n.y),f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,a,u),g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,u,p),y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,s,c),h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,c,P),S=[];S.push(new SuperMapAlgoPlot.Point(f.pntLeft.x,f.pntLeft.y)),S.push(new SuperMapAlgoPlot.Point(a.x,a.y)),S.push(new SuperMapAlgoPlot.Point(f.pntRight.x,f.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{surroundLineLimit:!0,lineTypeLimit:!0}),(S=[]).push(new SuperMapAlgoPlot.Point(g.pntLeft.x,g.pntLeft.y)),S.push(new SuperMapAlgoPlot.Point(u.x,u.y)),S.push(new SuperMapAlgoPlot.Point(g.pntRight.x,g.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{surroundLineLimit:!0,lineTypeLimit:!0}),(S=[]).push(new SuperMapAlgoPlot.Point(y.pntLeft.x,y.pntLeft.y)),S.push(new SuperMapAlgoPlot.Point(s.x,s.y)),S.push(new SuperMapAlgoPlot.Point(y.pntRight.x,y.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{surroundLineLimit:!0,lineTypeLimit:!0}),(S=[]).push(new SuperMapAlgoPlot.Point(h.pntLeft.x,h.pntLeft.y)),S.push(new SuperMapAlgoPlot.Point(c.x,c.y)),S.push(new SuperMapAlgoPlot.Point(h.pntRight.x,h.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{surroundLineLimit:!0,lineTypeLimit:!0}),this.finish()}}}])&&Ep(e.prototype,o),l&&Ep(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ip(t){"@babel/helpers - typeof";return(Ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Np(t,e){for(var o=0;o=0;f--)r.push(new SuperMapAlgoPlot.Point(e[f].x,e[f].y));r.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,l,l,c),P=new SuperMapAlgoPlot.Point(i.x,i.y),(a=[]).push(t[0]),a.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}var g=new SuperMapAlgoPlot.Point(0,0);if(3<=t.length){for(e=[],o=new SuperMapAlgoPlot.Point(t[2].x,t[2].y),l=SuperMapAlgoPlot.PlottingUtil.distance(p,o),n=0,n=c-u;n0&&(y=[]));(r=[]).push(t[0]);for(var h=e.length-1;h>=0;h--)r.push(new SuperMapAlgoPlot.Point(e[h].x,e[h].y));r.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});for(var S=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),b=SuperMapAlgoPlot.PlottingUtil.distance(p,S)*this.scaleValues[0],d=[],A=90;A<=270;A+=3)d.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,b,b,c+A));r=[];for(var M=d.length-1;M>=0;M--)r.push(new SuperMapAlgoPlot.Point(d[M].x,d[M].y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),(r=[]).push(new SuperMapAlgoPlot.Point(d[0].x,d[0].y)),r.push(new SuperMapAlgoPlot.Point(e[e.length-1].x,e[e.length-1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),(r=[]).push(new SuperMapAlgoPlot.Point(e[0].x,e[0].y)),r.push(new SuperMapAlgoPlot.Point(d[d.length-1].x,d[d.length-1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,l,l,c),g=new SuperMapAlgoPlot.Point(i.x,i.y),(a=[]).push(P),a.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}var m=new SuperMapAlgoPlot.Point(0,0);if(4<=t.length){for(e=[],o=new SuperMapAlgoPlot.Point(t[3].x,t[3].y),l=SuperMapAlgoPlot.PlottingUtil.distance(p,o),n=0,n=c-u;n<=c+u;n+=3)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,l,l,n));SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,c+u)&&(n=c+u,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,l,l,n))),(r=[]).push(t[0]);for(var v=e.length-1;v>=0;v--)r.push(new SuperMapAlgoPlot.Point(e[v].x,e[v].y));r.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,l,l,c),m=new SuperMapAlgoPlot.Point(i.x,i.y),(a=[]).push(g),a.push(m),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}if(3>t.length)this.addScalePoint(t[0]);else{var O=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0],w=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,O,O,c+180);this.addScalePoint(w,0)}var L=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[t.length-1]),U=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,L,L,c+u);this.addScalePoint(U,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o,l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),0==t){if(3>l.length)return;var n=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),r=new SuperMapAlgoPlot.Point(e.x,e.y),i=SuperMapAlgoPlot.PlottingUtil.distance(n,r),a=new SuperMapAlgoPlot.Point(l[1].x,l[1].y);if((o=i/SuperMapAlgoPlot.PlottingUtil.distance(n,a))>=2.5)return;this.scaleValues[0]=o}else if(1==t){var u=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),p=new SuperMapAlgoPlot.Point(l[l.length-1].x,l[l.length-1].y),s=SuperMapAlgoPlot.PlottingUtil.radian(u,p),c=new SuperMapAlgoPlot.Point(e.x,e.y);if(o=SuperMapAlgoPlot.PlottingUtil.radian(u,c)-s,(o=Math.abs(o))>Math.PI/2&&o<3*Math.PI/2)return;o>3*Math.PI/2&&o<=2*Math.PI&&(o=2*Math.PI-o),this.scaleValues[1]=Math.abs(o)}}}}])&&ls(e.prototype,o),l&&ls(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function us(t){"@babel/helpers - typeof";return(us="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ps(t,e){for(var o=0;o270&&p<360&&(p=360-p),p>90)return;this.scaleValues[1]=p*Math.PI/180}}}}])&&ps(e.prototype,o),l&&ps(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function gs(t){"@babel/helpers - typeof";return(gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ys(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,o),this.finish()}}}])&&ys(e.prototype,o),l&&ys(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function As(t){"@babel/helpers - typeof";return(As="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ms(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var n=o*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],l,n,0),this.scalePoints=[];var r=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,n,n,0);this.addScalePoint(r),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=[];l=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/n;this.scaleValues[0]=i}}}}])&&Us(e.prototype,o),l&&Us(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function xs(t){"@babel/helpers - typeof";return(xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Es(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],p,r*i,e*SuperMapAlgoPlot.PlottingUtil.RTOD);var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,u,u,e*SuperMapAlgoPlot.PlottingUtil.RTOD);this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],s,r*i,e*SuperMapAlgoPlot.PlottingUtil.RTOD),this.scalePoints=[];var c=e*SuperMapAlgoPlot.PlottingUtil.RTOD,P=r*i,f=t[0].clone(),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,P,P,c);this.addScalePoint(g),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o))[0].clone(),n=o[1].clone(),r=e.clone(),i=SuperMapAlgoPlot.PlottingUtil.distance(l,n),a=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(r,l,n)/i;if(a<0||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0))return;this.scaleValues[0]=a,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l,n,r)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}])&&Es(e.prototype,o),l&&Es(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Is(t){"@babel/helpers - typeof";return(Is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ns(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=2*n}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3],u=l*r,p=.5*SuperMapAlgoPlot.PlottingUtil.distance(t[0],o),s=new SuperMapAlgoPlot.Point(o.x+l*i-p,o.y+l*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,u,180),this.addScalePoint(s);var c=u,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,c,c,0);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),u=.5*SuperMapAlgoPlot.PlottingUtil.distance(o[0],i);if(0===t)n=(e.x+u-i.x)/a,this.scaleValues[2]=n,r=(e.y-i.y)/a,this.scaleValues[3]=r;else if(1===t){n=this.scaleValues[2],r=this.scaleValues[3];var p=new SuperMapAlgoPlot.Point(i.x-u+a*n,i.y+a*r),s=SuperMapAlgoPlot.PlottingUtil.distance(p,e)/a;this.scaleValues[0]=s}}}}])&&Ns(e.prototype,o),l&&Ns(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Gs(t){"@babel/helpers - typeof";return(Gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ws(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=e[0],r=e[1],i=e[e.length-2],a=e[e.length-1],u=o*this.scaleValues[0]*.6,p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,r,n),s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,i,a),c=p.pntLeft,P=s.pntRight,f=[];f.push(n),f.push(c);for(var g=new SuperMapAlgoPlot.Point((n.x+c.x)/2,(n.y+c.y)/2),y=SuperMapAlgoPlot.PlottingUtil.polylineDistance(f)/2,h=[],S=180*SuperMapAlgoPlot.PlottingUtil.radian(r,n)/Math.PI,b=360+S;b>=270+S;b-=3)h.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(g,y,y,b));var d=[];d.push(a),d.push(P);var A=[];A.push(a),A.push(P);for(var M=new SuperMapAlgoPlot.Point((a.x+P.x)/2,(a.y+P.y)/2),m=SuperMapAlgoPlot.PlottingUtil.polylineDistance(A)/2,v=[],O=180*SuperMapAlgoPlot.PlottingUtil.radian(a,P)/Math.PI,w=180+O;w>=90+O;w-=3)v.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(M,m,m,w));var L=[];L=(L=(L=L.concat(h)).concat(e)).concat(v),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,L),this.finish()}}}])&&Ws(e.prototype,o),l&&Ws(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Zs(t){"@babel/helpers - typeof";return(Zs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xs(t,e){for(var o=0;o=m.length)&&(d=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(m[0],r)).isOnPolyLine){var O=[];for(f=d.index+1;f1&&(this.computeSubSymbol(this.subSymbols[0],r,n,l),this.computeSubSymbol(this.subSymbols[1],i,n,l));var a,u=[];2==e?(a=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t),u.push.apply(u,a)):3==e&&(a=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t),u=u.concat(a)),u=SuperMapAlgoPlot.PlottingUtil.inverse(u);var p,s=new SuperMapAlgoPlot.Point(.8*o,.1*o),c=new SuperMapAlgoPlot.Point(1.2*o,.1*o),P=new SuperMapAlgoPlot.Point(1.2*o,.1*-o),f=new SuperMapAlgoPlot.Point(.9*o,.1*-o),g=[];g.push(s),g.push(c),g.push(P),g.push(f);var y=[],h=0;for(h=0;h<4;h++)p=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[0],g[h],l),y.push(p);var S=new SuperMapAlgoPlot.Point(-.8*o,.1*o),b=new SuperMapAlgoPlot.Point(-1.2*o,.1*o),d=new SuperMapAlgoPlot.Point(-1.1*o,.1*-o),A=new SuperMapAlgoPlot.Point(-.8*o,.1*-o);(g=[]).push(S),g.push(b),g.push(d),g.push(A);var M=[];for(h=0;h<4;h++)p=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[0],g[h],l),M.push(p);for(var m,v=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[0],3*o),O=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],2*o),w=[],L=0;L=w.length)&&(m=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(w[0],u)).isOnPolyLine){var V=[];for(h=m.index+1;ho.length)return;if(0==t){var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),n=this.scaleValues[0],r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=n*r,a=.01*r,u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,l);if(!u.bfind)return;var p=u.pts,s=u.index,c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,l[s],p).pntLeft,P=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,c,p),f=SuperMapAlgoPlot.PlottingUtil.distance(P,p),g=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(P,p,e);this.scaleValues[1]=g?1:0,this.scaleValues[0]=f/r}}}}])&&hc(e.prototype,o),l&&hc(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Mc(t){"@babel/helpers - typeof";return(Mc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mc(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var l=0;l<4;l++){var n=Math.floor(l*o.length/4),r=new SuperMapAlgoPlot.Point(o[n].x,o[n].y),i=new SuperMapAlgoPlot.Point(o[n+1].x,o[n+1].y),a=new SuperMapAlgoPlot.Point((r.x+i.x)/2,(r.y+i.y)/2),u=SuperMapAlgoPlot.PlottingUtil.radian(i,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,s=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,u),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,4*p,4*p,u+270),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,u+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c,P],{lineTypeLimit:!0,surroundLineLimit:!0})}this.finish()}}}])&&mc(e.prototype,o),l&&mc(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Uc(t){"@babel/helpers - typeof";return(Uc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vc(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var l=0;l<4;l++){var n=l*(o.length-1)/4,r=new SuperMapAlgoPlot.Point(o[n].x,o[n].y),i=new SuperMapAlgoPlot.Point(o[n+1].x,o[n+1].y),a=new SuperMapAlgoPlot.Point((r.x+i.x)/2,(r.y+i.y)/2),u=SuperMapAlgoPlot.PlottingUtil.radian(a,i)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,s=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,u),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,4*p,4*p,u+270),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,u+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c,P],{surroundLineLimit:!0,lineTypeLimit:!0})}this.finish()}}}])&&Vc(e.prototype,o),l&&Vc(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ec(t){"@babel/helpers - typeof";return(Ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _c(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var n=0;n<4;n++){var r=n*(l.length-1)/4,i=new SuperMapAlgoPlot.Point(l[r].x,l[r].y),a=new SuperMapAlgoPlot.Point(l[r+1].x,l[r+1].y),u=new SuperMapAlgoPlot.Point((i.x+a.x)/2,(i.y+a.y)/2),p=180*SuperMapAlgoPlot.PlottingUtil.radian(u,a)/Math.PI,s=e*this.scaleValues[0]/2,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,s,s,p),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,4*s,4*s,p+270),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,s,s,p+180);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,P,f],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0})}this.finish()}}}])&&_c(e.prototype,o),l&&_c(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Nc(t){"@babel/helpers - typeof";return(Nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dc(t,e){for(var o=0;o=2&&this.controlPoints.length.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[1]=this.getSubSymbolScaleValue(),this.scaleValues[2]=.5*this.getSubSymbolScaleValue()}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);0=2){var P=o*this.scaleValues[1],f=.3*P,g=.8*P,y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(o-g,e),h=1.1*P,S=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(o-h,e),b=180*SuperMapAlgoPlot.PlottingUtil.radian(y.pts,S.pts)/Math.PI,d=SuperMapAlgoPlot.PlottingUtil.circlePoint(y.pts,f,f,b+90),A=SuperMapAlgoPlot.PlottingUtil.circlePoint(y.pts,f,f,b+270),M=SuperMapAlgoPlot.PlottingUtil.circlePoint(S.pts,f,f,b+90),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(S.pts,f,f,b+270),v=[];v.push(d),v.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,{surroundLineLimit:!0,lineTypeLimit:!0}),(v=[]).push(M),v.push(m),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,{surroundLineLimit:!0,lineTypeLimit:!0})}}var O=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),w=SuperMapAlgoPlot.PlottingUtil.circlePoint(O.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,i+90);this.addScalePoint(w,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengthP&&(i=p,u=c,a=P)}}if(-1==i||i>l.length-1)return;n=0;for(var f=0;fr)return;var g=n/r;this.scaleValues[0]=g}else if(1===t){var y=r*this.scaleValues[0],h=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,y);if(-1===h.index)return;var S=h.pt,b=l[h.index],d=l[h.index+1],A=SuperMapAlgoPlot.PlottingUtil.radian(b,d),M=SuperMapAlgoPlot.PlottingUtil.radian(S,e)-A;this.scaleValues[1]=M;var m=(n=SuperMapAlgoPlot.PlottingUtil.distance(S,e))/r;this.scaleValues[2]=m}}}}])&&nP(e.prototype,o),l&&nP(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function pP(t){"@babel/helpers - typeof";return(pP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sP(t,e){for(var o=0;o.2||l<=0)&&(l=.2),this.scaleValues[2]=l,this.scaleValues[4]=l}var n=o*this.scaleValues[0],r=180*this.scaleValues[1]/Math.PI,i=o*this.scaleValues[2],a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,n);if(-1!==a.index){var u=a.pt,p=new SuperMapAlgoPlot.Point(e[a.index].x,e[a.index].y),s=new SuperMapAlgoPlot.Point(e[a.index+1].x,e[a.index+1].y),c=180*SuperMapAlgoPlot.PlottingUtil.radian(p,s)/Math.PI,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,i,i,c+r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P],{surroundLineLimit:!0,lineTypeLimit:!0});var f=180*SuperMapAlgoPlot.PlottingUtil.radian(u,P)/Math.PI,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.2*i,.2*i,f-157.5),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.2*i,.2*i,f+157.5);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,g,y],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});var h=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.5,g,y),S=[];S.push(u),S.push(h);var b=SuperMapAlgoPlot.PlottingUtil.polylineDistance(S),d=b*this.scaleValues[5],A=b*this.scaleValues[0],M=(u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(S,A).pt,f);0.5*d){O=L-1,w=SuperMapAlgoPlot.PlottingUtil.linePnt(v,e[L],.5*d);break}-1===O&&(O=e.length-1,w=e[e.length-1]);var U=null;if(null!==w){for(var V=180*SuperMapAlgoPlot.PlottingUtil.radian(v,w)/Math.PI,j=[],T=0;T=0;B--)if(SuperMapAlgoPlot.PlottingUtil.distance(x,e[B])>.5*d){E=B,_=SuperMapAlgoPlot.PlottingUtil.linePnt(x,e[B],.5*d);break}if(-1===E&&(E=0,_=e[0]),null!==_){for(var Y=180*SuperMapAlgoPlot.PlottingUtil.radian(x,_)/Math.PI,C=[],I=0;IP&&(i=p,u=c,a=P))}}if(-1===i||i>l.length-1)return;n=0;for(var f=0;fr)return;var g=n/r;this.scaleValues[0]=g}else if(1===t){var y=r*this.scaleValues[0],h=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,y);if(-1===h.index)return;var S=h.pt,b=l[h.index],d=l[h.index+1],A=SuperMapAlgoPlot.PlottingUtil.radian(b,d),M=SuperMapAlgoPlot.PlottingUtil.radian(S,e)-A;this.scaleValues[1]=M;var m=(n=SuperMapAlgoPlot.PlottingUtil.distance(S,e))/r;this.scaleValues[2]=m}else if(2===t){var v=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/r;v>.35&&(v=.35),this.scaleValues[4]=v}}}},{key:"getLeftSubSymbolPts",value:function(t){var e=.25*t,o=[],l=new SuperMapAlgoPlot.Point(0,0),n=new SuperMapAlgoPlot.Point(e,-2*e),r=new SuperMapAlgoPlot.Point(2*e,0),i=new SuperMapAlgoPlot.Point(e,2*e);return o.push(l),o.push(n),o.push(r),o.push(i),o.push(l),o}},{key:"getRightSubSymbolPts",value:function(t){return this.getLeftSubSymbolPts(t)}}])&&sP(e.prototype,o),l&&sP(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function yP(t){"@babel/helpers - typeof";return(yP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hP(t,e){for(var o=0;o.5*h){d=M-1,A=SuperMapAlgoPlot.PlottingUtil.linePnt(b,e[M],.5*h);break}-1===d&&(d=e.length-1,A=e[e.length-1]);var m=null;if(null!==A){for(var v=180*SuperMapAlgoPlot.PlottingUtil.radian(b,A)/Math.PI,O=[],w=0;w=0;T--)if(SuperMapAlgoPlot.PlottingUtil.distance(U,e[T])>.5*h){V=T,j=SuperMapAlgoPlot.PlottingUtil.linePnt(U,e[T],.5*h);break}if(-1===V&&(V=0,j=e[0]),null!==j){for(var R=180*SuperMapAlgoPlot.PlottingUtil.radian(U,j)/Math.PI,x=[],E=0;Ev&&(S=A,d=m,b=v)}}if(-1==S||S>y.length-1)return;r=0;for(var O=0;Ol)return;var w=r/l;this.scaleValues[0]=w}else if(1===t){i=l*this.scaleValues[0];var L=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,i);if(-1===L.index)return;a=L.pt,u=g[L.index],p=g[L.index+1],s=SuperMapAlgoPlot.PlottingUtil.radian(u,p);var U=(f=SuperMapAlgoPlot.PlottingUtil.radian(a,e))-s;this.scaleValues[1]=U;var V=(r=SuperMapAlgoPlot.PlottingUtil.distance(a,e))/l/1.5;this.scaleValues[2]=V}else if(2===t){if(i=l*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,r=l*this.scaleValues[2],-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,i)).index)return;P=a.pt,u=g[a.index],p=g[a.index+1],s=180*SuperMapAlgoPlot.PlottingUtil.radian(u,p)/Math.PI;var j=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.4*r,.4*r,s+c),T=SuperMapAlgoPlot.PlottingUtil.distance(e,j)/(.4*r);this.scaleValues[5]=T}else if(3===t){if(i=l*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,r=l*this.scaleValues[2],-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,i)).index)return;P=a.pt,u=g[a.index],p=g[a.index+1],f=(s=180*SuperMapAlgoPlot.PlottingUtil.radian(u,p)/Math.PI)+c;var R=new SuperMapAlgoPlot.Point(.6*r,0),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,R,f),E=.4*r*this.scaleValues[5],_=new SuperMapAlgoPlot.Point(0,E),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(x,_,f),Y=2*SuperMapAlgoPlot.PlottingUtil.distance(B,e)/(.4*r);this.scaleValues[6]=Y}}}}])&&mP(e.prototype,o),l&&mP(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function UP(t){"@babel/helpers - typeof";return(UP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function VP(t,e){for(var o=0;ou||.3.3||n<=0)&&(n=.3),this.scaleValues[1]=n,this.scaleValues[3]=n}var r=this.scaleValues[1],i=180*this.scaleValues[2]/Math.PI,a=o*this.scaleValues[0],u=o*this.scaleValues[3],p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,a);if(-1!==p.index){var s=p.pt,c=e[p.index],P=e[p.index+1],f=SuperMapAlgoPlot.PlottingUtil.radian(c,P)*SuperMapAlgoPlot.PlottingUtil.RTOD,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,u,u,f+i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p.pt,g],{surroundLineLimit:!0,lineTypeLimit:!0});var y,h=SuperMapAlgoPlot.PlottingUtil.radian(s,g)*SuperMapAlgoPlot.PlottingUtil.RTOD,S=o*r;0b&&(P=y,g=S,f=b)}}if(-1==P||P>s.length-1)return;for(var d=0,A=0;Al)return;var M=d/l;this.scaleValues[0]=M}else if(1===t){var m=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,l*this.scaleValues[0]);if(-1===m.index)return;r=m.pt,i=p[m.index],a=p[m.index+1],u=SuperMapAlgoPlot.PlottingUtil.radian(i,a)*SuperMapAlgoPlot.PlottingUtil.RTOD;var v=l*this.scaleValues[3],O=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,v,v,u+this.scaleValues[2]*SuperMapAlgoPlot.PlottingUtil.RTOD+180),w=SuperMapAlgoPlot.PlottingUtil.distance(O,e)/l*2;this.scaleValues[1]=w}else if(2===t){var L=l*this.scaleValues[0],U=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,L);if(-1===U.index)return;r=U.pt,i=p[U.index],a=p[U.index+1],u=SuperMapAlgoPlot.PlottingUtil.radian(i,a);var V=SuperMapAlgoPlot.PlottingUtil.radian(r,e)-u;this.scaleValues[2]=V}}}}])&&DP(e.prototype,o),l&&DP(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function WP(t){"@babel/helpers - typeof";return(WP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function KP(t,e){for(var o=0;oM&&(y=b,S=A,h=M)}}if(-1==y||y>g.length-1)return;r=0;for(var m=0;ml)return;var v=r/l;this.scaleValues[0]=v}else if(1===t){i=l*this.scaleValues[0];var O=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,i);if(-1===O.index)return;u=a=O.pt,p=g[O.index],s=g[O.index+1],c=SuperMapAlgoPlot.PlottingUtil.radian(p,s);var w=SuperMapAlgoPlot.PlottingUtil.radian(u,e)-c;this.scaleValues[1]=w;var L=(r=SuperMapAlgoPlot.PlottingUtil.distance(a,e))/l;this.scaleValues[2]=L}else if(2===t){if(i=l*this.scaleValues[0],P=180*this.scaleValues[1]/Math.PI,r=l*this.scaleValues[2],-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,i)).index)return;u=a.pt,p=g[a.index],s=g[a.index+1],c=180*SuperMapAlgoPlot.PlottingUtil.radian(p,s)/Math.PI,f=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,r,r,c+P-180);var U=SuperMapAlgoPlot.PlottingUtil.distance(e,f)/(.4*r);this.scaleValues[5]=U}else if(3===t){if(i=l*this.scaleValues[0],P=180*this.scaleValues[1]/Math.PI,r=l*this.scaleValues[2],-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,i)).index)return;u=a.pt,p=g[a.index],s=g[a.index+1],c=180*SuperMapAlgoPlot.PlottingUtil.radian(p,s)/Math.PI,f=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,r,r,c+P-180);var V=.4*r*this.scaleValues[5],j=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,V,V,c+P+90),T=2*SuperMapAlgoPlot.PlottingUtil.distance(j,e)/(.4*r);if(this.scaleValues[5]-.25*T<=0)return;this.scaleValues[6]=T}}}}])&&KP(e.prototype,o),l&&KP(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function XP(t){"@babel/helpers - typeof";return(XP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function QP(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],i,2*r,c),this.addScalePoint(u.pntRight),this.finish()}}}])&&cf(e.prototype,o),l&&cf(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function hf(t){"@babel/helpers - typeof";return(hf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sf(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],n,2*l,v),this.addScalePoint(a.pntRight,0),this.finish()}}}])&&Sf(e.prototype,o),l&&Sf(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function mf(t){"@babel/helpers - typeof";return(mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vf(t,e){for(var o=0;o.3||u<=0)&&(u=.3),this.scaleValues[0]=u}var p=new SuperMapAlgoPlot.Point(e.x+l,e.y),s=new SuperMapAlgoPlot.Point(e.x+4*l,e.y),c=SuperMapAlgoPlot.PlottingUtil.radian(p,s)*SuperMapAlgoPlot.PlottingUtil.RTOD,P=o*this.scaleValues[0]*2,f=new SuperMapAlgoPlot.Point(e.x+o*this.scaleValues[1],e.y+o*this.scaleValues[2]);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],f,.8*P,c),this.addScalePoint(f);var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,P/2,P/2,90);this.addScalePoint(g),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.3||o<=0)&&(o=.3),this.scaleValues[2]=o}var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),n=Math.abs(t[1].x-t[0].x)*this.getSubSymbolScaleValue()*.5,r=Math.abs(t[1].y-t[0].y)*this.getSubSymbolScaleValue()*.5;if(t[0].y>t[1].y){var i=new SuperMapAlgoPlot.Point(l.x,t[0].y),a=new SuperMapAlgoPlot.Point(l.x,t[0].y-r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[i,a],{surroundLineLimit:!0,lineTypeLimit:!0});var u=new SuperMapAlgoPlot.Point(l.x,t[1].y),p=new SuperMapAlgoPlot.Point(l.x,t[1].y+r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,p],{surroundLineLimit:!0,lineTypeLimit:!0})}else{var s=new SuperMapAlgoPlot.Point(l.x,t[1].y),c=new SuperMapAlgoPlot.Point(l.x,t[1].y-r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c],{surroundLineLimit:!0,lineTypeLimit:!0});var P=new SuperMapAlgoPlot.Point(l.x,t[0].y),f=new SuperMapAlgoPlot.Point(l.x,t[0].y+r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[P,f],{surroundLineLimit:!0,lineTypeLimit:!0})}if(t[0].x>t[1].x){var g=new SuperMapAlgoPlot.Point(t[0].x,l.y),y=new SuperMapAlgoPlot.Point(t[0].x-n,l.y);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[g,y],{surroundLineLimit:!0,lineTypeLimit:!0});var h=new SuperMapAlgoPlot.Point(t[1].x,l.y),S=new SuperMapAlgoPlot.Point(t[1].x+n,l.y);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[h,S],{surroundLineLimit:!0,lineTypeLimit:!0})}else{var b=new SuperMapAlgoPlot.Point(t[1].x,l.y),d=new SuperMapAlgoPlot.Point(t[1].x-n,l.y);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[b,d],{surroundLineLimit:!0,lineTypeLimit:!0});var A=new SuperMapAlgoPlot.Point(t[0].x,l.y),M=new SuperMapAlgoPlot.Point(t[0].x+n,l.y);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[A,M],{surroundLineLimit:!0,lineTypeLimit:!0})}this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t);var m=new SuperMapAlgoPlot.Point(l.x+e*this.scaleValues[0],l.y+e*this.scaleValues[1]),v=e*this.scaleValues[2]*1.2;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],m,v,0),this.addScalePoint(m);var O=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,v/2,v/2,90);this.addScalePoint(O),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length0&&this.computeSubSymbol(this.subSymbols[0],b,i,c-90),this.finish()}}}}])&&$f(e.prototype,o),l&&$f(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ng(t){"@babel/helpers - typeof";return(ng="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rg(t,e){for(var o=0;oe.x),c=[];s?(c.push(o),c.push(u)):(c.push(o),c.push(p)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});var P=[];s?(P.push(l),P.push(p)):(P.push(l),P.push(u)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});var f,g,y,h,S=.37*r,b=SuperMapAlgoPlot.PlottingUtil.linePnt(n,e,S),d=.09*r,A=[];A.push(b),A.push(new SuperMapAlgoPlot.Point(b.x,b.y+d)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,A,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE}),s?(f=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,n,b)).pntLeft,g=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*d,n,b)).pntLeft,y=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,f,g)).pntRight,h=a.pntLeft):(f=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,n,b)).pntRight,g=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*d,n,b)).pntRight,y=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,f,g)).pntRight,h=a.pntLeft);var M=[];M.push(f),M.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE});var m=[];m.push(y),m.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE}),this.finish()}}}])&&rg(e.prototype,o),l&&rg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function sg(t){"@babel/helpers - typeof";return(sg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cg(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[5]=n);var i=1.5*this.scaleValues[5];2==t.length?(this.isEdit||(this.scaleValues[3]=this.scaleValues[2]+i),o=this.scaleValues[2],l=this.scaleValues[3]):(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.scaleValues[4],0)&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.125)),this.isEdit||(this.scaleValues[4]=this.scaleValues[3]+i,((n=this.getDefaultSubSymbolSize()/r)>.3||n<=0)&&(n=.3),this.scaleValues[5]=n),o=this.scaleValues[3],l=this.scaleValues[4]);var a=r*o,u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(u.bfind){var p=u.index,s=u.pts,c=r*l;if((u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c,e)).bfind){for(var P=u.index,f=u.pts,g=new SuperMapAlgoPlot.Point(s.x,s.y),y=new SuperMapAlgoPlot.Point(f.x,f.y),h=SuperMapAlgoPlot.PlottingUtil.radian(g,y)*SuperMapAlgoPlot.PlottingUtil.RTOD,S=[],b=0;b<=p;b++)S.push(e[b]);for(S.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S),(S=[]).push(f),b=P+1;bo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r,i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),a=0,u=0;if(2==o.length?(a=this.scaleValues[2],u=this.scaleValues[3]):(a=this.scaleValues[3],u=this.scaleValues[4]),0==t){for(var p=u-a,s=e.clone(),c=[],P=0;Pd&&(g=h,f=b,y=d)}}if(-1==g||g>c.length-1)return;n=0;for(var A=0;Ai)return;if((r=n/i)>.7||r-p<0)return;2==o.length?(this.scaleValues[2]=r-p,this.scaleValues[3]=r):(this.scaleValues[3]=r-p,this.scaleValues[4]=r)}else if(1==t){n=i*a;var M=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,l);if(!M.bfind)return;var m=M.pts;if(.7<(r=(2*SuperMapAlgoPlot.PlottingUtil.distance(m,e)+n)/i))return;2==o.length?this.scaleValues[3]=r:this.scaleValues[4]=r}}}}])&&Sg(e.prototype,o),l&&Sg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function mg(t){"@babel/helpers - typeof";return(mg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vg(t,e){for(var o=0;o1&&(u=1);var p,s,c=e*u,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,c,c,n),f=[];f.push(t[0].clone()),f.push(P),p=SuperMapAlgoPlot.PlottingUtil.paraLine(f,a,!0),s=SuperMapAlgoPlot.PlottingUtil.paraLine(f,a,!1);var g,y=[];for(g=0;g0&&this.computeSubSymbol(this.subSymbols[0],b,S/2,n+180);for(var d=[],A=.1*c,M=[],m=0;m=O)){for(var w=A;wo.length)return;var l,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);0==t?(l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],e)/n,this.scaleValues[0]=l):1==t&&(l=2*SuperMapAlgoPlot.PlottingUtil.distance(o[1],e)/n,this.scaleValues[1]=l)}}}])&&jg(e.prototype,o),l&&jg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _g(t){"@babel/helpers - typeof";return(_g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bg(t,e){for(var o=0;o0){var b=.2*e,d=new SuperMapAlgoPlot.Point(t[1].x,t[1].y+b/2);this.computeSubSymbol(this.subSymbols[0],d,b,0)}this.finish()}}}])&&kg(e.prototype,o),l&&kg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Kg(t){"@babel/helpers - typeof";return(Kg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qg(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0==t){var n=.5*l,r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,o).pts,i=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/l;i>.5&&(i=.5),this.scaleValues[0]=i}}}}])&&qg(e.prototype,o),l&&qg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qg(t){"@babel/helpers - typeof";return(Qg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $g(t,e){for(var o=0;o=0;r--)i.push(e[r]);for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),e=[],r=195;r<=345;r+=4)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(o,n,n,r));for(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,345)&&(r=345,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(o,n,n,r))),i=[],r=e.length-1;r>=0;r--)i.push(e[r]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i);var a=.8*n;(e=[]).push(new SuperMapAlgoPlot.Point(o.x-a,o.y)),e.push(new SuperMapAlgoPlot.Point(o.x+a,o.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0,surroundLineLimit:!0}),(e=[]).push(new SuperMapAlgoPlot.Point(o.x-.4*n,o.y)),e.push(new SuperMapAlgoPlot.Point(o.x-.4*n,o.y+.4*n)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0,surroundLineLimit:!0}),this.finish()}}}])&&$g(e.prototype,o),l&&$g(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ny(t){"@babel/helpers - typeof";return(ny="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ry(t,e){for(var o=0;o=0;r--)i.push(e[r]);for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),e=[],r=195;r<=345;r+=4)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(o,n,n,r));for(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,345)&&(r=345,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(o,n,n,r))),i=[],r=e.length-1;r>=0;r--)i.push(e[r]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i);var a=2*this.scaleValues[0]*n;(e=[]).push(new SuperMapAlgoPlot.Point(o.x-a,o.y)),e.push(new SuperMapAlgoPlot.Point(o.x-.4*a,o.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0,surroundLineLimit:!0}),(e=[]).push(new SuperMapAlgoPlot.Point(o.x-.2*a,o.y)),e.push(new SuperMapAlgoPlot.Point(o.x+.4*a,o.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0,surroundLineLimit:!0}),(e=[]).push(new SuperMapAlgoPlot.Point(o.x+.6*a,o.y)),e.push(new SuperMapAlgoPlot.Point(o.x+a,o.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0,surroundLineLimit:!0}),(e=[]).push(new SuperMapAlgoPlot.Point(o.x-this.scaleValues[0]*n,o.y)),e.push(new SuperMapAlgoPlot.Point(o.x-this.scaleValues[0]*n,o.y+this.scaleValues[0]*n)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0,surroundLineLimit:!0}),this.finish()}}}])&&ry(e.prototype,o),l&&ry(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function sy(t){"@babel/helpers - typeof";return(sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cy(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[1]=.5*l}this.addArrow(e,this.scaleValues[1]);var n=o*this.scaleValues[0],r=new SuperMapAlgoPlot.Point(e[0].x,e[0].y),i=new SuperMapAlgoPlot.Point(e[1].x,e[1].y),a=SuperMapAlgoPlot.PlottingUtil.radian(i,r)*SuperMapAlgoPlot.PlottingUtil.RTOD,u=new SuperMapAlgoPlot.Point(0,.5*n),p=new SuperMapAlgoPlot.Point(n,.5*n),s=new SuperMapAlgoPlot.Point(1.5*n,0),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,u,a),P=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,p,a),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,s,a);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[e[0],c,P,f],{lineTypeLimit:!0,surroundLineLimit:!0}),this.finish()}}}}])&&cy(e.prototype,o),l&&cy(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function hy(t){"@babel/helpers - typeof";return(hy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sy(t,e){for(var o=0;o.3||i<=0)&&(i=.3),this.scaleValues[0]=i,this.scaleValues[1]=.5*i}var a,u=o*this.scaleValues[0],p=[];for(p.push(r),a=n;a>=0;a--)p.push(e[a]);if((l=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(u,p)).bfind){var s=l.index,c=l.pts,P=[];for(a=p.length-1;a>s;a--)P.push(p[a]);P.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var f=[];for(f.push(r),a=n+1;a.3||i<=0)&&(i=.3),this.scaleValues[0]=i,this.scaleValues[1]=.5*i}var a,u=o*this.scaleValues[0],p=[];for(p.push(r),a=n;a>=0;a--)p.push(e[a]);if((l=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(u,p)).bfind){var s=l.index,c=l.pts,P=[];for(a=p.length-1;a>s;a--)P.push(p[a]);P.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var f=[];for(f.push(r),a=n+1;a.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=e[0],r=e[1],i=e[e.length-1],a=e[e.length-2],u=SuperMapAlgoPlot.PlottingUtil.radian(n,r)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=SuperMapAlgoPlot.PlottingUtil.radian(a,i)*SuperMapAlgoPlot.PlottingUtil.RTOD,s=this.scaleValues[0],c=o*s,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,c,c,u+90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,c,c,u+270),g=[];g.push(P),g.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(f);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,c,c,p+90),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,c,c,p+270);(g=[]).push(y),g.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0,surroundLineLimit:!0});var S,b,d=t.length;if(this.scaleValues.length<=d){for(this.scaleValues=[],this.scaleValues.push(s),b=1/d,S=0;S=this.scalePoints.length)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0==t){var i=(n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0]))/r;this.scaleValues[0]=i}else{var a,u=e,p=[];for(a=0;ay&&(s=a,P=g,c=y)}}if(-1==s||s>p.length-1)return;for(n=0,a=0;ar)return;var h=n/r;this.scaleValues[t]=h}}}}])&&jy(e.prototype,o),l&&jy(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _y(t){"@babel/helpers - typeof";return(_y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function By(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],o,l,0),this.scalePoints=[];var n=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,l,l,90);this.addScalePoint(n),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var r=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/l;this.scaleValues[0]=r}}}}])&&By(e.prototype,o),l&&By(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Dy(t){"@babel/helpers - typeof";return(Dy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ky(t,e){for(var o=0;o=this.scaleValues.length&&this.scaleValues.push(0);var g=this.scaleValues[2*(l+1)];2*(l+1)+1>=this.scaleValues.length&&this.scaleValues.push(1);var y=g;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[l],f,n,y);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,1.5*n,1.5*n,y+90);this.addScalePoint(h)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>this.scalePoints.length)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;if(0==t){for(var l=[],n=0;n(u-=90)&&(u+=360),this.scaleValues[2*t]=u}}}},{key:"GetCodeByScaleValue",value:function(t){switch(Math.floor(t)){case 0:return 35300;case 1:return 35301;case 2:return 35302;case 3:return 35303;case 4:return 35400;case 5:return 35401;case 6:return 35402;case 7:return 35403;default:return-1}}}])&&ky(e.prototype,o),l&&ky(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ky(t){"@babel/helpers - typeof";return(Ky="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qy(t,e){for(var o=0;othis.scalePoints.length)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0]);this.scaleValues[0]=2*n/l}}}}])&&qy(e.prototype,o),l&&qy(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qy(t){"@babel/helpers - typeof";return(Qy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $y(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],i,l,U-90),this.scalePoints=[];var V=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,l,l,U-90);this.addScalePoint(V),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;if(0==t){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=e,r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,o).pts,i=SuperMapAlgoPlot.PlottingUtil.distance(n,r)/l;this.scaleValues[0]=i<.5?i:.5}}}}])&&rh(e.prototype,o),l&&rh(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function sh(t){"@babel/helpers - typeof";return(sh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ch(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],u,s,p+90),this.scalePoints=[],this.addScalePoint(a[a.length-1]);var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,s,s,p+90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}else if(1==t){var r=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),i=SuperMapAlgoPlot.PlottingUtil.distance(r,e)/l;i>=.8&&(i=.8),this.scaleValues[1]=i}}}}])&&ch(e.prototype,o),l&&ch(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function hh(t){"@babel/helpers - typeof";return(hh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sh(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[1]=l,this.scaleValues[2]=.5*l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=180*SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);0=2){for(var n=-1,r=0;r0&&this.computeSubSymbol(this.subSymbols[0],c,.9*s,y-90),this.scalePoints=[],this.addScalePoint(u[u.length-1]);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,y+90);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}else if(1==t){var r=this.scaleValues[0]*l,i=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],r,r,90),a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[1],r,r,90),u=new SuperMapAlgoPlot.Point((i.x+a.x)/2,(i.y+a.y)/2),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e)/l;p>=.8&&(p=.8),this.scaleValues[1]=p}}}}])&&jh(e.prototype,o),l&&jh(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _h(t){"@babel/helpers - typeof";return(_h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bh(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[0]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[1],o[0]),r=SuperMapAlgoPlot.PlottingUtil.distance(n,o[1]);90>SuperMapAlgoPlot.PlottingUtil.radian(o[1],n)*SuperMapAlgoPlot.PlottingUtil.RTOD&&(r=-r);var i=r/l;this.scaleValues[0]=i;var a=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/l;this.scaleValues[1]=a}}}}])&&kh(e.prototype,o),l&&kh(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Kh(t){"@babel/helpers - typeof";return(Kh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qh(t,e){for(var o=0;o2)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[0]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[1],o[0]),r=SuperMapAlgoPlot.PlottingUtil.distance(n,o[1]);90>SuperMapAlgoPlot.PlottingUtil.radian(o[1],n)*SuperMapAlgoPlot.PlottingUtil.RTOD&&(r=-r);var i=r/l;this.scaleValues[0]=i;var a=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/l;this.scaleValues[1]=a}else if(1==t){var u=SuperMapAlgoPlot.PlottingUtil.distance(o[0],e)/l;if(.1>u||u>.95)return;this.scaleValues[2]=u}else if(2==t){var p=SuperMapAlgoPlot.PlottingUtil.distance(o[0],e)/l;if(.1>p||p>.95)return;this.scaleValues[3]=p}}}}])&&qh(e.prototype,o),l&&qh(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qh(t){"@babel/helpers - typeof";return(Qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $h(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.15||n<=0)&&(n=.15),this.scaleValues[0]=n}var r=l*this.scaleValues[2],i=l*this.scaleValues[3],a=new SuperMapAlgoPlot.Point(o.x+r,o.y+i),u=l*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,u,0),this.scalePoints=[];var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,180);this.addScalePoint(p),this.addScalePoint(a),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=[];if(l=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=n*this.scaleValues[2],a=n*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(r.x+i,r.y+a),p=SuperMapAlgoPlot.PlottingUtil.distance(e,u)/n;this.scaleValues[0]=p}else if(1==t){var s=(e.x-r.x)/n,c=(e.y-r.y)/n;this.scaleValues[2]=s,this.scaleValues[3]=c}}}}])&&$h(e.prototype,o),l&&$h(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function nS(t){"@babel/helpers - typeof";return(nS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rS(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),n=o*this.scaleValues[2],r=o*this.scaleValues[3],i=new SuperMapAlgoPlot.Point(l.x+n,l.y+r);if(!this.isEdit){var a=this.getDefaultSubSymbolSize()/o;(a>.3||a<=0)&&(a=.3),this.scaleValues[0]=a}var u=o*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],i,u,90),this.scalePoints=[];var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,u,u,180);this.addScalePoint(p),this.addScalePoint(i),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=[];if(l=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=n*this.scaleValues[2],a=n*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(r.x+i,r.y+a),p=SuperMapAlgoPlot.PlottingUtil.distance(e,u)/n;this.scaleValues[0]=p}else if(1==t){var s=(e.x-r.x)/n,c=(e.y-r.y)/n;this.scaleValues[2]=s,this.scaleValues[3]=c}}}}])&&rS(e.prototype,o),l&&rS(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function sS(t){"@babel/helpers - typeof";return(sS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cS(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.2||n<=0)&&(n=.2),this.scaleValues[0]=n}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3],u=l*r,p=new SuperMapAlgoPlot.Point(o.x+l*i,o.y+l*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,u,0),this.addScalePoint(p);var s=u,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,s,s,90);this.addScalePoint(c),this.finish()}}}])&&cS(e.prototype,o),l&&cS(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function hS(t){"@babel/helpers - typeof";return(hS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function SS(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[1]=l,this.scaleValues[2]=.5*l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=180*SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);0.3||r<=0)&&(r=.3),this.scaleValues[2]=r}var i=this.scaleValues[0],a=this.scaleValues[1],u=this.scaleValues[2],p=this.scaleValues[3],s=i*SuperMapAlgoPlot.PlottingUtil.RTOD,c=n-s,P=n+s,f=this.GetArcPts(c,P,e,l);if(!(2>f.length)){this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var g=l*u,y=n-90,h=l*p,S=SuperMapAlgoPlot.PlottingUtil.linePnt(e,o,h),b=SuperMapAlgoPlot.PlottingUtil.radian(S,o)*SuperMapAlgoPlot.PlottingUtil.RTOD-30,d=SuperMapAlgoPlot.PlottingUtil.distance(S,o),A=0,M=t[0].clone(),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,d,d,b),v=null;if(this.subSymbols.length>0&&null!=(v=this.computeSubSymbol(this.subSymbols[0],S,g,y,0,-.5)))for(var O=0;Ov[O].positionPoints))for(var w=0;wSuperMapAlgoPlot.PlottingUtil.distance(S,M)&&(M=V),A++)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[M,m],{lineTypeLimit:!0,surroundLineLimit:!0});var j=SuperMapAlgoPlot.PlottingUtil.radian(m,M)*SuperMapAlgoPlot.PlottingUtil.RTOD,T=SuperMapAlgoPlot.PlottingUtil.distance(M,m),R=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,.1*T,.1*T,j-15),x=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,.1*T,.1*T,j+15),E=[];E.push(m),E.push(R),E.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,E,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var _=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,l,l,P);this.addScalePoint(_);var B=SuperMapAlgoPlot.PlottingUtil.linePnt(S,o,l*u);if(this.addScalePoint(B),this.addScalePoint(S),3==t.length){var Y=t[2],C=SuperMapAlgoPlot.PlottingUtil.distance(e,Y),I=a*SuperMapAlgoPlot.PlottingUtil.RTOD,N=n-I,D=n+I,k=this.GetArcPts(N,D,e,C);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,k);var z=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,C,C,D);this.addScalePoint(z);var F=m,G=SuperMapAlgoPlot.PlottingUtil.distance(e,Y)-l,W=SuperMapAlgoPlot.PlottingUtil.circlePoint(F,G,G,b);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[F,W],{lineTypeLimit:!0,surroundLineLimit:!0});var K=SuperMapAlgoPlot.PlottingUtil.circlePoint(W,.1*G,.1*G,j-15),q=SuperMapAlgoPlot.PlottingUtil.circlePoint(W,.1*G,.1*G,j+15),H=[];H.push(W),H.push(K),H.push(q),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,H,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0})}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>3)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=e,n=o[0],r=o[1],i=SuperMapAlgoPlot.PlottingUtil.distance(n,r),a=SuperMapAlgoPlot.PlottingUtil.radian(n,r);if(0==t){var u=SuperMapAlgoPlot.PlottingUtil.radian(n,l),p=Math.abs(u-a);this.scaleValues[0]=p}else if(1==t){var s=i*this.scaleValues[3],c=SuperMapAlgoPlot.PlottingUtil.linePnt(n,r,s),P=SuperMapAlgoPlot.PlottingUtil.distance(l,c)/i;this.scaleValues[2]=P}else if(2==t){var f=SuperMapAlgoPlot.PlottingUtil.distance(l,n)/i;if(f>=1)return;this.scaleValues[3]=f}else if(3==t){var g=SuperMapAlgoPlot.PlottingUtil.radian(n,l),y=Math.abs(g-a);this.scaleValues[1]=y}}}},{key:"GetArcPts",value:function(t,e,o,l){var n,r=[],i=0;for(i=e;i>=t;i-=4)n=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,l,l,i),r.push(n);return i!=t&&(n=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,l,l,t),r.push(n)),r}}])&&vS(e.prototype,o),l&&vS(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function VS(t){"@babel/helpers - typeof";return(VS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jS(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),a=SuperMapAlgoPlot.PlottingUtil.clearSamePts(a),!(this.minEditPts>a.length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,a);var u=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var s=this.getSubSymbolScaleValue()*p;this.scaleValues[0]=s/p,this.scaleValues[3]=s/p,this.scaleValues[6]=s/p}var c=new SuperMapAlgoPlot.Point(u.x+p*e,u.y+p*o),P=new SuperMapAlgoPlot.Point(u.x+p*l,u.y+p*n),f=new SuperMapAlgoPlot.Point(u.x+p*r,u.y+p*i),g=p*this.scaleValues[0],y=p*this.scaleValues[3],h=p*this.scaleValues[6];this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],c,1.5*g,0),this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],P,1.5*y,0),this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[2],f,1.5*h,0),this.addScalePoint(c);var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,g,g,180);this.addScalePoint(S),this.addScalePoint(P);var b=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,y,y,180);this.addScalePoint(b),this.addScalePoint(f);var d=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,h,h,180);this.addScalePoint(d),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),P=SuperMapAlgoPlot.PlottingUtil.clearSamePts(P),this.minEditPts>P.length)return;this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,P);var f=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),g=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t)n=(e.x-f.x)/g,this.scaleValues[1]=n,r=(e.y-f.y)/g,this.scaleValues[2]=r;else if(1===t){n=this.scaleValues[1],r=this.scaleValues[2];var y=new SuperMapAlgoPlot.Point(f.x+g*n,f.y+g*r);l=SuperMapAlgoPlot.PlottingUtil.distance(y,e)/g,this.scaleValues[0]=l}if(2===t)a=(e.x-f.x)/g,this.scaleValues[4]=a,u=(e.y-f.y)/g,this.scaleValues[5]=u;else if(3===t){a=this.scaleValues[4],u=this.scaleValues[5];var h=new SuperMapAlgoPlot.Point(f.x+g*a,f.y+g*u);i=SuperMapAlgoPlot.PlottingUtil.distance(h,e)/g,this.scaleValues[3]=i}if(4===t)s=(e.x-f.x)/g,this.scaleValues[7]=s,c=(e.y-f.y)/g,this.scaleValues[8]=c;else if(5===t){s=this.scaleValues[7],c=this.scaleValues[8];var S=new SuperMapAlgoPlot.Point(f.x+g*s,f.y+g*c);p=SuperMapAlgoPlot.PlottingUtil.distance(S,e)/g,this.scaleValues[6]=p}}}}])&&jS(e.prototype,o),l&&jS(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _S(t){"@babel/helpers - typeof";return(_S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function BS(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/o;(n>.1||n<=0)&&(n=.1),this.scaleValues[0]=n}var r=o*this.scaleValues[2],i=o*this.scaleValues[3],a=new SuperMapAlgoPlot.Point(l.x+r,l.y+i),u=o*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,u,0),this.scalePoints=[];var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,180);this.addScalePoint(p),this.addScalePoint(a),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=[];if(l=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=n*this.scaleValues[2],a=n*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(r.x+i,r.y+a),p=SuperMapAlgoPlot.PlottingUtil.distance(e,u)/n;this.scaleValues[0]=p}else if(1==t){var s=(e.x-r.x)/n,c=(e.y-r.y)/n;this.scaleValues[2]=s,this.scaleValues[3]=c}}}}])&&BS(e.prototype,o),l&&BS(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function DS(t){"@babel/helpers - typeof";return(DS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kS(t,e){for(var o=0;o=0;--m)M.push(b[m]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M);var v=t[0],O=t[0],w=t[1],L=SuperMapAlgoPlot.PlottingUtil.radian(O,w)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,U=.2*l;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],v,U,L),this.scalePoints=[],this.addScalePoint(b[0]),this.addScalePoint(b[1]),this.addScalePoint(b[2]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l,n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),r=o[0].clone(),i=o[1].clone(),a=e.clone();if(0==t){var u=SuperMapAlgoPlot.PlottingUtil.distance(a,r)/n;this.scaleValues[0]=u}else if(1==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var p=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[1]=p;var s=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[3]=s}else if(2==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var c=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[2]=c;var P=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[4]=P}}}}])&&kS(e.prototype,o),l&&kS(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function KS(t){"@babel/helpers - typeof";return(KS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qS(t,e){for(var o=0;o2&&(n=t.length-1);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*n],a=r*this.scaleValues[4*n+1]/1.667,u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,e);if(u.bfind){var p=u.index,s=u.pts,c=3.6*a,P=i-c,f=i+c;if((u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var g,y=u.pts,h=[];if(0==(p=u.index))h.push(e[0]);else for(g=0;g0&&this.computeSubSymbol(this.subSymbols[0],M,A,d),!(h.length<2)){var m=h[0],v=h[1],O=SuperMapAlgoPlot.PlottingUtil.radian(m,v)*SuperMapAlgoPlot.PlottingUtil.RTOD,w=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,a,a,O+90),L=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,a,a,O+270),U=[];if(U.push(w),U.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,{lineTypeLimit:!0,surroundLineLimit:!0}),!(b.length<2)){var V=b[b.length-1],j=b[b.length-2],T=SuperMapAlgoPlot.PlottingUtil.radian(V,j)*SuperMapAlgoPlot.PlottingUtil.RTOD,R=SuperMapAlgoPlot.PlottingUtil.circlePoint(V,a,a,T+90),x=SuperMapAlgoPlot.PlottingUtil.circlePoint(V,a,a,T+270);(U=[]).push(R),U.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,{lineTypeLimit:!0,surroundLineLimit:!0});var E=SuperMapAlgoPlot.PlottingUtil.paraLine(e,a,!1),_=SuperMapAlgoPlot.PlottingUtil.polylineDistance(E)/11,B=_;for(g=0;g<11;g++)if((u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(B-_,E)).bfind){var Y=u.index,C=u.pts;if((u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(B,E)).bfind){var I=u.pts,N=u.index;if(g%2==0){var D=[];D.push(C);for(var k=Y+1;k<=N;k++)D.push(E[k]);D.push(I),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,D,{surroundLineLimit:!0,lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1})}B+=_}}this.addScalePoint(s),this.addScalePoint(w),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0))return;if(2*(o.length-1)==t||2==o.length&&0==t){var i,a=e,u=[];for(i=0;ig&&(s=i,p=f,c=g)}}if(-1==s||s>u.length-1)return;var y=0;for(i=0;ir)return;var d=y/r;if(d>.8||d<.2)return;2==o.length?this.scaleValues[0]=d:this.scaleValues[2*t]=d}else if(2*o.length-1==t||2==o.length&&1==t){var A=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n;2==o.length?this.scaleValues[1]=A:this.scaleValues[2*t-1]=A}else{var M=-1;M=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var m=(e.x-o[M].x)/n,v=(e.y-o[M].y)/n;this.scaleValues[2*t]=m,this.scaleValues[2*t+1]=v}}}}])&&$S(e.prototype,o),l&&$S(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function nb(t){"@babel/helpers - typeof";return(nb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rb(t,e){for(var o=0;o2&&(n=t.length-1);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*n],a=r*this.scaleValues[4*n+1]/1.667,u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,e);if(u.bfind){var p=u.index,s=u.pts,c=3*a,P=i-c,f=i+c;if((u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var g,y=u.pts,h=[];if(0==(p=u.index))h.push(e[0]);else for(g=0;g0&&this.computeSubSymbol(this.subSymbols[0],M,A,d),!(h.length<2)){var m=h[0],v=h[1],O=SuperMapAlgoPlot.PlottingUtil.radian(m,v)*SuperMapAlgoPlot.PlottingUtil.RTOD,w=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,a,a,O+90),L=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,a,a,O+270),U=[];if(U.push(w),U.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,{lineTypeLimit:!0,surroundLineLimit:!0}),!(b.length<2)){var V=b[b.length-1],j=b[b.length-2],T=SuperMapAlgoPlot.PlottingUtil.radian(V,j)*SuperMapAlgoPlot.PlottingUtil.RTOD,R=SuperMapAlgoPlot.PlottingUtil.circlePoint(V,a,a,T+90),x=SuperMapAlgoPlot.PlottingUtil.circlePoint(V,a,a,T+270);(U=[]).push(R),U.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,{lineTypeLimit:!0,surroundLineLimit:!0}),this.addScalePoint(s),this.addScalePoint(w),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0))return;if(2*(o.length-1)==t||2==o.length&&0==t){var i,a=e,u=[];for(i=0;ig&&(s=i,p=f,c=g)}}if(-1==s||s>u.length-1)return;var y=0;for(i=0;ir)return;var d=y/r;if(d>.8||d<.2)return;2==o.length?this.scaleValues[0]=d:this.scaleValues[2*t]=d}else if(2*o.length-1==t||2==o.length&&1==t){var A=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n;2==o.length?this.scaleValues[1]=A:this.scaleValues[2*t-1]=A}else{var M=-1;M=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var m=(e.x-o[M].x)/n,v=(e.y-o[M].y)/n;this.scaleValues[2*t]=m,this.scaleValues[2*t+1]=v}}}}])&&rb(e.prototype,o),l&&rb(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function sb(t){"@babel/helpers - typeof";return(sb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cb(t,e){for(var o=0;o2&&(n=t.length-1);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*n],a=r*this.scaleValues[4*n+1]/1.667,u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,e);if(u.bfind){var p=u.index,s=u.pts,c=3*a,P=i-c,f=i+c;if((u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var g,y=u.pts,h=[];if(0==(p=u.index))h.push(e[0]);else for(g=0;g0&&this.computeSubSymbol(this.subSymbols[0],M,A,d),!(h.length<2)){var m=h[0],v=h[1],O=SuperMapAlgoPlot.PlottingUtil.radian(m,v)*SuperMapAlgoPlot.PlottingUtil.RTOD,w=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,a,a,O+90),L=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,a,a,O+270),U=[];if(U.push(w),U.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,{lineTypeLimit:!0,surroundLineLimit:!0}),!(b.length<2)){var V=b[b.length-1],j=b[b.length-2],T=SuperMapAlgoPlot.PlottingUtil.radian(V,j)*SuperMapAlgoPlot.PlottingUtil.RTOD,R=SuperMapAlgoPlot.PlottingUtil.circlePoint(V,a,a,T+90),x=SuperMapAlgoPlot.PlottingUtil.circlePoint(V,a,a,T+270);(U=[]).push(R),U.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,{lineTypeLimit:!0,surroundLineLimit:!0});var E=SuperMapAlgoPlot.PlottingUtil.paraLine(e,a,!1),_=SuperMapAlgoPlot.PlottingUtil.polylineDistance(E)/11,B=_;for(g=0;g<11;g++)if((u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(B-_,E)).bfind){var Y=u.index,C=u.pts;if((u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(B,E)).bfind){var I=u.pts,N=u.index;if(g%2==0){var D=[];D.push(C);for(var k=Y+1;k<=N;k++)D.push(E[k]);D.push(I),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,D,{surroundLineLimit:!0,lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1})}B+=_}}var z;z=SuperMapAlgoPlot.PlottingUtil.paraLine(e,3.5*a,!1),SuperMapAlgoPlot.PlottingUtil.clearSamePts(z),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,z);var F;F=SuperMapAlgoPlot.PlottingUtil.paraLine(e,3.5*a,!0),SuperMapAlgoPlot.PlottingUtil.clearSamePts(F),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,F),this.addScalePoint(s),this.addScalePoint(w),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0))return;if(2*(o.length-1)==t||2==o.length&&0==t){var i,a=e,u=[];for(i=0;ig&&(s=i,p=f,c=g)}}if(-1==s||s>u.length-1)return;var y=0;for(i=0;ir)return;var d=y/r;if(d>.8||d<.2)return;2==o.length?this.scaleValues[0]=d:this.scaleValues[2*t]=d}else if(2*o.length-1==t||2==o.length&&1==t){var A=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n;2==o.length?this.scaleValues[1]=A:this.scaleValues[2*t-1]=A}else{var M=-1;M=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var m=(e.x-o[M].x)/n,v=(e.y-o[M].y)/n;this.scaleValues[2*t]=m,this.scaleValues[2*t+1]=v}}}}])&&cb(e.prototype,o),l&&cb(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function hb(t){"@babel/helpers - typeof";return(hb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sb(t,e){for(var o=0;o2&&(n=t.length-1);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*n],a=r*this.scaleValues[4*n+1]/1.667,u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,e);if(u.bfind){var p=u.index,s=u.pts,c=3.6*a,P=i-c,f=i+c;if((u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var g,y=u.pts,h=[];if(0==(p=u.index))h.push(e[0]);else for(g=0;g0){var B=this.computeSubSymbol(this.subSymbols[0],_,E,x);if(null!=B)for(var Y=0;Y2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0))return;if(2*(o.length-1)==t||2==o.length&&0==t){var i,a=e,u=[];for(i=0;ig&&(s=i,p=f,c=g)}}if(-1==s||s>u.length-1)return;var y=0;for(i=0;ir)return;var d=y/r;if(d>.8||d<.2)return;2==o.length?this.scaleValues[0]=d:this.scaleValues[2*t]=d}else if(2*o.length-1==t||2==o.length&&1==t){var A=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n;2==o.length?this.scaleValues[1]=A:this.scaleValues[2*t-1]=A}else{var M=-1;M=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var m=(e.x-o[M].x)/n,v=(e.y-o[M].y)/n;this.scaleValues[2*t]=m,this.scaleValues[2*t+1]=v}}}}])&&Sb(e.prototype,o),l&&Sb(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function mb(t){"@babel/helpers - typeof";return(mb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vb(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/o;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=.4*n}var r=o*this.scaleValues[0],i=o*this.scaleValues[2],a=o*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(l.x+i,l.y+a),p=.6*r,s=new SuperMapAlgoPlot.Point(u.x+r,u.y),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,0),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,180),f=[];f.push(c),f.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,{lineTypeLimit:!0,surroundLineLimit:!0});var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,90),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,270);(f=[]).push(g),f.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,{lineTypeLimit:!0,surroundLineLimit:!0});var h=new SuperMapAlgoPlot.Point(u.x-r,u.y),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,.5*r,.5*r,270),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,r,r,240),d=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,r,r,90),A=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,r,r,300);(f=[]).push(S),f.push(b),f.push(d),f.push(A),f.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var M=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,r,r,0);this.addScalePoint(M),this.addScalePoint(u),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=[];if(l=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=n*this.scaleValues[2],a=n*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(r.x+i,r.y+a),p=SuperMapAlgoPlot.PlottingUtil.distance(e,u)/n;this.scaleValues[0]=p}else if(1==t){var s=(e.x-r.x)/n,c=(e.y-r.y)/n;this.scaleValues[2]=s,this.scaleValues[3]=c}}}}])&&vb(e.prototype,o),l&&vb(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Vb(t){"@babel/helpers - typeof";return(Vb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jb(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/o;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=.2*n}var r=o*this.scaleValues[0],i=o*this.scaleValues[2],a=o*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(l.x+i,l.y+a),p=[];p.push(u),p.push(new SuperMapAlgoPlot.Point(u.x+r,u.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,p,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});for(var s=18*r,c=new SuperMapAlgoPlot.Point(u.x+s,u.y),P=[],f=135;f<180;f+=3)P.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,f));P.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,180)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,r,r,0);this.addScalePoint(g),this.addScalePoint(u),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=[];if(l=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=n*this.scaleValues[2],a=n*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(r.x+i,r.y+a),p=SuperMapAlgoPlot.PlottingUtil.distance(e,u)/n;this.scaleValues[0]=p}else if(1==t){var s=(e.x-r.x)/n,c=(e.y-r.y)/n;this.scaleValues[2]=s,this.scaleValues[3]=c}}}}])&&jb(e.prototype,o),l&&jb(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _b(t){"@babel/helpers - typeof";return(_b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bb(t,e){for(var o=0;o2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0))return;if(2*(o.length-1)==t||2==o.length&&0==t){var i,a=e,u=[];for(i=0;ig&&(s=i,p=f,c=g)}}if(-1==s||s>u.length-1)return;var y=0;for(i=0;ir)return;var d=y/r;if(d>.8||d<.2)return;2==o.length?this.scaleValues[0]=d:this.scaleValues[2*t]=d}else if(2*o.length-1==t||2==o.length&&1==t){var A=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n;2==o.length?this.scaleValues[1]=A:this.scaleValues[2*t-1]=A}else{var M=-1;M=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var m=(e.x-o[M].x)/n,v=(e.y-o[M].y)/n;this.scaleValues[2*t]=m,this.scaleValues[2*t+1]=v}}}}])&&Bb(e.prototype,o),l&&Bb(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Db(t){"@babel/helpers - typeof";return(Db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kb(t,e){for(var o=0;othis.minEditPts){for(var I,N,D,k,z,F,G,W,K,q=1;qo.length-1)return;for(var p=0,s=0;sl)return;var P=p/l,f=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1])/l;P<.4*f&&(P=.4*f),P>1-.4*f&&(P=1-.4*f),this.scaleValues[0]=P}}}])&&kb(e.prototype,o),l&&kb(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Kb(t){"@babel/helpers - typeof";return(Kb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qb(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==l)return;var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=e;if(0==t)n=(a.x-i.x)/l,this.scaleValues[0]=n,r=(a.y-i.y)/l,this.scaleValues[1]=r;else if(1==t){n=this.scaleValues[0],r=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(i.x+n*l,i.y+r*l),p=SuperMapAlgoPlot.PlottingUtil.distance(a,u)/l;this.scaleValues[2]=p}}}}])&&qb(e.prototype,o),l&&qb(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qb(t){"@babel/helpers - typeof";return(Qb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $b(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==l)return;var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=e;if(0==t)n=(a.x-i.x)/l,this.scaleValues[0]=n,r=(a.y-i.y)/l,this.scaleValues[1]=r;else if(1==t){n=this.scaleValues[0],r=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(i.x+n*l,i.y+r*l),p=SuperMapAlgoPlot.PlottingUtil.distance(a,u)/l;this.scaleValues[2]=p}}}}])&&$b(e.prototype,o),l&&$b(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function nd(t){"@babel/helpers - typeof";return(nd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rd(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==l)return;var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=e;if(0==t)n=(a.x-i.x)/l,this.scaleValues[0]=n,r=(a.y-i.y)/l,this.scaleValues[1]=r;else if(1==t){n=this.scaleValues[0],r=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(i.x+n*l,i.y+r*l),p=SuperMapAlgoPlot.PlottingUtil.distance(a,u)/l;this.scaleValues[2]=p}}}}])&&rd(e.prototype,o),l&&rd(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function sd(t){"@babel/helpers - typeof";return(sd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cd(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.2||n<=0)&&(n=.2),this.scaleValues[0]=n}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3],u=l*r,p=new SuperMapAlgoPlot.Point(o.x+l*i,o.y+l*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,u,0),this.addScalePoint(p);var s=u,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,s,s,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t)n=(e.x-i.x)/a,this.scaleValues[2]=n,r=(e.y-i.y)/a,this.scaleValues[3]=r;else if(1===t){n=this.scaleValues[2],r=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(i.x+a*n,i.y+a*r),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e)/a;this.scaleValues[0]=p}}}}])&&cd(e.prototype,o),l&&cd(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function hd(t){"@babel/helpers - typeof";return(hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sd(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/o;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=.5*n}var r=o*this.scaleValues[0],i=o*this.scaleValues[2],a=o*this.scaleValues[3],u=[];u.push(new SuperMapAlgoPlot.Point(l.x+i,l.y+a)),u.push(new SuperMapAlgoPlot.Point(l.x+i+r,l.y+a)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,u,{fill:!1,surroundLineLimit:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(new SuperMapAlgoPlot.Point(l.x+i+r,l.y+a)),this.addScalePoint(new SuperMapAlgoPlot.Point(l.x+i,l.y+a)),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=[];if(l=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=n*this.scaleValues[2],a=n*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(r.x+i,r.y+a),p=SuperMapAlgoPlot.PlottingUtil.distance(e,u)/n;this.scaleValues[0]=p}else if(1==t){var s=(e.x-r.x)/n,c=(e.y-r.y)/n;this.scaleValues[2]=s,this.scaleValues[3]=c}}}}])&&Sd(e.prototype,o),l&&Sd(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function md(t){"@babel/helpers - typeof";return(md="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vd(t,e){for(var o=0;oo.x&&(O=!1);var w,L=(v=.1*l)+(m=.12*l/2);M=1==O?(w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(L,o,e)).pntRight:(w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(L,o,e)).pntLeft;var U,V,j,T,R,x,E,_,B=[];B.push(M),B.push(new SuperMapAlgoPlot.Point(M.x+m,M.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,B,{lineTypeLimit:!0,surroundLineLimit:!0}),1==O?(U=(w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.85*v,o,e)).pntRight,T=w.pntLeft,V=(w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(v,U,T)).pntRight,j=w.pntLeft):(U=(w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.85*v,o,e)).pntLeft,T=w.pntRight,V=(w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(v,U,T)).pntLeft,j=w.pntRight),(B=[]).push(U),B.push(V),B.push(j),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,B,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0}),w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*m,V,j),_=1==O?w.pntRight:w.pntLeft,w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*m,j,V),x=1==O?w.pntLeft:w.pntRight;var Y=SuperMapAlgoPlot.PlottingUtil.intersectLines(U,x,j,V);Y.isIntersectLines&&(R=Y.intersectPoint,(Y=SuperMapAlgoPlot.PlottingUtil.intersectLines(U,_,j,V)).isIntersectLines&&(E=Y.intersectPoint,(B=[]).push(R),B.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,B,{lineTypeLimit:!0,surroundLineLimit:!0}),(B=[]).push(E),B.push(_),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,B,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(b[0]),this.addScalePoint(b[1]),this.addScalePoint(b[2]),this.finish()))}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l,n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),r=o[0].clone(),i=o[1].clone(),a=e.clone();if(0==t){var u=SuperMapAlgoPlot.PlottingUtil.distance(a,r)/n;this.scaleValues[0]=u}else if(1==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var p=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[1]=p;var s=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[3]=s}else if(2==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var c=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[2]=c;var P=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[4]=P}}}}])&&vd(e.prototype,o),l&&vd(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Vd(t){"@babel/helpers - typeof";return(Vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jd(t,e){for(var o=0;o=15;e-=5)l.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,e));for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l),l=[],e=165;e>=105;e-=5)l.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,e));for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l),l=[],e=255;e>=195;e-=5)l.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,e));for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l),l=[],e=345;e>=285;e-=5)l.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,e));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l);var n,r,i,a,u,p=.2*o,s=new SuperMapAlgoPlot.Point(t[0].x-p,t[0].y),c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,t[0],s);n=c.pntRight,r=c.pntLeft,i=(c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*p,n,r)).pntLeft;var P=new SuperMapAlgoPlot.Point(n.x+2*p,n.y);a=(c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,n,P)).pntRight,u=c.pntLeft,(l=[]).push(i),l.push(r),l.push(n),l.push(u),l.push(a),l.push(n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0}),this.finish()}}}])&&Bd(e.prototype,o),l&&Bd(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Dd(t){"@babel/helpers - typeof";return(Dd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kd(t,e){for(var o=0;o=0;--m)M.push(b[m]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M);var v=[],O=.06*l,w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O,o,e),L=w.pntRight,U=w.pntLeft;v.push(L),v.push(U),O=.15*l;var V=new SuperMapAlgoPlot.Point(O,0),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,V,h);v.push(j),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,v,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,fillLimit:!0,fill:!0,fillColorLimit:!0,fillColor:"#0000FF",fillOpacity:1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(b[0]),this.addScalePoint(b[1]),this.addScalePoint(b[2]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l,n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),r=o[0].clone(),i=o[1].clone(),a=e.clone();if(0==t){var u=SuperMapAlgoPlot.PlottingUtil.distance(a,r)/n;this.scaleValues[0]=u}else if(1==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var p=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[1]=p;var s=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[3]=s}else if(2==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var c=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[2]=c;var P=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[4]=P}}}}])&&kd(e.prototype,o),l&&kd(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Kd(t){"@babel/helpers - typeof";return(Kd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qd(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[1]=l}var n=this.scaleValues[0],r=this.scaleValues[1],i=this.scaleValues[2],a=o*n,u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(u.bfind){var p=u.pts,s=p,c=r*o,P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a-.5*c,e),f=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a+.5*c,e),g=P.pts,y=f.pts,h=P.index,S=f.index;i+=180*SuperMapAlgoPlot.PlottingUtil.dirAngle(g,y)/Math.PI;var b=new SuperMapAlgoPlot.Point(c,-.5*c),d=new SuperMapAlgoPlot.Point(c,.5*c),A=new SuperMapAlgoPlot.Point(-c,.5*c),M=new SuperMapAlgoPlot.Point(-c,-.5*c),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,b,i),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,d,i),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,A,i),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,M,i),L=[];L.push(m),L.push(v),L.push(O),L.push(w),L.push(m),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,L,{lineTypeLimit:!0,surroundLineLimit:!0});var U=new SuperMapAlgoPlot.Point(.5*c,-.2*c),V=new SuperMapAlgoPlot.Point(.7*c,.2*c),j=new SuperMapAlgoPlot.Point(.3*c,.2*c),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,U,i),R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,j,i),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,V,i),E=[];E.push(T),E.push(R),E.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,E,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});var _=new SuperMapAlgoPlot.Point(c,0),B=new SuperMapAlgoPlot.Point(2*c,0),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,_,i),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,B,i);(E=[]).push(Y),E.push(C),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,E,{lineTypeLimit:!0,surroundLineLimit:!0});var I=new SuperMapAlgoPlot.Point(2*c,.15*c),N=new SuperMapAlgoPlot.Point(2*c,-.15*c),D=new SuperMapAlgoPlot.Point(2.6*c,0),k=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,I,i),z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,N,i),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,D,i);(E=[]).push(k),E.push(z),E.push(F),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,E,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});var G,W=[],K=[];for(G=0;G<=h;G++)W.push(e[G]);for(W.push(g),K.push(y),G=S+1;G1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengthf&&(u=s,p=f)}}if(-1==u)return SuperMapAlgoPlot.PlottingUtil.distance(a,l[0])>SuperMapAlgoPlot.PlottingUtil.distance(a,l[l.length-1])?void(u=l.length-1):void(u=0);if(n=0,0===u)n=SuperMapAlgoPlot.PlottingUtil.distance(l[0],P);else for(var g=0;gi)return;r=n/i,this.scaleValues[0]=r}else if(1==t){n=this.scaleValues[0]*i;var y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,l);if(!y.bfind)return;var h=y.pts;(r=.5*SuperMapAlgoPlot.PlottingUtil.distance(h,e)/i)>.3&&(r=.3),this.scaleValues[1]=r;var S=SuperMapAlgoPlot.PlottingUtil.radian(h,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[2]=S}}}},{key:"GetGoPts",value:function(){var t=[];return this.controlPoints.length=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var n=this.scaleValues[0],r=this.scaleValues[2],i=this.scaleValues[3];o.x=o.x+r*l,o.y=o.y+i*l;var a=l*n,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,a,a,90),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,a,a,210),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,a,a,330),c=[];c.push(u),c.push(p),c.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0,fillLimit:!0,fill:!0}),this.scalePoints=[],this.addScalePoint(u),this.addScalePoint(o),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=[];if(l=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0===t){var i=n*this.scaleValues[2],a=n*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(r.x+i,r.y+a),p=SuperMapAlgoPlot.PlottingUtil.distance(e,u)/n;this.scaleValues[0]=p}else if(1===t){var s=(e.x-r.x)/n,c=(e.y-r.y)/n;this.scaleValues[2]=s,this.scaleValues[3]=c}}}}])&&$d(e.prototype,o),l&&$d(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function nA(t){"@babel/helpers - typeof";return(nA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rA(t,e){for(var o=0;o=p.length)){var P=p[0].clone(),f=p[0].clone();for(s=0;sp[s].x&&(P=p[s].clone()),f.x=P.x&&((g=[]).push(P),g.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0,surroundLineLimit:!0}));var h=new SuperMapAlgoPlot.Point(a.x+i/2,f.y);h.x<=f.x&&h.x>=P.x&&((g=[]).push(f),g.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0,surroundLineLimit:!0})),this.scalePoints=[];var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,i/2,i/2,90);if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(t,a))return this.addScalePoint(a,0),this.addScalePoint(S,1),a.xo.length)return;if(0===SuperMapAlgoPlot.PlottingUtil.getOutRectangleDis(o))return;var l,n,r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=e;if(0==t&&(l=(a.x-i.x)/r,this.scaleValues[0]=l,n=(a.y-i.y)/r,this.scaleValues[1]=n),1==t){l=this.scaleValues[0],n=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(i.x+l*r,i.y+n*r),p=2*SuperMapAlgoPlot.PlottingUtil.distance(a,u)/r;this.scaleValues[2]=p}}}}])&&rA(e.prototype,o),l&&rA(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function sA(t){"@babel/helpers - typeof";return(sA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cA(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),n=new SuperMapAlgoPlot.Point(l.x,0);if(!1===this.polylineConnectLocationPoint){for(var r=0,i=-1,a=0;a0;S--)s.push(y[S]);var b=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(s,f);if(-1===b.index)return;(y=[]).push(b.pt);for(var d=b.index+1;d0&&this.computeSubSymbolC(this.subSymbols[0],n,p,0)}else{var A=t[0],M=t[1],m=SuperMapAlgoPlot.PlottingUtil.distance(A,M),v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.2*m,[A,M]);if(-1===v.index)return;var O=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.4*m,[A,M]);if(-1===O.index)return;var w=[];w.push(t[0]),w.push(v.pts),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w),(w=[]).push(O.pts);for(var L=1;L0&&this.computeSubSymbolC(this.subSymbols[0],U,.1*m,0)}this.finish()}}},{key:"computeSubSymbolC",value:function(t,e,o,l,n,r){if(null==t.symbolData||null==t.symbolData.innerCells)return null;void 0===n&&(n=0),void 0===r&&(r=0);for(var i=SuperMapAlgoPlot.AnalysisSymbol.analysisSymbolCells(t.symbolData,!0),a=0,u=0,p=0,s=0,c=0;cP[f].x&&(p=P[f].x),s>P[f].y&&(s=P[f].y)}var y=new SuperMapAlgoPlot.Point(a,u),h=new SuperMapAlgoPlot.Point(p,s),S=(y.y-h.y)/o,b=(y.x-h.x)/o,d=b>S?b:S,A=new SuperMapAlgoPlot.Point(.5*(y.x+h.x),.5*(y.y+h.y));A.x+=n*(y.x-h.x),A.y+=r*(y.y-h.y);for(var M=0,m=i.length;M=this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(0),this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(-.05));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=n/l*.8,this.scaleValues[3]=n/l*.8}var r=this.scaleValues[0],i=this.scaleValues[1],a=this.scaleValues[3],u=this.scaleValues[4],p=this.scaleValues[6],s=this.scaleValues[7],c=this.scaleValues[8],P=this.scaleValues[9],f=new SuperMapAlgoPlot.Point(o.x+l*p,o.y+l*s),g=new SuperMapAlgoPlot.Point(o.x+l*c,o.y+l*P),y=l*r,h=i;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],f,y,h);var S=l*a,b=u;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],g,S,b),this.addScalePoint(f);var d=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,y,y,h);this.addScalePoint(d),this.addScalePoint(g);var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,S,S,b);this.addScalePoint(A),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengththis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(0),this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(-.05));var l=[];l=3>=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r,i,a,u=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),s=e;if(0==t)n=(s.x-u.x)/p,this.scaleValues[6]=n,r=(s.y-u.y)/p,this.scaleValues[7]=r;else if(1==t){n=this.scaleValues[6],r=this.scaleValues[7];var c=new SuperMapAlgoPlot.Point(u.x+p*n,u.y+p*r),P=SuperMapAlgoPlot.PlottingUtil.distance(c,s)/p;this.scaleValues[0]=P;var f=180*SuperMapAlgoPlot.PlottingUtil.radian(c,s)/Math.PI;this.scaleValues[1]=f,this.scaleValues[2]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}else if(2==t)i=(s.x-u.x)/p,this.scaleValues[8]=i,a=(s.y-u.y)/p,this.scaleValues[9]=a;else if(3==t){i=this.scaleValues[8],a=this.scaleValues[9];var g=new SuperMapAlgoPlot.Point(u.x+p*i,u.y+p*a),y=SuperMapAlgoPlot.PlottingUtil.distance(g,s)/p;this.scaleValues[3]=y;var h=180*SuperMapAlgoPlot.PlottingUtil.radian(g,s)/Math.PI;this.scaleValues[4]=h,this.scaleValues[5]=0<=h&&h<90?1:90<=h&&h<180?2:180<=h&&h<270?3:4}}}}])&&SA(e.prototype,o),l&&SA(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function mA(t){"@babel/helpers - typeof";return(mA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vA(t,e){for(var o=0;ot[n].x&&(o=t[n].x),l0&&(p=!0),s-=u}if(""==!this.subText.toString()){var M=a,m=(l-o)*this.scaleValues[0],v=new SuperMapAlgoPlot.Point(M.x+m,M.y),O=new SuperMapAlgoPlot.Point((M.x+v.x)/2,(M.y+v.y)/2),w=this.subText;this.addText(w,O,m,0)}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),o=0;ot[l+1].y&&(e=t[l],t[l]=t[l+1],t[l+1]=e):t[l].x>t[l+1].x&&(e=t[l],t[l]=t[l+1],t[l+1]=e);return t}}])&&vA(e.prototype,o),l&&vA(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function VA(t){"@babel/helpers - typeof";return(VA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jA(t,e){for(var o=0;ot[n].x&&(o=t[n].x),l0&&(p=!0),s-=u}if(""==!this.subText.toString()){var M=a,m=(l-o)*this.scaleValues[0],v=new SuperMapAlgoPlot.Point(M.x+m,M.y),O=new SuperMapAlgoPlot.Point((M.x+v.x)/2,(M.y+v.y)/2),w=this.subText;this.addText(w,O,m,0)}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),o=0;ot[l+1].y&&(e=t[l],t[l]=t[l+1],t[l+1]=e):t[l].x>t[l+1].x&&(e=t[l],t[l]=t[l+1],t[l+1]=e);return t}}])&&jA(e.prototype,o),l&&jA(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _A(t){"@babel/helpers - typeof";return(_A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function BA(t,e){for(var o=0;ot[n].x&&(o=t[n].x),l0&&(p=!0),s-=u}if(""==!this.subText.toString()){var M=a,m=(l-o)*this.scaleValues[0],v=new SuperMapAlgoPlot.Point(M.x+m,M.y),O=new SuperMapAlgoPlot.Point((M.x+v.x)/2,(M.y+v.y)/2),w=this.subText;this.addText(w,O,m,0)}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),o=0;ot[l+1].y&&(e=t[l],t[l]=t[l+1],t[l+1]=e):t[l].x>t[l+1].x&&(e=t[l],t[l]=t[l+1],t[l+1]=e);return t}}])&&BA(e.prototype,o),l&&BA(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function DA(t){"@babel/helpers - typeof";return(DA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kA(t,e){for(var o=0;ot[n].x&&(o=t[n].x),l0&&(p=!0),s-=u}if(""==!this.subText.toString()){var M=a,m=(l-o)*this.scaleValues[0],v=new SuperMapAlgoPlot.Point(M.x+m,M.y),O=new SuperMapAlgoPlot.Point((M.x+v.x)/2,(M.y+v.y)/2),w=this.subText;this.addText(w,O,m,0)}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),o=0;ot[l+1].y&&(e=t[l],t[l]=t[l+1],t[l+1]=e):t[l].x>t[l+1].x&&(e=t[l],t[l]=t[l+1],t[l+1]=e);return t}}])&&kA(e.prototype,o),l&&kA(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function KA(t){"@babel/helpers - typeof";return(KA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qA(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],S,1.5*b,r+90);var I,N=[],D=[];for(I=0;I<=f;I++)N.push(e[I]);for(N.push(c),D.push(P),I=g+1;I=270+W;q-=5)K.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(G,F,F,q));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,K),d=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(k,e[e.length-2],e[e.length-1]);for(var H=new SuperMapAlgoPlot.Point((e[e.length-1].x+d.pntRight.x)/2,(e[e.length-1].y+d.pntRight.y)/2),J=SuperMapAlgoPlot.PlottingUtil.radian(e[e.length-1],d.pntRight)*SuperMapAlgoPlot.PlottingUtil.RTOD,Z=[],X=180+J;X>=90+J;X-=5)Z.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(H,F,F,X));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,Z),this.scalePoints=[],this.addScalePoint(S,0);var Q=new SuperMapAlgoPlot.Point(0,-2*u),$=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,Q,this.scaleValues[2]);this.addScalePoint($,1),this.finish()}}}},{key:"GetSymbolPt",value:function(){var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length(f*=.5)){p=SuperMapAlgoPlot.PlottingUtil.linePnt(i.pts,e[i.index],f),a.push(p),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a),s=SuperMapAlgoPlot.PlottingUtil.linePnt(i.pts,e[i.index+1],f),g.push(s);for(var y=e.length,h=i.index+1;h=0;b--)if(c=new SuperMapAlgoPlot.Point(a[b].x,a[b].y),P=new SuperMapAlgoPlot.Point(i.pts.x,i.pts.y),SuperMapAlgoPlot.PlottingUtil.distance(c,P)>f){S=b;break}if(-1===S)return;a.splice(S+1,a.length-1-S),p=SuperMapAlgoPlot.PlottingUtil.linePnt(i.pts,e[S],f),a.push(p);for(var d=-1,A=i.index;Af){d=A;break}if(-1===d)return;s=SuperMapAlgoPlot.PlottingUtil.linePnt(i.pts,e[d],f),g.push(s);for(var M=d+1;Mh&&(s=f,P=y,c=h)}}if(-1===s||s>u.length-1)return;r=0;for(var S=0;S=M&&(i=M),i<=m&&(i=m),this.scaleValues[0]=i}else if(1===t){n=new SuperMapAlgoPlot.Point(e.x,e.y);var v=this.GetSymbolPt();i=(r=SuperMapAlgoPlot.PlottingUtil.distance(n,v))/a;var O=this.scaleValues[0]<.4?this.scaleValues[0]:1-this.scaleValues[0];i>=O&&(i=O),this.scaleValues[1]=i;var w=SuperMapAlgoPlot.PlottingUtil.radian(v,n)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[2]=w-270}}}}])&&qA(e.prototype,o),l&&qA(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function QA(t){"@babel/helpers - typeof";return(QA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $A(t,e){for(var o=0;o2&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P)}f.push(r.endPt);for(var h=r.endIndex+1;ho.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.6*n,l);if(!r.bfind)return;var i=2*SuperMapAlgoPlot.PlottingUtil.distance(e,r.pts);this.scaleValues[0]=i/n}}}])&&vM(e.prototype,o),l&&vM(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function VM(t){"@babel/helpers - typeof";return(VM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jM(t,e){for(var o=0;oa&&(a+=360),!this.isEdit){var u=.5*this.getDefaultSubSymbolSize()/r;u>.1&&(u=.1),this.scaleValues[0]=u}var p=r*this.scaleValues[0],s=180*Math.atan(.5*p/r)/Math.PI,c=(a-i)/3,P=(a-i)/50,f=this.getArcPts(t[0],r,i,i+c-1.8*s,P);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var g=this.getArcPts(t[0],r,i+c+1.8*s,i+2*c-1.8*s,P);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var y=this.getArcPts(t[0],r,i+2*c+1.8*s,a,P);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y);var h=i+c+90,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,e,i+c);this.createSubSymbol(S,p,h);var b=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,e,i+2*c),d=i+2*c+90;this.createSubSymbol(b,p,d);var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e+p,e+p,i+c);this.addScalePoint(A),3===this.controlPoints.length&&(this.controlPoints[2]=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,e,a)),this.finish()}}},{key:"getArcPts",value:function(t,e,o,l,n){void 0!==n&&null!==n||(n=1);for(var r=[],i=l;i>o;i-=n){var a=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,i);r.push(a)}var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,o);return r.push(u),r}},{key:"createSubSymbol",value:function(t,e,o){for(var l=this.getSubSymbolPts(e),n=0;np&&(p+=360);var s=(p-u)/3,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],l,l,u+s),P=SuperMapAlgoPlot.PlottingUtil.distance(c,e)/a;P<=.6&&(this.scaleValues[0]=P)}}}])&&$M(e.prototype,o),l&&$M(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function nm(t){"@babel/helpers - typeof";return(nm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rm(t,e){for(var o=0;othis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o,l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var r=(o=1.5*this.getDefaultSubSymbolSize())/n;r>.2&&(r=.2),this.scaleValues[0]=r}var i=this.scaleValues[0],a=this.scaleValues[2],u=this.scaleValues[3];o=n*i;var p=new SuperMapAlgoPlot.Point(l.x+n*a,l.y+n*u);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,o,0);for(var s=0;sthis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=n/l,this.scaleValues[3]=n/l}var r=this.scaleValues[0],i=this.scaleValues[1],a=this.scaleValues[3],u=this.scaleValues[4],p=this.scaleValues[6],s=this.scaleValues[7],c=this.scaleValues[8],P=this.scaleValues[9],f=new SuperMapAlgoPlot.Point(o.x+l*p,o.y+l*s),g=new SuperMapAlgoPlot.Point(o.x+l*c,o.y+l*P),y=[],h=.15*SuperMapAlgoPlot.PlottingUtil.distance(f,g),S=SuperMapAlgoPlot.PlottingUtil.linePnt(f,g,h),b=SuperMapAlgoPlot.PlottingUtil.linePnt(g,f,h);y.push(S),y.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{surroundLineLimit:!0,lineTypeLimit:!0});var d=l*r,A=i;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],f,d,A-90);var M=l*a,m=u;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],g,M,m-90),this.addScalePoint(f);var v=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.5*d,.5*d,A);this.addScalePoint(v),this.addScalePoint(g);var O=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.5*M,.5*M,m);this.addScalePoint(O),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengththis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var l=[];l=3>=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r,i,a,u=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),s=e;if(0==t)n=(s.x-u.x)/p,this.scaleValues[6]=n,r=(s.y-u.y)/p,this.scaleValues[7]=r;else if(1==t){n=this.scaleValues[6],r=this.scaleValues[7];var c=new SuperMapAlgoPlot.Point(u.x+p*n,u.y+p*r),P=2*SuperMapAlgoPlot.PlottingUtil.distance(c,s)/p;this.scaleValues[0]=P;var f=180*SuperMapAlgoPlot.PlottingUtil.radian(c,s)/Math.PI;this.scaleValues[1]=f,this.scaleValues[2]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}else if(2==t)i=(s.x-u.x)/p,this.scaleValues[8]=i,a=(s.y-u.y)/p,this.scaleValues[9]=a;else if(3==t){i=this.scaleValues[8],a=this.scaleValues[9];var g=new SuperMapAlgoPlot.Point(u.x+p*i,u.y+p*a),y=2*SuperMapAlgoPlot.PlottingUtil.distance(g,s)/p;this.scaleValues[3]=y;var h=180*SuperMapAlgoPlot.PlottingUtil.radian(g,s)/Math.PI;this.scaleValues[4]=h,this.scaleValues[5]=0<=h&&h<90?1:90<=h&&h<180?2:180<=h&&h<270?3:4}}}}])&&rv(e.prototype,o),l&&rv(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function sv(t){"@babel/helpers - typeof";return(sv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cv(t,e){for(var o=0;othis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=n/l,this.scaleValues[3]=n/l}var r=this.scaleValues[0],i=this.scaleValues[1],a=this.scaleValues[3],u=this.scaleValues[4],p=this.scaleValues[6],s=this.scaleValues[7],c=this.scaleValues[8],P=this.scaleValues[9],f=new SuperMapAlgoPlot.Point(o.x+l*p,o.y+l*s),g=new SuperMapAlgoPlot.Point(o.x+l*c,o.y+l*P),y=[],h=.15*SuperMapAlgoPlot.PlottingUtil.distance(f,g),S=SuperMapAlgoPlot.PlottingUtil.linePnt(f,g,h),b=SuperMapAlgoPlot.PlottingUtil.linePnt(g,f,h);y.push(S),y.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{surroundLineLimit:!0,lineTypeLimit:!0});var d=l*r,A=i;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],f,d,A+90);var M=l*a,m=u;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],g,M,m+90),this.addScalePoint(f);var v=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.5*d,.5*d,A);this.addScalePoint(v),this.addScalePoint(g);var O=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.5*M,.5*M,m);this.addScalePoint(O),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengththis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var l=[];l=3>=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r,i,a,u=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),s=e;if(0==t)n=(s.x-u.x)/p,this.scaleValues[6]=n,r=(s.y-u.y)/p,this.scaleValues[7]=r;else if(1==t){n=this.scaleValues[6],r=this.scaleValues[7];var c=new SuperMapAlgoPlot.Point(u.x+p*n,u.y+p*r),P=2*SuperMapAlgoPlot.PlottingUtil.distance(c,s)/p;this.scaleValues[0]=P;var f=180*SuperMapAlgoPlot.PlottingUtil.radian(c,s)/Math.PI;this.scaleValues[1]=f,this.scaleValues[2]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}else if(2==t)i=(s.x-u.x)/p,this.scaleValues[8]=i,a=(s.y-u.y)/p,this.scaleValues[9]=a;else if(3==t){i=this.scaleValues[8],a=this.scaleValues[9];var g=new SuperMapAlgoPlot.Point(u.x+p*i,u.y+p*a),y=2*SuperMapAlgoPlot.PlottingUtil.distance(g,s)/p;this.scaleValues[3]=y;var h=180*SuperMapAlgoPlot.PlottingUtil.radian(g,s)/Math.PI;this.scaleValues[4]=h,this.scaleValues[5]=0<=h&&h<90?1:90<=h&&h<180?2:180<=h&&h<270?3:4}}}}])&&cv(e.prototype,o),l&&cv(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function hv(t){"@babel/helpers - typeof";return(hv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sv(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[2]=1.5*l,this.scaleValues[4]=.5*l,this.scaleValues[5]=.5*l}var n=o*this.scaleValues[4],r=this.scaleValues[0]-this.scaleValues[3];r<0&&(r=0);var i=this.scaleValues[0]+this.scaleValues[3];i>1&&(i=1);var a=this.getLinePts(e,this.scaleValues[4],r),u=this.getLinePts(e,this.scaleValues[4],i),p=new SuperMapAlgoPlot.Point((a.startPt.x+a.endPt.x)/2,(a.startPt.y+a.endPt.y)/2),s=SuperMapAlgoPlot.PlottingUtil.radian(a.startPt,a.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.createSubSymbol1(p,n,s);var c=new SuperMapAlgoPlot.Point((u.startPt.x+u.endPt.x)/2,(u.startPt.y+u.endPt.y)/2),P=SuperMapAlgoPlot.PlottingUtil.radian(u.startPt,u.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.createSubSymbol2(c,n,P);for(var f=[],g=[],y=[],h=0;h<=a.startIndex;h++)f.push(e[h]);if(f.push(a.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),a.endIndex<=u.startIndex){g.push(a.endPt);for(var S=a.endIndex+1;S<=u.startIndex;S++)g.push(e[S]);g.push(u.startPt),2===e.length&&SuperMapAlgoPlot.PlottingUtil.distance(e[0],a.endPt)<=SuperMapAlgoPlot.PlottingUtil.distance(e[0],u.startPt)&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g),e.length>2&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g)}y.push(u.endPt);for(var b=u.endIndex+1;bs&&(n=y,i=u,r=s));if(-1==n||n>l.length-1)return;c=0;for(var h=0;hg)return;var S=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(this.scalePoints[0],l),b=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(this.scalePoints[3],l),d=0;S.index===b.index&&(d=SuperMapAlgoPlot.PlottingUtil.distance(this.scalePoints[0],this.scalePoints[3]));for(var A=b.index;Ag-d-.5&&(c=g-d-.5),this.scaleValues[0]=c/g}else if(1===t){var M=g*this.scaleValues[0],m=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,M);if(-1===m.index)return;var v=l[m.index],O=l[m.index+1],w=SuperMapAlgoPlot.PlottingUtil.radian(v,O),L=SuperMapAlgoPlot.PlottingUtil.radian(m.pt,e);this.scaleValues[1]=L-w-Math.PI;var U=SuperMapAlgoPlot.PlottingUtil.distance(m.pt,e);this.scaleValues[2]=U/g}else if(2===t){n=-1,r=0,i=new SuperMapAlgoPlot.Point(0,0);for(var V=0;Vs&&(n=V,i=u,r=s));if(-1!==n&&n<=l.length-1){c=0;for(var j=0;j0&&c1-R&&(x=1-R),this.scaleValues[3]=Math.abs(x-this.scaleValues[0])}}}else if(3===t)if(this.scaleValues[0]>.5){var E=this.scaleValues[0]+this.scaleValues[3],_=g*(P=this.scaleValues[0]-this.scaleValues[3]),B=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,_);-1!==B.index&&((f=SuperMapAlgoPlot.PlottingUtil.distance(B.pt,e)/g)>1-E&&(f=1-E),this.scaleValues[4]=f)}else{var Y=g*(P=this.scaleValues[0]-this.scaleValues[3]);-1!==(p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,Y)).index&&((f=SuperMapAlgoPlot.PlottingUtil.distance(p.pt,e)/g)>P&&(f=P),this.scaleValues[4]=f)}}}}])&&Sv(e.prototype,o),l&&Sv(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function mv(t){"@babel/helpers - typeof";return(mv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vv(t,e){for(var o=0;othis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var n=this.scaleValues[0],r=this.scaleValues[2],i=this.scaleValues[3],a=l*n,u=new SuperMapAlgoPlot.Point(o.x+l*r,o.y+l*i);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],u,a,0);var p=new SuperMapAlgoPlot.Point(u.x+a,u.y+a/2),s=new SuperMapAlgoPlot.Point(u.x+a,u.y-a/2),c=.3*a,P=SuperMapAlgoPlot.PlottingUtil.radian(p,s)*SuperMapAlgoPlot.PlottingUtil.RTOD,f=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,c,c,P+157.5),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,c,c,P+202.5),y=new SuperMapAlgoPlot.Point((f.x+g.x)/2,(f.y+g.y)/2),h=[];h.push(p),h.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{surroundLineLimit:!0,lineTypeLimit:!0});this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[f,y,g,s],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addScalePoint(u);var S=a,b=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,S,S,90);this.addScalePoint(b),this.finish(),this.finish()}}}])&&kv(e.prototype,o),l&&kv(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Kv(t){"@babel/helpers - typeof";return(Kv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qv(t,e){for(var o=0;othis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var n=this.scaleValues[0],r=this.scaleValues[2],i=this.scaleValues[3],a=l*n,u=new SuperMapAlgoPlot.Point(o.x+l*r,o.y+l*i);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],u,a,0);var p=new SuperMapAlgoPlot.Point(u.x+a,u.y+a/2),s=new SuperMapAlgoPlot.Point(u.x+a,u.y-a/2),c=.3*a,P=SuperMapAlgoPlot.PlottingUtil.radian(s,p)*SuperMapAlgoPlot.PlottingUtil.RTOD,f=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,c,c,P+157.5),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,c,c,P+202.5),y=new SuperMapAlgoPlot.Point((f.x+g.x)/2,(f.y+g.y)/2),h=[];h.push(s),h.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{surroundLineLimit:!0,lineTypeLimit:!0});this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[f,y,g,p],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addScalePoint(u);var S=a,b=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,S,S,90);this.addScalePoint(b),this.finish(),this.finish()}}}])&&qv(e.prototype,o),l&&qv(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qv(t){"@babel/helpers - typeof";return(Qv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $v(t,e){for(var o=0;ou&&(u+=360);var p=(u-a)/50,s=this.getArcPts(t[0],r,a,u,p),c=this.getArcPts(t[0],i,a,u,p);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0}),3===this.controlPoints.length&&(this.controlPoints[2]=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,e,u)),this.addScalePoint(new SuperMapAlgoPlot.Point(c[c.length-1].x,c[c.length-1].y),0),this.finish()}}},{key:"getArcPts",value:function(t,e,o,l,n){void 0!==n&&null!==n||(n=1);for(var r=[],i=o;i=1.01&&(this.scaleValues[0]=n)}}}])&&$v(e.prototype,o),l&&$v(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function nO(t){"@babel/helpers - typeof";return(nO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rO(t,e){for(var o=0;o.05&&(e=.05),this.scaleValues[0]=e}for(var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=Math.abs(o*this.scaleValues[0]),n=this.getDashLinePts(t,l),r={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},i=1,a=0;a0?s.pntLeft:s.pntRight,this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,u[0],u[1]],r)}else i--;n[a].length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),i++}var P=180*SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])/Math.PI;this.scaleValues[0]>0?P+=90:P-=90;var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],2*l,2*l,P);this.addScalePoint(f),this.finish()}}},{key:"getDashLinePts",value:function(t,e){var o=[],l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(e>l)return o;for(var n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=2*parseInt(l/(1.5*e)),i=0;i0&&o.push(n),o}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=.05&&(n=.05),SuperMapAlgoPlot.PlottingUtil.isRight(e,o[0],o[1])&&(n=-n),this.scaleValues[0]=n}}}])&&rO(e.prototype,o),l&&rO(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function sO(t){"@babel/helpers - typeof";return(sO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cO(t,e){for(var o=0;ol)return o;for(var n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=2*parseInt(l/(1.5*e)),i=0;i0&&o.push(n),o}}])&&vO(e.prototype,o),l&&vO(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function VO(t){"@babel/helpers - typeof";return(VO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jO(t,e){for(var o=0;ol)return o;for(var n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=2*parseInt(l/(1.5*e)),i=0;i0&&o.push(n),o}}])&&jO(e.prototype,o),l&&jO(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _O(t){"@babel/helpers - typeof";return(_O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function BO(t,e){for(var o=0;o(r*=this.scaleValues[6])?(c=SuperMapAlgoPlot.PlottingUtil.paraLine(p,r/2,!0),P=SuperMapAlgoPlot.PlottingUtil.paraLine(p,r/2,!1)):(c=SuperMapAlgoPlot.PlottingUtil.paraLine(p,f/2,!0),P=SuperMapAlgoPlot.PlottingUtil.paraLine(p,f/2,!1));var g=[];g.push(c[0]),g.push(c[c.length-1]),g.push(P[P.length-1]),g.push(P[0]);var y={surroundLineFlag:!1,fillLimit:!0,strokeColor:"#37CECE",fillColorLimit:!0,fillColor:"#37CECE",fill:!0,fillOpacity:.7,lineColorLimit:!0,color:"#37CECE",surroundLineLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,y);var h=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(g);y={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0};var S=SuperMapAlgoPlot.PlottingUtil.paraLine(l,o,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,y);for(var b=n*this.scaleValues[1],d=this.getDashLinePts(l,b),A=0;Al)return o;for(var n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=2*parseInt(l/(1.5*e)),i=0;i0&&o.push(n),o}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length1&&(f=1),this.scaleValues[5]=f)}else this.scaleValues[5]=P/n;else if(1===t){i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n*this.scaleValues[5],l),r=SuperMapAlgoPlot.PlottingUtil.distance(i.pts,e);var g=this.scaleValues[7]*n;this.scaleValues[6]=r/g}}}}])&&BO(e.prototype,o),l&&BO(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();SuperMapAlgoPlot.AlgoSymbol1770501=NO;SuperMapAlgoPlot.JBAlgoSymbolFactory=SuperMapAlgoPlot.JBAlgoSymbolFactory||{};SuperMapAlgoPlot.JBAlgoSymbolFactory.getAlgoSymbol=function(t,e,o){if(100!==t)return new SuperMapAlgoPlot.AlgoSymbol(o);switch(e){case 12500:return new SuperMapAlgoPlot.AlgoSymbol12500(o);case 12501:return new SuperMapAlgoPlot.AlgoSymbol12501(o);case 12502:return new SuperMapAlgoPlot.AlgoSymbol12502(o);case 13700:return new SuperMapAlgoPlot.AlgoSymbol13700(o);case 15200:return new SuperMapAlgoPlot.AlgoSymbol15200(o);case 15201:case 23800:return new SuperMapAlgoPlot.AlgoSymbol15201(o);case 15202:return new SuperMapAlgoPlot.AlgoSymbol15202(o);case 15800:return new SuperMapAlgoPlot.AlgoSymbol15800(o);case 15801:return new SuperMapAlgoPlot.AlgoSymbol15801(o);case 15802:return new SuperMapAlgoPlot.AlgoSymbol15802(o);case 15803:return new SuperMapAlgoPlot.AlgoSymbol15803(o);case 15804:return new SuperMapAlgoPlot.AlgoSymbol15804(o);case 15805:return new SuperMapAlgoPlot.AlgoSymbol15805(o);case 15806:return new SuperMapAlgoPlot.AlgoSymbol15806(o);case 15900:return new SuperMapAlgoPlot.AlgoSymbol15900(o);case 16e3:return new SuperMapAlgoPlot.AlgoSymbol16000(o);case 16001:return new SuperMapAlgoPlot.AlgoSymbol16001(o);case 16100:return new SuperMapAlgoPlot.AlgoSymbol16100(o);case 16200:return new SuperMapAlgoPlot.AlgoSymbol16200(o);case 16201:return new SuperMapAlgoPlot.AlgoSymbol16201(o);case 16202:return new SuperMapAlgoPlot.AlgoSymbol16202(o);case 16203:return new SuperMapAlgoPlot.AlgoSymbol16203(o);case 16500:return new SuperMapAlgoPlot.AlgoSymbol16500(o);case 16700:return new SuperMapAlgoPlot.AlgoSymbol16700(o);case 16900:return new SuperMapAlgoPlot.AlgoSymbol16900(o);case 17400:return new SuperMapAlgoPlot.AlgoSymbol17400(o);case 17401:return new SuperMapAlgoPlot.AlgoSymbol17401(o);case 17500:return new SuperMapAlgoPlot.AlgoSymbol17500(o);case 17501:return new SuperMapAlgoPlot.AlgoSymbol17501(o);case 17600:return new SuperMapAlgoPlot.AlgoSymbol17600(o);case 17700:return new SuperMapAlgoPlot.AlgoSymbol17700(o);case 1770101:return new SuperMapAlgoPlot.AlgoSymbol1770101(o);case 1770201:return new SuperMapAlgoPlot.AlgoSymbol1770201(o);case 1770501:return new SuperMapAlgoPlot.AlgoSymbol1770501(o);case 17703:return new SuperMapAlgoPlot.AlgoSymbol17703(o);case 17704:return new SuperMapAlgoPlot.AlgoSymbol17704(o);case 17800:return new SuperMapAlgoPlot.AlgoSymbol17800(o);case 17801:return new SuperMapAlgoPlot.AlgoSymbol17801(o);case 17802:return new SuperMapAlgoPlot.AlgoSymbol17802(o);case 17803:return new SuperMapAlgoPlot.AlgoSymbol17803(o);case 17804:return new SuperMapAlgoPlot.AlgoSymbol17804(o);case 17805:return new SuperMapAlgoPlot.AlgoSymbol17805(o);case 17806:return new SuperMapAlgoPlot.AlgoSymbol17806(o);case 20300:return new SuperMapAlgoPlot.AlgoSymbol20300(o);case 20301:return new SuperMapAlgoPlot.AlgoSymbol20301(o);case 21401:return new SuperMapAlgoPlot.AlgoSymbol21401(o);case 21500:return new SuperMapAlgoPlot.AlgoSymbol21500(o);case 21501:return new SuperMapAlgoPlot.AlgoSymbol21501(o);case 21502:return new SuperMapAlgoPlot.AlgoSymbol21502(o);case 21503:return new SuperMapAlgoPlot.AlgoSymbol21503(o);case 21504:return new SuperMapAlgoPlot.AlgoSymbol21504(o);case 21600:return new SuperMapAlgoPlot.AlgoSymbol21600(o);case 21800:return new SuperMapAlgoPlot.AlgoSymbol21800(o);case 21900:return new SuperMapAlgoPlot.AlgoSymbol21900(o);case 22e3:return new SuperMapAlgoPlot.AlgoSymbol22000(o);case 22103:return new SuperMapAlgoPlot.AlgoSymbol22103(o);case 22200:return new SuperMapAlgoPlot.AlgoSymbol22200(o);case 23400:return new SuperMapAlgoPlot.AlgoSymbol23400(o);case 23500:return new SuperMapAlgoPlot.AlgoSymbol23500(o);case 2350001:return new SuperMapAlgoPlot.AlgoSymbol2350001(o);case 23600:return new SuperMapAlgoPlot.AlgoSymbol23600(o);case 23700:return new SuperMapAlgoPlot.AlgoSymbol23700(o);case 23901:return new SuperMapAlgoPlot.AlgoSymbol23901(o);case 23902:return new SuperMapAlgoPlot.AlgoSymbol23902(o);case 24700:return new SuperMapAlgoPlot.AlgoSymbol24700(o);case 25e3:return new SuperMapAlgoPlot.AlgoSymbol25000(o);case 25100:return new SuperMapAlgoPlot.AlgoSymbol25100(o);case 25101:return new SuperMapAlgoPlot.AlgoSymbol25101(o);case 25200:return new SuperMapAlgoPlot.AlgoSymbol25200(o);case 21400:case 25201:return new SuperMapAlgoPlot.AlgoSymbol25201(o);case 25202:return new SuperMapAlgoPlot.AlgoSymbol25202(o);case 25300:return new SuperMapAlgoPlot.AlgoSymbol25300(o);case 25301:return new SuperMapAlgoPlot.AlgoSymbol25301(o);case 25400:return new SuperMapAlgoPlot.AlgoSymbol25400(o);case 25500:return new SuperMapAlgoPlot.AlgoSymbol25500(o);case 25501:return new SuperMapAlgoPlot.AlgoSymbol25501(o);case 25502:return new SuperMapAlgoPlot.AlgoSymbol25502(o);case 25503:return new SuperMapAlgoPlot.AlgoSymbol25503(o);case 25600:return new SuperMapAlgoPlot.AlgoSymbol25600(o);case 25601:return new SuperMapAlgoPlot.AlgoSymbol25601(o);case 25700:return new SuperMapAlgoPlot.AlgoSymbol25700(o);case 25701:return new SuperMapAlgoPlot.AlgoSymbol25701(o);case 2570201:return new SuperMapAlgoPlot.AlgoSymbol2570201(o);case 2570301:return new SuperMapAlgoPlot.AlgoSymbol2570301(o);case 2570401:return new SuperMapAlgoPlot.AlgoSymbol2570401(o);case 2570501:return new SuperMapAlgoPlot.AlgoSymbol2570501(o);case 25800:return new SuperMapAlgoPlot.AlgoSymbol25800(o);case 25801:return new SuperMapAlgoPlot.AlgoSymbol25801(o);case 25900:return new SuperMapAlgoPlot.AlgoSymbol25900(o);case 25901:return new SuperMapAlgoPlot.AlgoSymbol25901(o);case 26400:return new SuperMapAlgoPlot.AlgoSymbol26400(o);case 26500:return new SuperMapAlgoPlot.AlgoSymbol26500(o);case 26501:return new SuperMapAlgoPlot.AlgoSymbol26501(o);case 26502:return new SuperMapAlgoPlot.AlgoSymbol26502(o);case 26503:return new SuperMapAlgoPlot.AlgoSymbol26503(o);case 26600:return new SuperMapAlgoPlot.AlgoSymbol26600(o);case 26601:return new SuperMapAlgoPlot.AlgoSymbol26601(o);case 26700:return new SuperMapAlgoPlot.AlgoSymbol26700(o);case 26800:return new SuperMapAlgoPlot.AlgoSymbol26800(o);case 27100:return new SuperMapAlgoPlot.AlgoSymbol27100(o);case 27300:return new SuperMapAlgoPlot.AlgoSymbol27300(o);case 2730101:return new SuperMapAlgoPlot.AlgoSymbol2730101(o);case 27700:return new SuperMapAlgoPlot.AlgoSymbol27700(o);case 27701:return new SuperMapAlgoPlot.AlgoSymbol27701(o);case 27900:return new SuperMapAlgoPlot.AlgoSymbol27900(o);case 27901:return new SuperMapAlgoPlot.AlgoSymbol27901(o);case 27902:return new SuperMapAlgoPlot.AlgoSymbol27902(o);case 28e3:return new SuperMapAlgoPlot.AlgoSymbol28000(o);case 28100:return new SuperMapAlgoPlot.AlgoSymbol28100(o);case 28200:return new SuperMapAlgoPlot.AlgoSymbol28200(o);case 28201:return new SuperMapAlgoPlot.AlgoSymbol28201(o);case 28300:return new SuperMapAlgoPlot.AlgoSymbol28300(o);case 28301:return new SuperMapAlgoPlot.AlgoSymbol28301(o);case 28400:return new SuperMapAlgoPlot.AlgoSymbol28400(o);case 28900:return new SuperMapAlgoPlot.AlgoSymbol28900(o);case 29e3:return new SuperMapAlgoPlot.AlgoSymbol29000(o);case 29001:return new SuperMapAlgoPlot.AlgoSymbol29001(o);case 29002:return new SuperMapAlgoPlot.AlgoSymbol29002(o);case 29003:return new SuperMapAlgoPlot.AlgoSymbol29003(o);case 29100:return new SuperMapAlgoPlot.AlgoSymbol29100(o);case 29101:return new SuperMapAlgoPlot.AlgoSymbol29101(o);case 29103:return new SuperMapAlgoPlot.AlgoSymbol29103(o);case 29401:return new SuperMapAlgoPlot.AlgoSymbol29401(o);case 29800:return new SuperMapAlgoPlot.AlgoSymbol29800(o);case 29903:return new SuperMapAlgoPlot.AlgoSymbol29903(o);case 3e4:return new SuperMapAlgoPlot.AlgoSymbol30000(o);case 30001:return new SuperMapAlgoPlot.AlgoSymbol30001(o);case 30002:return new SuperMapAlgoPlot.AlgoSymbol30002(o);case 30100:case 4020400:return new SuperMapAlgoPlot.AlgoSymbol30100(o);case 30200:return new SuperMapAlgoPlot.AlgoSymbol30200(o);case 30201:return new SuperMapAlgoPlot.AlgoSymbol30201(o);case 30800:return new SuperMapAlgoPlot.AlgoSymbol30800(o);case 30102:return new SuperMapAlgoPlot.AlgoSymbol30102(o);case 31300:return new SuperMapAlgoPlot.AlgoSymbol31300(o);case 31301:return new SuperMapAlgoPlot.AlgoSymbol31301(o);case 31302:return new SuperMapAlgoPlot.AlgoSymbol31302(o);case 31303:return new SuperMapAlgoPlot.AlgoSymbol31303(o);case 31304:return new SuperMapAlgoPlot.AlgoSymbol31304(o);case 31400:return new SuperMapAlgoPlot.AlgoSymbol31400(o);case 31401:return new SuperMapAlgoPlot.AlgoSymbol31401(o);case 31600:return new SuperMapAlgoPlot.AlgoSymbol31600(o);case 31601:return new SuperMapAlgoPlot.AlgoSymbol31601(o);case 31803:return new SuperMapAlgoPlot.AlgoSymbol31803(o);case 32300:return new SuperMapAlgoPlot.AlgoSymbol32300(o);case 32900:return new SuperMapAlgoPlot.AlgoSymbol32900(o);case 33400:return new SuperMapAlgoPlot.AlgoSymbol33400(o);case 34300:return new SuperMapAlgoPlot.AlgoSymbol34300(o);case 34400:return new SuperMapAlgoPlot.AlgoSymbol34400(o);case 34500:return new SuperMapAlgoPlot.AlgoSymbol34500(o);case 34501:return new SuperMapAlgoPlot.AlgoSymbol34501(o);case 34700:return new SuperMapAlgoPlot.AlgoSymbol34700(o);case 34800:return new SuperMapAlgoPlot.AlgoSymbol34800(o);case 34801:return new SuperMapAlgoPlot.AlgoSymbol34801(o);case 34900:return new SuperMapAlgoPlot.AlgoSymbol34900(o);case 34901:return new SuperMapAlgoPlot.AlgoSymbol34901(o);case 34902:return new SuperMapAlgoPlot.AlgoSymbol34902(o);case 35e3:return new SuperMapAlgoPlot.AlgoSymbol35000(o);case 35200:return new SuperMapAlgoPlot.AlgoSymbol35200(o);case 35304:return new SuperMapAlgoPlot.AlgoSymbol35304(o);case 35500:return new SuperMapAlgoPlot.AlgoSymbol35500(o);case 36400:return new SuperMapAlgoPlot.AlgoSymbol36400(o);case 36401:return new SuperMapAlgoPlot.AlgoSymbol36401(o);case 36600:return new SuperMapAlgoPlot.AlgoSymbol36600(o);case 36700:return new SuperMapAlgoPlot.AlgoSymbol36700(o);case 36800:return new SuperMapAlgoPlot.AlgoSymbol36800(o);case 37100:return new SuperMapAlgoPlot.AlgoSymbol37100(o);case 37200:return new SuperMapAlgoPlot.AlgoSymbol37200(o);case 37300:return new SuperMapAlgoPlot.AlgoSymbol37300(o);case 37301:return new SuperMapAlgoPlot.AlgoSymbol37301(o);case 37600:return new SuperMapAlgoPlot.AlgoSymbol37600(o);case 37601:return new SuperMapAlgoPlot.AlgoSymbol37601(o);case 37700:return new SuperMapAlgoPlot.AlgoSymbol37700(o);case 38600:return new SuperMapAlgoPlot.AlgoSymbol38600(o);case 38700:return new SuperMapAlgoPlot.AlgoSymbol38700(o);case 39e3:return new SuperMapAlgoPlot.AlgoSymbol39000(o);case 39101:return new SuperMapAlgoPlot.AlgoSymbol39101(o);case 39500:return new SuperMapAlgoPlot.AlgoSymbol39500(o);case 39600:return new SuperMapAlgoPlot.AlgoSymbol39600(o);case 39800:return new SuperMapAlgoPlot.AlgoSymbol39800(o);case 39801:return new SuperMapAlgoPlot.AlgoSymbol39801(o);case 39802:return new SuperMapAlgoPlot.AlgoSymbol39802(o);case 4e4:return new SuperMapAlgoPlot.AlgoSymbol40000(o);case 40100:return new SuperMapAlgoPlot.AlgoSymbol40100(o);case 40101:return new SuperMapAlgoPlot.AlgoSymbol40101(o);case 40900:return new SuperMapAlgoPlot.AlgoSymbol40900(o);case 41100:return new SuperMapAlgoPlot.AlgoSymbol41100(o);case 41200:return new SuperMapAlgoPlot.AlgoSymbol41200(o);case 41201:return new SuperMapAlgoPlot.AlgoSymbol41201(o);case 41202:return new SuperMapAlgoPlot.AlgoSymbol41202(o);case 42200:return new SuperMapAlgoPlot.AlgoSymbol42200(o);case 42400:return new SuperMapAlgoPlot.AlgoSymbol42400(o);case 42500:return new SuperMapAlgoPlot.AlgoSymbol42500(o);case 42700:return new SuperMapAlgoPlot.AlgoSymbol42700(o);case 43500:return new SuperMapAlgoPlot.AlgoSymbol43500(o);case 44100:return new SuperMapAlgoPlot.AlgoSymbol44100(o);case 44200:return new SuperMapAlgoPlot.AlgoSymbol44200(o);case 44300:return new SuperMapAlgoPlot.AlgoSymbol44300(o);case 44400:return new SuperMapAlgoPlot.AlgoSymbol44400(o);case 2890001:return new SuperMapAlgoPlot.AlgoSymbol2890001(o);case 3010301:return new SuperMapAlgoPlot.AlgoSymbol3010301(o);case 3010302:return new SuperMapAlgoPlot.AlgoSymbol3010302(o);case 3010303:return new SuperMapAlgoPlot.AlgoSymbol3010303(o);case 3010304:return new SuperMapAlgoPlot.AlgoSymbol3010304(o);case 3010102:return new SuperMapAlgoPlot.AlgoSymbol3010102(o);case 3010103:return new SuperMapAlgoPlot.AlgoSymbol3010103(o);case 3010104:return new SuperMapAlgoPlot.AlgoSymbol3010104(o);case 3010105:return new SuperMapAlgoPlot.AlgoSymbol3010105(o);case 3010106:return new SuperMapAlgoPlot.AlgoSymbol3010106(o);case 3010107:return new SuperMapAlgoPlot.AlgoSymbol3010107(o);case 3010108:return new SuperMapAlgoPlot.AlgoSymbol3010108(o);case 3020901:return new SuperMapAlgoPlot.AlgoSymbol3020901(o);case 3032e3:return new SuperMapAlgoPlot.AlgoSymbol3032000(o);case 4010800:return new SuperMapAlgoPlot.AlgoSymbol4010800(o);case 4010801:return new SuperMapAlgoPlot.AlgoSymbol4010801(o);case 4010905:return new SuperMapAlgoPlot.AlgoSymbol4010905(o);case 4011100:return new SuperMapAlgoPlot.AlgoSymbol4011100(o);case 4011101:return new SuperMapAlgoPlot.AlgoSymbol4011101(o);case 4020303:return new SuperMapAlgoPlot.AlgoSymbol4020303(o);case 4020401:return new SuperMapAlgoPlot.AlgoSymbol4020401(o);case 4020402:return new SuperMapAlgoPlot.AlgoSymbol4020402(o);case 4021101:return new SuperMapAlgoPlot.AlgoSymbol4021101(o);case 4021102:return new SuperMapAlgoPlot.AlgoSymbol4021102(o);case 4022100:return new SuperMapAlgoPlot.AlgoSymbol4022100(o);case 4022101:return new SuperMapAlgoPlot.AlgoSymbol4022101(o);case 4022102:return new SuperMapAlgoPlot.AlgoSymbol4022102(o);case 6020400:return new SuperMapAlgoPlot.AlgoSymbol6020400(o);case 6020401:return new SuperMapAlgoPlot.AlgoSymbol6020401(o);case 6020402:return new SuperMapAlgoPlot.AlgoSymbol6020402(o);case 6020403:return new SuperMapAlgoPlot.AlgoSymbol6020403(o);case 6020404:return new SuperMapAlgoPlot.AlgoSymbol6020404(o);default:return new SuperMapAlgoPlot.AlgoSymbol(o)}},SuperMapAlgoPlot.JBAlgoSymbolFactory.isAccessServer=function(t,e){if(100!==t)return!0;switch(e){case 12500:case 12501:case 12502:case 13700:case 15200:case 15201:case 15202:case 15800:case 15801:case 15802:case 15803:case 15804:case 15805:case 15806:case 15900:case 16e3:case 16001:case 16100:case 16200:case 16201:case 16202:case 16203:case 16500:case 16700:case 16900:case 17400:case 17401:case 17500:case 17501:case 17600:case 17700:case 1770101:case 1770201:case 1770501:case 17703:case 17704:case 17800:case 17801:case 17802:case 17803:case 17804:case 17805:case 17806:case 20300:case 20301:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21800:case 21900:case 22e3:case 22103:case 22200:case 23400:case 23500:case 23600:case 23700:case 23800:case 23901:case 23902:case 24700:case 25e3:case 25100:case 25101:case 25200:case 25201:case 25202:case 25300:case 25301:case 25400:case 25500:case 25501:case 25502:case 25503:case 25600:case 25601:case 25700:case 25701:case 2570201:case 2570301:case 2570401:case 2570501:case 25800:case 25801:case 25900:case 25901:case 26400:case 26500:case 26501:case 26502:case 26503:case 26600:case 26601:case 26700:case 26800:case 27100:case 27300:case 2730101:case 27700:case 27701:case 27900:case 27901:case 27902:case 28e3:case 28100:case 28200:case 28201:case 28300:case 28301:case 28400:case 28900:case 29e3:case 29001:case 29002:case 29003:case 29100:case 29101:case 29103:case 29401:case 29800:case 29903:case 3e4:case 30001:case 30002:case 30100:case 30200:case 30201:case 30800:case 30102:case 31300:case 31301:case 31302:case 31303:case 31304:case 31400:case 31401:case 31600:case 31601:case 31803:case 32300:case 32900:case 33400:case 34300:case 34400:case 34500:case 34501:case 34700:case 34800:case 34801:case 34900:case 34901:case 34902:case 35e3:case 35200:case 35304:case 35500:case 36400:case 36401:case 36600:case 36700:case 36800:case 37100:case 37200:case 37300:case 37301:case 37600:case 37601:case 37700:case 38600:case 38700:case 39e3:case 39101:case 39500:case 39600:case 39800:case 39801:case 39802:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 4e4:case 40100:case 40101:case 40900:case 41100:case 41200:case 41201:case 41202:case 42200:case 42400:case 42500:case 42700:case 43500:case 44100:case 44200:case 44300:case 44400:case 2350001:case 2890001:case 3010301:case 3010302:case 3010303:case 3010304:case 3020901:case 3032e3:case 4010800:case 4010801:case 4010905:case 4011100:case 4011101:case 4020303:case 4020400:case 4020401:case 4020402:case 4022100:case 4022101:case 4022102:case 6020400:case 6020401:case 6020402:case 6020403:case 6020404:case 4021101:case 4021102:return!1;default:return!0}},SuperMapAlgoPlot.JBAlgoSymbolFactory.getSymbolWayType=function(t,e){if(100!==t)return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN;switch(e){case 15200:case 15201:case 16203:case 17703:case 17704:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21900:case 22e3:case 22103:case 23800:case 24700:case 25201:case 25400:case 26500:case 26501:case 26502:case 26600:case 28900:case 29e3:case 29003:case 29903:case 3e4:case 30001:case 30002:case 30100:case 30102:case 30200:case 30201:case 30800:case 31803:case 33400:case 34900:case 34901:case 34902:case 35e3:case 36400:case 42200:case 44200:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 16500:case 17400:case 17401:case 17500:case 17501:case 23400:case 23500:case 23600:case 23700:case 27300:case 2730101:case 28200:case 28300:case 28400:case 37600:case 37601:case 37700:case 39e3:case 40100:case 40101:case 42400:case 2350001:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022100:case 4022101:case 4022102:case 39101:case 44300:case 22200:case 27701:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;case 12500:case 12502:case 16100:case 20300:case 25501:case 25502:case 26503:case 25503:case 25601:case 25801:case 25901:case 32900:case 34700:case 35200:case 36401:case 41200:case 41201:case 41202:case 42700:case 44400:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}},SuperMapAlgoPlot.JBAlgoSymbolFactory.getDefaultSubSymbols=function(t,e){var o=[];if(100!==t)return o;switch(e){case 17400:case 17401:return o.push(new SuperMapAlgoPlot.SubSymbol(100,17300)),o.push(new SuperMapAlgoPlot.SubSymbol(100,17301)),o;case 21501:case 26502:return o.push(new SuperMapAlgoPlot.SubSymbol(100,19700)),o;case 21502:return o.push(new SuperMapAlgoPlot.SubSymbol(100,6803)),o;case 22103:case 26501:return o.push(new SuperMapAlgoPlot.SubSymbol(100,22100)),o;case 21503:return o.push(new SuperMapAlgoPlot.SubSymbol(100,7900)),o;case 21504:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8404)),o;case 22e3:return o.push(new SuperMapAlgoPlot.SubSymbol(100,1e3)),o;case 23500:return o.push(new SuperMapAlgoPlot.SubSymbol(100,1300)),o;case 23600:return o.push(new SuperMapAlgoPlot.SubSymbol(100,800)),o.push(new SuperMapAlgoPlot.SubSymbol(100,800)),o;case 25300:return o.push(new SuperMapAlgoPlot.SubSymbol(100,6302)),o.push(new SuperMapAlgoPlot.SubSymbol(100,7900)),o;case 25301:return o.push(new SuperMapAlgoPlot.SubSymbol(100,300)),o.push(new SuperMapAlgoPlot.SubSymbol(100,6200)),o;case 25503:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8402)),o;case 26400:return o.push(new SuperMapAlgoPlot.SubSymbol(100,3300)),o;case 26700:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4500)),o;case 27100:return o.push(new SuperMapAlgoPlot.SubSymbol(100,7700)),o;case 27300:return o.push(new SuperMapAlgoPlot.SubSymbol(100,1500)),o;case 2730101:return o.push(new SuperMap.Plot.SubSymbol(100,1500)),o;case 3032e3:return o.push(new SuperMapAlgoPlot.SubSymbol(100,1500)),o.push(new SuperMapAlgoPlot.SubSymbol(100,1500)),o;case 28300:return o.push(new SuperMapAlgoPlot.SubSymbol(100,18600)),o;case 28301:return o.push(new SuperMapAlgoPlot.SubSymbol(100,18600)),o.push(new SuperMapAlgoPlot.SubSymbol(100,18600)),o;case 28400:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4801)),o;case 29001:return o.push(new SuperMapAlgoPlot.SubSymbol(100,5200)),o.push(new SuperMapAlgoPlot.SubSymbol(100,5200)),o;case 29002:return o.push(new SuperMapAlgoPlot.SubSymbol(100,600)),o.push(new SuperMapAlgoPlot.SubSymbol(100,5300)),o;case 23901:case 23902:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4800)),o;case 31600:case 31601:return o.push(new SuperMapAlgoPlot.SubSymbol(100,700)),o;case 29903:case 4021101:return o.push(new SuperMapAlgoPlot.SubSymbol(100,600)),o;case 32900:return o.push(new SuperMapAlgoPlot.SubSymbol(100,6700)),o;case 35200:return o.push(new SuperMapAlgoPlot.SubSymbol(100,6803)),o;case 37700:return o.push(new SuperMapAlgoPlot.SubSymbol(100,37800)),o;case 3010107:return o.push(new SuperMapAlgoPlot.SubSymbol(100,800)),o;case 3010108:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4600)),o;case 4010800:return o.push(new SuperMapAlgoPlot.SubSymbol(100,1300)),o;case 4010801:case 4022100:case 4022101:case 4022102:case 4021102:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8400)),o;case 31303:case 31302:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4400)),o;case 4010905:return o.push(new SuperMapAlgoPlot.SubSymbol(100,700)),o;case 31803:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8402)),o;case 34400:return o.push(new SuperMapAlgoPlot.SubSymbol(100,6202)),o;case 34501:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8403)),o;case 35304:return o.push(new SuperMapAlgoPlot.SubSymbol(100,35301)),o;case 36401:return o.push(new SuperMapAlgoPlot.SubSymbol(100,7200)),o;case 36600:return o.push(new SuperMapAlgoPlot.SubSymbol(100,300)),o;case 37100:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8e3)),o;case 37200:return o.push(new SuperMapAlgoPlot.SubSymbol(100,7101)),o;case 37600:case 37601:case 38600:case 38700:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4600)),o;case 39e3:return o.push(new SuperMapAlgoPlot.SubSymbol(100,9300)),o.push(new SuperMapAlgoPlot.SubSymbol(100,9300)),o.push(new SuperMapAlgoPlot.SubSymbol(100,9300)),o;case 39101:return o.push(new SuperMapAlgoPlot.SubSymbol(100,39100)),o;case 39500:case 39600:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8700)),o;case 39800:case 39801:case 39802:case 4e4:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8900)),o;case 36700:return o.push(new SuperMapAlgoPlot.SubSymbol(100,300)),o;case 42200:return o.push(new SuperMapAlgoPlot.SubSymbol(100,20901)),o;case 4011100:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4e3)),o.push(new SuperMapAlgoPlot.SubSymbol(100,4001)),o;case 4011101:return o.push(new SuperMapAlgoPlot.SubSymbol(100,700)),o.push(new SuperMapAlgoPlot.SubSymbol(100,700)),o;case 2350001:return o.push(new SuperMapAlgoPlot.SubSymbol(100,7900)),o.push(new SuperMapAlgoPlot.SubSymbol(100,1300)),o;case 2890001:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4003)),o;default:return o}},SuperMapAlgoPlot.JBAlgoSymbolFactory.getMinEditPts=function(t,e){if(100!==t)return 0;switch(e){case 12500:case 12501:case 12502:case 13700:case 15200:case 15201:case 15202:case 15800:case 15801:case 15802:case 15803:case 15804:case 15805:case 15806:case 15900:case 16e3:case 16001:case 16200:case 16201:case 16202:case 16203:case 16500:case 16700:case 16900:case 17400:case 17401:case 17500:case 17501:case 17600:case 17700:case 1770101:case 1770201:case 1770501:case 17703:case 17704:case 17800:case 17801:case 17802:case 17803:case 17804:case 17805:case 17806:case 20300:case 20301:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21800:case 21900:case 22e3:case 22103:case 22200:case 23400:case 23500:case 23600:case 23700:case 23800:case 23901:case 23902:case 24700:case 25e3:case 25100:case 25101:case 25201:case 25202:case 25300:case 25301:case 25400:case 26400:case 26500:case 26501:case 26502:case 26503:case 26600:case 26601:case 26700:case 26800:case 27100:case 27300:case 2730101:case 27700:case 27701:case 27900:case 27901:case 27902:case 28e3:case 28100:case 28200:case 28201:case 28300:case 28301:case 28400:case 28900:case 29e3:case 29001:case 29002:case 29003:case 29100:case 29101:case 29103:case 29401:case 29903:case 41100:case 44100:case 43500:case 42500:case 39500:case 37301:case 37300:case 37200:case 37100:case 36800:case 36600:case 35500:case 34801:case 34800:case 34501:case 34500:case 34400:case 34300:case 31600:case 31601:case 31401:case 31400:case 31304:case 31303:case 31302:case 31301:case 31300:case 44200:case 41200:case 41201:case 41202:case 31803:case 30800:case 30201:case 30200:case 44300:case 42400:case 42200:case 40900:case 40100:case 40101:case 4e4:case 39802:case 39801:case 39800:case 39600:case 39101:case 39e3:case 38600:case 37700:case 37601:case 37600:case 36700:case 36401:case 36400:case 35304:case 35200:case 35e3:case 34700:case 33400:case 30100:case 30102:case 30002:case 30001:case 3e4:case 38700:case 32300:case 42700:case 34902:case 34901:case 34900:case 32900:case 2350001:case 2890001:case 3032e3:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 3020901:case 4021101:case 4021102:case 4010800:case 4010801:case 4011100:case 4011101:case 4022101:case 4022102:case 4020303:case 4020400:case 4020401:case 4020402:case 4022100:case 4010905:case 6020400:case 6020401:case 6020402:case 6020403:case 6020404:case 25500:case 25501:case 25502:case 25503:case 25600:case 25601:case 25700:case 25701:case 2570201:case 2570301:case 2570401:case 2570501:case 25800:case 25801:case 25900:case 25901:case 44400:return 2;case 16100:case 25200:case 29800:return 3;default:return 0}},SuperMapAlgoPlot.JBAlgoSymbolFactory.getMaxEditPts=function(t,e){if(100!==t)return 0;switch(e){case 15202:case 16202:case 20301:case 16700:case 16900:case 17600:case 25e3:case 25100:case 25101:case 25300:case 25301:case 27100:case 27700:case 27900:case 27901:case 27902:case 28100:case 28201:case 28301:case 44100:case 43500:case 42500:case 39500:case 37301:case 37300:case 37200:case 37100:case 36800:case 36600:case 35500:case 34801:case 34800:case 34501:case 34500:case 34400:case 34300:case 31600:case 31601:case 31401:case 31400:case 31304:case 31303:case 31302:case 31301:case 31300:case 21800:case 26700:case 29401:case 1770101:case 1770201:return 2;case 13700:case 17800:case 17801:case 17802:case 17803:case 17804:case 17805:case 17806:case 23901:case 23902:case 38700:case 26800:case 29001:case 29002:case 32300:case 29101:case 29100:case 4010905:case 6020400:case 6020401:case 6020402:case 6020403:case 29e3:return 3;case 28e3:return 4;case 16201:case 17400:case 17401:case 17500:case 17501:case 22200:case 23400:case 23500:case 2350001:case 23600:case 23700:case 23800:case 25200:case 27300:case 2730101:case 27701:case 28400:case 44300:case 42400:case 42200:case 40900:case 40100:case 40101:case 4e4:case 39802:case 39801:case 39800:case 39600:case 39101:case 39e3:case 38600:case 37700:case 37601:case 37600:case 36700:case 36401:case 36400:case 35304:case 35200:case 35e3:case 34700:case 33400:case 30100:case 30102:case 30002:case 30001:case 3e4:case 29903:case 29800:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022101:case 4022102:case 4020303:case 4020400:case 4020401:case 4020402:case 4022100:case 16500:return 30;case 42700:case 34902:case 34901:case 34900:case 32900:case 6020404:return 512;case 12500:case 12501:case 12502:case 16e3:case 16001:case 16100:case 16200:case 16203:case 17700:case 1770501:case 17703:case 17704:case 21900:case 22e3:case 22103:case 25201:case 25202:case 24700:case 25400:case 25500:case 25501:case 25502:case 25503:case 25600:case 25601:case 25700:case 25701:case 2570201:case 2570301:case 2570401:case 2570501:case 25800:case 25801:case 25900:case 25901:case 28900:case 2890001:case 44400:case 44200:case 41200:case 41201:case 41202:case 31803:case 30800:case 30201:case 30200:case 4021102:case 29103:case 28300:case 28200:case 29003:return 1e3;case 15200:case 15201:case 15800:case 15801:case 15802:case 15803:case 15804:case 15805:case 15806:case 15900:case 20300:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 26400:case 26500:case 26501:case 26502:case 26503:case 26600:case 26601:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 3020901:case 4021101:case 41100:return 9999;default:return 0}},SuperMapAlgoPlot.JBAlgoSymbolFactory.getDefaultStyle=function(t,e){var o={};if(100===t)switch(e){case 34800:case 34801:case 22200:case 28e3:case 28100:case 28200:case 28201:case 44400:o.color=o.strokeColor="#0000ff";break;case 42500:case 42700:o.color=o.strokeColor="#00ff00";break;case 42400:o.color=o.strokeColor="#006600"}return o},SuperMapAlgoPlot.JBAlgoSymbolFactory.zoomInCalSymbol=function(){return!1}}(); /***/ }), /* 2 */ /***/ (function(module, exports) { !function(){"use strict";function t(e){"@babel/helpers - typeof";return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],c,.9*s,g-90),this.scalePoints=[],this.addScalePoint(u[u.length-1]);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,g+90);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}else if(1==t){var r=this.scaleValues[0]*l,i=SuperMapAlgoPlot.PlottingUtil.radian(o[0],o[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],r,r,90+i),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[1],r,r,90+i),p=new SuperMapAlgoPlot.Point((a.x+u.x)/2,(a.y+u.y)/2),s=SuperMapAlgoPlot.PlottingUtil.distance(p,e)/l;s>=.8&&(s=.8),this.scaleValues[1]=s}}}}])&&e(n.prototype,r),i&&e(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}();function i(t){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var o=0;ol&&fl){var g;g=P>l?s:c,(p=this.getLineAddCircleIntersectPts(s,c,a)).length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p[0],g])}else{var y=SuperMapAlgoPlot.PlottingUtil.projectPoint(i,s,c);if(SuperMapAlgoPlot.PlottingUtil.distance(i,y)>=l)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c]);else if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(y,s,c)){if((p=this.getLineAddCircleIntersectPts(s,c,a)).length>0){p.unshift(s),p.push(c);for(var h=0;hSuperMapAlgoPlot.PlottingUtil.distance(n,o)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,o){var l=o.slice();l[0].x===l[l.length-1].x&&l[0].y===l[l.length-1].y||l.push(l[0]);for(var n,r=[],i=0;ie.x)for(var c=0;cr[P+1].x&&(n=r[P],r[P]=r[P+1],r[P+1]=n);else if(t.y>e.y)for(var f=0;fr[g+1].y&&(n=r[g],r[g]=r[g+1],r[g+1]=n);return r}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=0,r=-1,i=null,a=0;a1&&(P=1),this.scaleValues[0]=P}if(1===t){var f=this.scaleValues[0]*l,g=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,f);if(-1===g.index)return;var y=SuperMapAlgoPlot.PlottingUtil.distance(g.pt,e)/l;y>.4&&(y=.4),this.scaleValues[1]=y}}}}])&&a(e.prototype,o),l&&a(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function P(t){"@babel/helpers - typeof";return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){for(var o=0;o1&&(P.push(f),f=[]):f.push(i.pt[g]);f.length>1&&P.push(f);for(var y=0;ythis.scaleValues.length)return;var l,n,r,i,a,u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),p=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),s=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t){var c=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),P=SuperMapAlgoPlot.PlottingUtil.distance(c,s);n=2*P/u,this.scaleValues[1]=n}else if(1===t)c=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),l=(P=SuperMapAlgoPlot.PlottingUtil.distance(c,s))/u,this.scaleValues[0]=l;else if(2==t){var f=-1,g=0;a=new SuperMapAlgoPlot.Point(0,0),l=this.scaleValues[0],n=this.scaleValues[1];for(var y=0;yA&&(f=y,a=b,g=A)}}if(-1==f||f>p.length-1)return;i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p);for(var d=[],M=0;Mi)return;r=v/i,this.scaleValues[2]=r}else if(3===t){l=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2];var m=(i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p))*r;if(-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,m)).index)return;var O=SuperMapAlgoPlot.PlottingUtil.distance(a.pt,e)/u;O>.4&&(O=.4),this.scaleValues[3]=O}}}},{key:"GetCurvePts",value:function(t,e,o){for(var l,n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),i=r*e,a=r*o/2,u=[],p=[],s=n[0],c=!1,P=n[0],f=1;f1&&0===b?this.ClearCurvePts2D(P,s,g,p,A,u):u.concat(A),p=(p=[]).concat(A),P=s,s=h}f===n.length-1&&(h=n[n.length-1],A=this.GetCosPts2D(s,h,i,a),u=p.length>1&&A.length>1?this.ClearCurvePts2D(P,s,g,p,A,u):u.concat(A))}}return{pt:u,scalePt:l}}},{key:"GetCosPts2D",value:function(t,e,o,l){for(var n=[],r=SuperMapAlgoPlot.PlottingUtil.distance(t,e),i=o/30,a=0;an&&gn){var y;y=f>n?P:a,(c=this.getLineAddCircleIntersectPts(P,a,p)).length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c[0],y])}else{var h=SuperMapAlgoPlot.PlottingUtil.projectPoint(u,P,a);if(SuperMapAlgoPlot.PlottingUtil.distance(u,h)>=n)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[P,a]);else if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(h,P,a)){if((c=this.getLineAddCircleIntersectPts(P,a,p)).length>0){c.unshift(P),c.push(a);for(var S=0;SSuperMapAlgoPlot.PlottingUtil.distance(n,o)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,o){var l=o.slice();l[0].x===l[l.length-1].x&&l[0].y===l[l.length-1].y||l.push(l[0]);for(var n,r=[],i=0;ie.x)for(var c=0;cr[P+1].x&&(n=r[P],r[P]=r[P+1],r[P+1]=n);else if(t.y>e.y)for(var f=0;fr[g+1].y&&(n=r[g],r[g]=r[g+1],r[g+1]=n);return r}}])&&A(e.prototype,o),l&&A(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function O(t){"@babel/helpers - typeof";return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(t,e){for(var o=0;o=r)return;this.scaleValues=[];var i=SuperMapAlgoPlot.PlottingUtil.distance(o,l)/r;this.scaleValues.push(i);var a=180*SuperMapAlgoPlot.PlottingUtil.radian(o,l)/Math.PI;a>90?a-=90:a=270+a,this.scaleValues.push(a*(Math.PI/180));var u=180*SuperMapAlgoPlot.PlottingUtil.radian(o,n)/Math.PI;u>90?u-=90:u=270+u,this.scaleValues.push(u*(Math.PI/180)),e=this.scaleValues[0]*r;var p=this.scaleValues[1]*(180/Math.PI)+90,s=this.scaleValues[2]*(180/Math.PI)+90;p=s;f-=4)c=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,f),P.push(c);f!=s&&(c=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,s),P.push(c)),this.controlPoints[2]=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P)}this.finish()}}}])&&w(e.prototype,o),l&&w(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function R(t){"@babel/helpers - typeof";return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function V(t,e){for(var o=0;o.7&&(M=.7),this.scaleValues[2]=M}}}}])&&V(e.prototype,o),l&&V(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function C(t){"@babel/helpers - typeof";return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Y(t,e){for(var o=0;o=1)return;this.scaleValues[2]=S}}}}])&&q(e.prototype,o),l&&q(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function tt(t){"@babel/helpers - typeof";return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function et(t,e){for(var o=0;o=this.minEditPts){this.scalePoints=[];var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o=this.scaleValues[0],l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=o*l,r=.6*n,i=this.scaleValues[2]*l,a=0===this.scaleValues[1],u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0===u)return;for(var p=[],s=0;s<=u;s+=i){var c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,s);if(!(c.index<0)){var P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,e[c.index+1],c.pt);if(a?p.push(P.pntRight):p.push(P.pntLeft),!((c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,s+.65*i)).index<0||(P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,e[c.index+1],c.pt),a?p.push(P.pntRight):p.push(P.pntLeft),(c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,s+.8*i)).index<0||(p.push(c.pt),(c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,s+.5*i)).index<0||(P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,e[c.index+1],c.pt),a?p.push(P.pntLeft):p.push(P.pntRight),c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,s+.2*i),p.push(c.pt),(c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,s+.35*i)).index<0||(P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,e[c.index+1],c.pt),a?p.push(P.pntRight):p.push(P.pntLeft),(c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,s+i)).index<0||(P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,e[c.index+1],c.pt),a?p.push(P.pntRight):p.push(P.pntLeft),!(Math.abs(s)<=1e-6)))))))){this.scalePoints=[];var f=new SuperMapAlgoPlot.Point(p[0].x,p[0].y);f.isScalePoint=!0,f.tag=0,this.scalePoints.push(f),(f=new SuperMapAlgoPlot.Point(c.pt.x,c.pt.y)).isScalePoint=!0,f.tag=1,this.scalePoints.push(f)}}}var g=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(p);SuperMapAlgoPlot.PlottingUtil.clearSamePts(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.9&&(this.scaleValues[1]=.9)}}}}])&&qt(e.prototype,o),l&&qt(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function te(t){"@babel/helpers - typeof";return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ee(t,e){for(var o=0;ol-l*this.scaleValues[0]-r&&(this.scaleValues[1]=(l-l*this.scaleValues[0]-r)/l)}}}}])&&ae(e.prototype,o),l&&ae(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Pe(t){"@babel/helpers - typeof";return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fe(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),l=e[0].x,n=e[0].x,r=e[0].y,i=e[0].y,a=[],u=0;ue[u].x&&(l=e[u].x),ne[u].y&&(r=e[u].y),i0&&(S=.015*o,this.computeSubSymbol(this.subSymbols[0],b,S,0)),g++):(g=0,this.subSymbols.length>0&&(S=.022*o,this.computeSubSymbol(this.subSymbols[1],b,S,0)))}this.finish()}}}}])&&Ae(e.prototype,o),l&&Ae(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Oe(t){"@babel/helpers - typeof";return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function we(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=e[0].x,l=e[0].x,n=e[0].y,r=e[0].y,i=[],a=0;ae[a].x&&(o=e[a].x),le[a].y&&(n=e[a].y),r=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=e[0].x,l=e[0].x,n=e[0].y,r=e[0].y,i=0;ie[i].x&&(o=e[i].x),le[i].y&&(n=e[i].y),r=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=e[0].x,l=e[0].x,n=e[0].y,r=e[0].y,i=0;ie[i].x&&(o=e[i].x),le[i].y&&(n=e[i].y),rl)return o;for(var n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=2*parseInt(l/(1.5*e)),i=0;i0&&o.push(n),o}}])&&Fe(e.prototype,o),l&&Fe(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ke(t){"@babel/helpers - typeof";return(Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qe(t,e){for(var o=0;o2*o.length-2)return;for(var l=0,n=0;n.45&&(p=.45),2==o.length?this.scaleValues[0]=p:this.scaleValues[2*t]=p}else{var s=-1;s=t%2==0?t/2:(t+1)/2;var c=(e.x-o[s].x)/l,P=(e.y-o[s].y)/l;this.scaleValues[2*t]=c,this.scaleValues[2*t+1]=P}}}}])&&qe(e.prototype,o),l&&qe(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function to(t){"@babel/helpers - typeof";return(to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eo(t,e){for(var o=0;o(r*=this.scaleValues[6])?(c=SuperMapAlgoPlot.PlottingUtil.paraLine(p,r/2,!0),P=SuperMapAlgoPlot.PlottingUtil.paraLine(p,r/2,!1)):(c=SuperMapAlgoPlot.PlottingUtil.paraLine(p,f/2,!0),P=SuperMapAlgoPlot.PlottingUtil.paraLine(p,f/2,!1));var g=[];g.push(c[0]),g.push(c[c.length-1]),g.push(P[P.length-1]),g.push(P[0]);var y={surroundLineFlag:!1,fillLimit:!0,strokeColor:"#37CECE",fillColorLimit:!0,fillColor:"#37CECE",fill:!0,fillOpacity:.7,lineColorLimit:!0,color:"#37CECE",surroundLineLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,y);var h=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(g);y={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0};var S=SuperMapAlgoPlot.PlottingUtil.paraLine(l,o,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,y);for(var b=n*this.scaleValues[1],A=this.getDashLinePts(l,b),d=0;dl)return o;for(var n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=2*parseInt(l/(1.5*e)),i=0;i0&&o.push(n),o}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length1&&(f=1),this.scaleValues[5]=f)}else this.scaleValues[5]=P/n;else if(1===t){i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n*this.scaleValues[5],l),r=SuperMapAlgoPlot.PlottingUtil.distance(i.pts,e);var g=this.scaleValues[7]*n;this.scaleValues[6]=r/g}}}}])&&ao(e.prototype,o),l&&ao(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Po(t){"@babel/helpers - typeof";return(Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fo(t,e){for(var o=0;oo.length)return;for(var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=-1,r=0,i=new SuperMapAlgoPlot.Point(0,0),a=0;ac&&(n=a,i=u,r=c)}}if(-1===n||n>o.length-1)return;for(var P=0,f=0;fl)return;var S=P/l;S>.95?S=.95:S<.1&&(S=.1),this.scaleValues[0]=S}}}])&&ol(e.prototype,o),l&&ol(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function al(t){"@babel/helpers - typeof";return(al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ul(t,e){for(var o=0;oo.length)return;var l=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),n=new SuperMapAlgoPlot.Point(o[1].x,o[1].y),r=SuperMapAlgoPlot.PlottingUtil.distance(l,n);if(0===r)return;var i=new SuperMapAlgoPlot.Point((l.x+n.x)/2,(l.y+n.y)/2);if(0===t){var a=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/r;this.scaleValues[0]=a,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l,n,e)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}}])&&ul(e.prototype,o),l&&ul(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function fl(t){"@babel/helpers - typeof";return(fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gl(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=180*SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);0o.x&&(O=!1);var w,U=(m=.1*l)+(v=.12*l/2);M=1==O?(w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(U,o,e)).pntRight:(w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(U,o,e)).pntLeft;var L,T,j,R,V,_,E,x,B=[];B.push(M),B.push(new SuperMapAlgoPlot.Point(M.x+v,M.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,B,{lineTypeLimit:!0,surroundLineLimit:!0}),1==O?(L=(w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.85*m,o,e)).pntRight,R=w.pntLeft,T=(w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(m,L,R)).pntRight,j=w.pntLeft):(L=(w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.85*m,o,e)).pntLeft,R=w.pntRight,T=(w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(m,L,R)).pntLeft,j=w.pntRight),(B=[]).push(L),B.push(T),B.push(j),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,B,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0}),w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*v,T,j),x=1==O?w.pntRight:w.pntLeft,w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*v,j,T),_=1==O?w.pntLeft:w.pntRight;var C=SuperMapAlgoPlot.PlottingUtil.intersectLines(L,_,j,T);C.isIntersectLines&&(V=C.intersectPoint,(C=SuperMapAlgoPlot.PlottingUtil.intersectLines(L,x,j,T)).isIntersectLines&&(E=C.intersectPoint,(B=[]).push(V),B.push(_),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,B,{lineTypeLimit:!0,surroundLineLimit:!0}),(B=[]).push(E),B.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,B,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(b[0]),this.addScalePoint(b[1]),this.addScalePoint(b[2]),this.finish()))}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l,n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),r=o[0].clone(),i=o[1].clone(),a=e.clone();if(0==t){var u=SuperMapAlgoPlot.PlottingUtil.distance(a,r)/n;this.scaleValues[0]=u}else if(1==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var p=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[1]=p;var s=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[3]=s}else if(2==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var c=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[2]=c;var P=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[4]=P}}}}])&&dl(e.prototype,o),l&&dl(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function wl(t){"@babel/helpers - typeof";return(wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ul(t,e){for(var o=0;o2){for(var r=-1,i=e.length-2;i>=0;i--)if(lo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[o.length-1])/l;if(n>.2)return;this.scaleValues[0]=n}}}])&&Ul(e.prototype,o),l&&Ul(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Vl(t){"@babel/helpers - typeof";return(Vl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _l(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),r=n*(.5+.5*this.scaleValues[1]),i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,l);if(!i.bfind)return;var a,u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1,l[i.index],i.pts),p=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[i.index],l[i.index+1],e);this.scaleValues[2]=p?0:1,a=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,new SuperMapAlgoPlot.Point(u.pntLeft.x,u.pntLeft.y),new SuperMapAlgoPlot.Point(u.pntRight.x,u.pntRight.y));var s=SuperMapAlgoPlot.PlottingUtil.distance(a.projectPoint,new SuperMapAlgoPlot.Point(i.pts.x,i.pts.y));this.scaleValues[0]=s/n}}}])&&_l(e.prototype,o),l&&_l(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Yl(t){"@babel/helpers - typeof";return(Yl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Il(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=.01*n;if(0===t){var i=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,r);if(-1===i.index)return;var a=SuperMapAlgoPlot.PlottingUtil.distance(e,i.pt);this.scaleValues[0]=a/n}else if(1===t){var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,r);if(-1===u.index)return;var p=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,l);if(-1===p.index)return;for(var s=0,c=u.index+1;c.93&&(this.scaleValues[1]=.93)}}}}])&&Il(e.prototype,o),l&&Il(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Fl(t){"@babel/helpers - typeof";return(Fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gl(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[3]=.5*l}for(var n=this.getLinePts(e,this.scaleValues[0]),r=[],i=[],a=0;a<=n.startIndex;a++)r.push(e[a]);if(r.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),n.endIndex<=e.length){i.push(n.endPt);for(var u=n.endIndex+1;u<=e.length-1;u++)i.push(e[u]);this.addArrow(i,this.scaleValues[this.scaleValues.length-1])}var p,s,c,P,f,g,y,h,S,b,A,d,M,v=n.startPt.clone(),m=n.endPt.clone(),O=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),w=SuperMapAlgoPlot.PlottingUtil.distance(v,m),U=SuperMapAlgoPlot.PlottingUtil.radian(v,m)*SuperMapAlgoPlot.PlottingUtil.RTOD;p=new SuperMapAlgoPlot.Point(0,0),s=new SuperMapAlgoPlot.Point(0,0),c=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0),f=new SuperMapAlgoPlot.Point(0,0),g=new SuperMapAlgoPlot.Point(0,0),y=new SuperMapAlgoPlot.Point(0,0),h=new SuperMapAlgoPlot.Point(0,0),S=new SuperMapAlgoPlot.Point(0,0),b=new SuperMapAlgoPlot.Point(0,0),A=new SuperMapAlgoPlot.Point(0,0),d=new SuperMapAlgoPlot.Point(0,0),M=new SuperMapAlgoPlot.Point(0,0),v.x>=m.x?(p.x=.25*w,p.y=.25*-w,s.x=.5*-w,s.y=.25*-w,c.x=.5*-w,c.y=.25*w,P.x=.5*w,P.y=.25*w,f.x=.5*w,f.y=0,g.x=.25*-w,g.y=.125*-w,y.x=0,y.y=.125*w,h.x=0,h.y=.125*-w,S.x=.25*w,S.y=.2*w,b.x=.25*-w,b.y=.25*-w,A.x=.375*-w,A.y=.5*-w,d.x=.02*-w,d.y=.25*-w,M.x=.1*w,M.y=.5*-w):(p.x=.25*w,p.y=.25*w,s.x=.5*-w,s.y=.25*w,c.x=.5*-w,c.y=.25*-w,P.x=.5*w,P.y=.25*-w,f.x=.5*w,f.y=0,g.x=.25*w,g.y=.125*-w,y.x=0,y.y=.125*w,h.x=0,h.y=.125*-w,S.x=.25*-w,S.y=.125*w,b.x=.25*-w,b.y=.25*w,A.x=.375*-w,A.y=.5*w,d.x=.02*w,d.y=.25*w,M.x=.15*w,M.y=.5*w);var L=[],T=[],j=[],R=[],V=[],_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,p,U),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,s,U),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,c,U),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,P,U),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,f,U),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,g,U),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,y,U),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,h,U),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,S,U),k=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,b,U),z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,A,U),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,d,U),G=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,M,U);L.push(_),L.push(E),L.push(x),L.push(B),L.push(C),T.push(Y),T.push(I),T.push(D),T.push(N),j.push(k),j.push(z),R.push(F),R.push(G),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,L,{lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T,{lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,j,{lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,R,{lineTypeLimit:!0,surroundLineLimit:!0},!0);var W=.3*SuperMapAlgoPlot.PlottingUtil.distance(D,N),J=SuperMapAlgoPlot.PlottingUtil.linePnt(N,D,W),H=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.3*W,N,J);V.push(H.pntLeft),V.push(N),V.push(H.pntRight);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,V,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},!0);var K=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),q=SuperMapAlgoPlot.PlottingUtil.circlePoint(K.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,U+90);this.addScalePoint(q,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[1]=.5*this.getSubSymbolScaleValue()}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.addSubSymbols(r,a,i);for(var u=[],p=[],s=0;s<=n.startIndex;s++)u.push(e[s]);if(u.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),n.endIndex<=e.length){p.push(n.endPt);for(var c=n.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p,this.scaleValues[1])}var P=o*this.scaleValues[0]*.5,f=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,P,P,i+90);this.addScalePoint(f,0),this.finish()}}},{key:"addSubSymbols",value:function(t,e,o){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,e,o-180)}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length0&&this.computeSubSymbol(this.subSymbols[0],t,e,o-90)}}])&&pn(e.prototype,o),l&&pn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function gn(t){"@babel/helpers - typeof";return(gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yn(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],t,e,o-90)}}])&&yn(e.prototype,o),l&&yn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function dn(t){"@babel/helpers - typeof";return(dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mn(t,e){for(var o=0;o0&&(u+=SuperMapAlgoPlot.PlottingUtil.distance(a[p],a[p-1]));var s,c,P=n-u,f=o*this.scaleValues[1],g=[];if(P>=f){s=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[r.index],f),a.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a),c=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[r.index+1],f),g.push(c);for(var y=e.length,h=r.index+1;h=0;d--)if(S=new SuperMapAlgoPlot.Point(a[d].x,a[d].y),b=new SuperMapAlgoPlot.Point(i.x,i.y),SuperMapAlgoPlot.PlottingUtil.distance(S,b)>f){A=d;break}if(-1==A)return;a.splice(A+1,a.length-1-A),s=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[A],f),a.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a);for(var M=-1,v=r.index;vf){M=v;break}if(-1==M)return;c=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[M],f),g.push(c);for(var m=M+1;mo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}}}])&&Mn(e.prototype,o),l&&Mn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Un(t){"@babel/helpers - typeof";return(Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ln(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}}}])&&Ln(e.prototype,o),l&&Ln(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _n(t){"@babel/helpers - typeof";return(_n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function En(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[1]=.6*this.getSubSymbolScaleValue()}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);0=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e),this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var o=this.scaleValues[0],l=this.scaleValues[1],n=this.scaleValues[2],r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),a=i*n,u=new SuperMapAlgoPlot.Point(r.x+i*o,r.y+i*l);if(this.subSymbols.length>0){if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],u,a,0),this.addScalePoint(u);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,a,a,0);this.addScalePoint(p)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t)n=(e.x-i.x)/a,this.scaleValues[0]=n,r=(e.y-i.y)/a,this.scaleValues[1]=r;else if(1===t){n=this.scaleValues[0],r=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(i.x+a*n,i.y+a*r),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e)/a;this.scaleValues[2]=p}}}}])&&Wn(e.prototype,o),l&&Wn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qn(t){"@babel/helpers - typeof";return(Qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xn(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.2||n<=0)&&(n=.2),this.scaleValues[0]=n}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3],u=l*r,p=new SuperMapAlgoPlot.Point(o.x+l*i,o.y+l*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,u,0),this.addScalePoint(p);var s=u,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,s,s,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t)n=(e.x-i.x)/a,this.scaleValues[2]=n,r=(e.y-i.y)/a,this.scaleValues[3]=r;else if(1===t){n=this.scaleValues[2],r=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(i.x+a*n,i.y+a*r),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e)/a;this.scaleValues[0]=p}}}}])&&Xn(e.prototype,o),l&&Xn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function or(t){"@babel/helpers - typeof";return(or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lr(t,e){for(var o=0;oo.length)return;var l,n,r,i=[];if(2==o.length){l=o[0],n=o[1];var a=SuperMapAlgoPlot.PlottingUtil.distance(l,n),u=180*SuperMapAlgoPlot.PlottingUtil.radian(l,n)/Math.PI;r=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,a,a,u+60),i.push(l),i.push(n),i.push(r)}else i=i.concat(o);l=i[0],n=i[1],r=i[2];SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(i);i.push(i[0]);var p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i),s=e;if(0==t)this.scaleValues[0]=e;else if(1==t){var c=this.scaleValues[0],P=SuperMapAlgoPlot.PlottingUtil.distance(c,s)/p;this.scaleValues[2]=P;var f=180*SuperMapAlgoPlot.PlottingUtil.radian(c,s)/Math.PI;this.scaleValues[3]=f}}}},{key:"ComputeSubSymbolPt",value:function(t,e,o,l){var n,r,i=o[0],a=o[1],u=o[2],p=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(u,i,a)*t,s=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(a,i,u)*e,c=[];if(SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(i,a,l)?((n=[]).push(i),n.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(n,p,!1)):((n=[]).push(i),n.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(n,p,!0)),SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(i,u,l)?((n=[]).push(i),n.push(u),r=SuperMapAlgoPlot.PlottingUtil.paraLine(n,s,!1)):((n=[]).push(i),n.push(u),r=SuperMapAlgoPlot.PlottingUtil.paraLine(n,s,!0)),2>c.length||2>r.length)return l;var P=SuperMapAlgoPlot.PlottingUtil.intersectLines(c[0],c[1],r[0],r[1]);return P.isIntersectLines?P.intersectPoint:l}}])&&pr(e.prototype,o),l&&pr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function gr(t){"@babel/helpers - typeof";return(gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yr(t,e){for(var o=0;oo.length)return;var l,n,r,i,a,u,p,s=[];2==o.length?(l=o[0],n=o[1],a=SuperMapAlgoPlot.PlottingUtil.distance(l,n),i=180*SuperMapAlgoPlot.PlottingUtil.radian(l,n)/Math.PI,r=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,a,a,i+60),s.push(l),s.push(n),s.push(r)):s=s.concat(o),l=s[0],n=s[1],r=s[2],s.push(s[0]);var c=SuperMapAlgoPlot.PlottingUtil.polylineDistance(s),P=e;if(0===t)a=SuperMapAlgoPlot.PlottingUtil.distance(P,s[0]),this.scaleValues[0]=a/c;else if(1===t){u=SuperMapAlgoPlot.PlottingUtil.distance(P,s[0])/c,this.scaleValues[1]=u,i=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(l,n,r)/Math.PI,0<=(p=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(l,n,P)/Math.PI/i)&&1>=p&&(this.scaleValues[2]=p)}else if(2===t){u=this.scaleValues[1],p=this.scaleValues[2];var f,g=c*u,y=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(l,n,r)/Math.PI*p,h=180*SuperMapAlgoPlot.PlottingUtil.radian(l,n)/Math.PI,S=h-y,b=h+y,A=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,g,g,S),d=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,g,g,b);f=SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(s,A)?A:d;var M=2*SuperMapAlgoPlot.PlottingUtil.distance(P,f)/c;this.scaleValues[3]=M;var v=180*SuperMapAlgoPlot.PlottingUtil.radian(f,P)/Math.PI;this.scaleValues[4]=v}}}},{key:"ComputeSubSymbolPt",value:function(t,e,o,l){var n,r,i=o[0],a=o[1],u=o[2],p=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(u,i,a)*t,s=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(a,i,u)*e,c=[];if(SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(i,a,l)?((n=[]).push(i),n.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(n,p,!1)):((n=[]).push(i),n.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(n,p,!0)),SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(i,u,l)?((n=[]).push(i),n.push(u),r=SuperMapAlgoPlot.PlottingUtil.paraLine(n,s,!1)):((n=[]).push(i),n.push(u),r=SuperMapAlgoPlot.PlottingUtil.paraLine(n,s,!0)),2>c.length||2>r.length)return l;var P=SuperMapAlgoPlot.PlottingUtil.intersectLines(c[0],c[1],r[0],r[1]);return P.isIntersectLines?P.intersectPoint:l}},{key:"createArcPts",value:function(t,e){for(var o=[],l=[],n=0;nMath.abs(l[r]-l[i]))for(var u=0;u<2;u++){var p,s,c;0==u?(c=r,p=SuperMapAlgoPlot.PlottingUtil.radian(t[r],t[i])*SuperMapAlgoPlot.PlottingUtil.RTOD,s=Math.acos((a*a+l[r]*l[r]-l[i]*l[i])/(2*a*l[r]))*SuperMapAlgoPlot.PlottingUtil.RTOD):(c=i,p=SuperMapAlgoPlot.PlottingUtil.radian(t[i],t[r])*SuperMapAlgoPlot.PlottingUtil.RTOD,s=Math.acos((a*a+l[i]*l[i]-l[r]*l[r])/(2*a*l[i]))*SuperMapAlgoPlot.PlottingUtil.RTOD);var P=p-s,f=p+s,g=P<0&&f>0||P>360||f>360;P=this.adjustAngle(P),f=this.adjustAngle(f);for(var y=o[c].length-1;y>=0;y--)if(g){if(f>o[c][y].End||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(f,o[c][y].End)){o[c].splice(y,1);continue}if(f>o[c][y].Start&&(o[c][y].Start=f),Po[c][y].End)o[c].splice(y,1);else if(P>o[c][y].Start&&fo[c][y].End)continue;if(P>o[c][y].Start&&(o[c][y].End=P),f=0;S--){for(var b=this.adjustAngle(o[h][S].Start),A=this.adjustAngle(o[h][S].End);A360;)t-=360;for(;t<0;)t+=360;return t}},{key:"GetCirclePts",value:function(t,e,o,l){var n=180*SuperMapAlgoPlot.PlottingUtil.radian(t,e)/Math.PI,r=180*SuperMapAlgoPlot.PlottingUtil.radian(t,o)/Math.PI,i=n;r>n&&(i=r);for(var a=[],u=i;u<360+i;u+=4)90==u&&(u=91),a.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,l,l,u));return a.push[0],a}},{key:"CreatArc",value:function(t,e,o){for(var l=[],n=[],r=0;r1&&l.push(n),n=[]):n.push(i)}n.length>1&&l.push(n);for(var a=0;a1&&l.push(n),n=[]):n.push(i)}n.length>1&&l.push(n);for(var a=[],u=0;ua){var u=new SuperMapAlgoPlot.Point(l.x,l.y);l=new SuperMapAlgoPlot.Point(i.x,i.y),i=new SuperMapAlgoPlot.Point(u.x,u.y),n=a,e[o]=l,e[r]=i}}return e}}])&&yr(e.prototype,o),l&&yr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function dr(t){"@babel/helpers - typeof";return(dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mr(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=e[0],r=e[1],i=e[e.length-2],a=e[e.length-1],u=o*this.scaleValues[0]*.6,p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,r,n),s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,i,a),c=p.pntLeft,P=s.pntRight,f=[];f.push(n),f.push(c);for(var g=new SuperMapAlgoPlot.Point((n.x+c.x)/2,(n.y+c.y)/2),y=SuperMapAlgoPlot.PlottingUtil.polylineDistance(f)/2,h=[],S=180*SuperMapAlgoPlot.PlottingUtil.radian(r,n)/Math.PI,b=360+S;b>=270+S;b-=3)h.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(g,y,y,b));var A=[];A.push(a),A.push(P);var d=[];d.push(a),d.push(P);for(var M=new SuperMapAlgoPlot.Point((a.x+P.x)/2,(a.y+P.y)/2),v=SuperMapAlgoPlot.PlottingUtil.polylineDistance(d)/2,m=[],O=180*SuperMapAlgoPlot.PlottingUtil.radian(a,P)/Math.PI,w=180+O;w>=90+O;w-=3)m.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(M,v,v,w));var U=[];U=(U=(U=U.concat(h)).concat(e)).concat(m),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U),this.finish()}}}])&&Mr(e.prototype,o),l&&Mr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ur(t){"@babel/helpers - typeof";return(Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lr(t,e){for(var o=0;o=v.length)&&(A=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(v[0],r)).isOnPolyLine){var O=[];for(f=A.index+1;f=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var l=0;l<4;l++){var n=Math.floor(l*o.length/4),r=new SuperMapAlgoPlot.Point(o[n].x,o[n].y),i=new SuperMapAlgoPlot.Point(o[n+1].x,o[n+1].y),a=new SuperMapAlgoPlot.Point((r.x+i.x)/2,(r.y+i.y)/2),u=SuperMapAlgoPlot.PlottingUtil.radian(i,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,s=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,u),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,4*p,4*p,u+270),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,u+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c,P],{lineTypeLimit:!0,surroundLineLimit:!0})}this.finish()}}}])&&Er(e.prototype,o),l&&Er(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ir(t){"@babel/helpers - typeof";return(Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dr(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var l=0;l<4;l++){var n=l*(o.length-1)/4,r=new SuperMapAlgoPlot.Point(o[n].x,o[n].y),i=new SuperMapAlgoPlot.Point(o[n+1].x,o[n+1].y),a=new SuperMapAlgoPlot.Point((r.x+i.x)/2,(r.y+i.y)/2),u=SuperMapAlgoPlot.PlottingUtil.radian(a,i)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,s=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,u),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,4*p,4*p,u+270),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,u+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c,P],{surroundLineLimit:!0,lineTypeLimit:!0})}this.finish()}}}])&&Dr(e.prototype,o),l&&Dr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Gr(t){"@babel/helpers - typeof";return(Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wr(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var n=0;n<4;n++){var r=n*(l.length-1)/4,i=new SuperMapAlgoPlot.Point(l[r].x,l[r].y),a=new SuperMapAlgoPlot.Point(l[r+1].x,l[r+1].y),u=new SuperMapAlgoPlot.Point((i.x+a.x)/2,(i.y+a.y)/2),p=180*SuperMapAlgoPlot.PlottingUtil.radian(u,a)/Math.PI,s=e*this.scaleValues[0]/2,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,s,s,p),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,4*s,4*s,p+270),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,s,s,p+180);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,P,f],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0})}this.finish()}}}])&&Wr(e.prototype,o),l&&Wr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qr(t){"@babel/helpers - typeof";return(Qr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xr(t,e){for(var o=0;o=2&&this.controlPoints.length0){var o;if(null==this.subSymbols[0].symbolData)return;o=Math.max(this.subSymbols[0].symbolData.symbolSize.x,this.subSymbols[0].symbolData.symbolSize.y);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=l*this.scaleValues[4],r=l*this.scaleValues[5],i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,t),u=SuperMapAlgoPlot.PlottingUtil.radian(a.pts,i.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=100*SuperMapAlgoPlot.PlottingUtil.distance(i.pts,a.pts)/o,s=new SuperMapAlgoPlot.Point((a.pts.x+i.pts.x)/2,(i.pts.y+a.pts.y)/2);if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],s,p,u),i.pts.isScalePoint=!0,i.pts.tag=this.scalePoints.length,this.scalePoints.push(i.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var l=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),n=SuperMapAlgoPlot.PlottingUtil.clonePoints(o);n.splice(0,2),n.unshift(l);var r=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,n),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(3===t&&null==r.pt&&(r.pt=l.clone()),-1==r.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMapAlgoPlot.PlottingUtil.clonePoints(n);a.splice(0,r.index+1),a.unshift(r.pt);var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(a);i.5&&(this.scaleValues[4]=.5)}}}}}])&&Xr(e.prototype,o),l&&Xr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function oi(t){"@babel/helpers - typeof";return(oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function li(t,e){for(var o=0;o=0;--v)M.push(b[v]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.scalePoints=[];var m=b[0].clone();m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m);var O=b[1].clone();O.isScalePoint=!0,O.tag=1,this.scalePoints.push(O);var w=b[2].clone();w.isScalePoint=!0,w.tag=2,this.scalePoints.push(w),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l,n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),r=o[0].clone(),i=o[1].clone(),a=e.clone();if(0==t){var u=SuperMapAlgoPlot.PlottingUtil.distance(a,r)/n;this.scaleValues[0]=u}else if(1==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var p=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[1]=p;var s=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[3]=s}else if(2==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var c=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[2]=c;var P=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[4]=P}}}}])&&li(e.prototype,o),l&&li(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ui(t){"@babel/helpers - typeof";return(ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pi(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5));var n=this.getLinePts(e,this.scaleValues[0]),r=this.getLinePts(e,this.scaleValues[0]),i=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt),a=e[0],u=e[1],p=e[e.length-2],s=e[e.length-1],c=.3*i,P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(c,u,a),f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(c,p,s),g=P.pntLeft,y=f.pntLeft,h=[];h.push(s),h.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var S=[],b=[];S.push(g);for(var A=0;A<=r.startIndex;A++)S.push(e[A]);if(S.push(r.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S),r.endIndex<=e.length){b.push(r.endPt);for(var d=r.endIndex+1;d<=e.length-1;d++)b.push(e[d]);b.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b)}var M=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,v=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),m=new SuperMapAlgoPlot.Point(-.5*i,0),O=new SuperMapAlgoPlot.Point(.1*i,0),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,m,M),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,O,M),L=[];L.push(w),L.push(U);var T={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0,surroundLineLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,L,T);var j=new SuperMapAlgoPlot.Point(-.3*i,0),R=SuperMapAlgoPlot.PlottingUtil.circlePoint(j,-.3*i,-.3*i,135),V=SuperMapAlgoPlot.PlottingUtil.circlePoint(j,-.3*i,-.3*i,225),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,j,M),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,R,M),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,V,M);(L=[]).push(E),L.push(_),L.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,L,T);var B=new SuperMapAlgoPlot.Point(.1*i,0),C=new SuperMapAlgoPlot.Point(.5*i,-.2*i),Y=new SuperMapAlgoPlot.Point(.5*i,.2*i),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,B,M),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,C,M),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,Y,M);(L=[]).push(I),L.push(D),L.push(N),L.push(I),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,L,T);var k=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),z=SuperMapAlgoPlot.PlottingUtil.circlePoint(k.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,M);this.addScalePoint(z,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengththis.minEditPts){for(var T,j,R,V,_,E=1;E=0?(S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(H,t[K],q)).pntRight:(S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(H,t[K],q)).pntLeft;var Q=SuperMapAlgoPlot.PlottingUtil.linePnt(q,w,H),X=.3*H,Z=SuperMapAlgoPlot.PlottingUtil.linePnt(Q,q,X);(S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.3*X,Q,Z)).pntLeft,S.pntRight;(v=[]).push(Q),v.push(q),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,{surroundLineLimit:!0,lineTypeLimit:!0});var $=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(v,.3*H,this.arrowHeadType),tt=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL;this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL&&this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID&&this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE&&this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW||(tt=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL);this.addCell(tt,$,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addScalePoint(Q),this.addScalePoint(p);var et=SuperMapAlgoPlot.PlottingUtil.radian(a.pt,u.pt)*SuperMapAlgoPlot.PlottingUtil.RTOD+90,ot=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,.5*r,.5*r,et);this.addScalePoint(ot),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l,n,r,i,a,u,p,s,c,P,f=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),g=o.length,y=e;if(t>=0&&tP&&(n=M,i=p,r=P));if(-1==n||n>o.length-1)return;s=0;for(var v=0;vf)return;var w=s/f;this.scaleValues[g+1]=w;var U,L=this.scaleValues.length;l=f*this.scaleValues[L-5],U=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[n],o[n+1],y)?r/l:-Math.abs(r/l),this.scaleValues[g+2]=U}else if(t===g+2){n=-1,r=0,i=new SuperMapAlgoPlot.Point(0,0);for(var T=0;TP&&(n=T,i=p,r=P));if(-1===n||n>o.length-1)return;s=0;for(var j=0;jf)return;.1*fs&&(this.scaleValues[this.scaleValues.length-2]=s/f)}else if(t===g+3){var R=this.scaleValues[this.scaleValues.length-2]*f;if(-1===(u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,R)).index)return;var V=2*SuperMapAlgoPlot.PlottingUtil.distance(u.pt,e)/f;V>.15&&(V=.15),this.scaleValues[this.scaleValues.length-1]=V}}}}])&&yi(e.prototype,o),l&&yi(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function di(t){"@babel/helpers - typeof";return(di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mi(t,e){for(var o=0;o.3||r<=0)&&(r=.3),this.scaleValues[0]=r;var i=1.5*this.scaleValues[0]*o,a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[l.index],n),u=[];u.push(a.pntLeft),u.push(n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,null,!0),this.finish()}}}}])&&Mi(e.prototype,o),l&&Mi(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ui(t){"@babel/helpers - typeof";return(Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Li(t,e){for(var o=0;o=0;f--)r.push(new SuperMapAlgoPlot.Point(e[f].x,e[f].y));r.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,l,l,c),P=new SuperMapAlgoPlot.Point(i.x,i.y),(a=[]).push(t[0]),a.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}var g=new SuperMapAlgoPlot.Point(0,0);if(3<=t.length){for(e=[],o=new SuperMapAlgoPlot.Point(t[2].x,t[2].y),l=SuperMapAlgoPlot.PlottingUtil.distance(p,o),n=0,n=c-u;n0&&(y=[]));(r=[]).push(t[0]);for(var h=e.length-1;h>=0;h--)r.push(new SuperMapAlgoPlot.Point(e[h].x,e[h].y));r.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});for(var S=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),b=SuperMapAlgoPlot.PlottingUtil.distance(p,S)*this.scaleValues[0],A=[],d=90;d<=270;d+=3)A.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,b,b,c+d));r=[];for(var M=A.length-1;M>=0;M--)r.push(new SuperMapAlgoPlot.Point(A[M].x,A[M].y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),(r=[]).push(new SuperMapAlgoPlot.Point(A[0].x,A[0].y)),r.push(new SuperMapAlgoPlot.Point(e[e.length-1].x,e[e.length-1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),(r=[]).push(new SuperMapAlgoPlot.Point(e[0].x,e[0].y)),r.push(new SuperMapAlgoPlot.Point(A[A.length-1].x,A[A.length-1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,l,l,c),g=new SuperMapAlgoPlot.Point(i.x,i.y),(a=[]).push(P),a.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}var v=new SuperMapAlgoPlot.Point(0,0);if(4<=t.length){for(e=[],o=new SuperMapAlgoPlot.Point(t[3].x,t[3].y),l=SuperMapAlgoPlot.PlottingUtil.distance(p,o),n=0,n=c-u;n<=c+u;n+=3)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,l,l,n));SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,c+u)&&(n=c+u,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,l,l,n))),(r=[]).push(t[0]);for(var m=e.length-1;m>=0;m--)r.push(new SuperMapAlgoPlot.Point(e[m].x,e[m].y));r.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,l,l,c),v=new SuperMapAlgoPlot.Point(i.x,i.y),(a=[]).push(g),a.push(v),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}if(3>t.length)this.addScalePoint(t[0]);else{var O=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0],w=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,O,O,c+180);this.addScalePoint(w,0)}var U=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[t.length-1]),L=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,U,U,c+u);this.addScalePoint(L,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o,l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),0==t){if(3>l.length)return;var n=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),r=new SuperMapAlgoPlot.Point(e.x,e.y),i=SuperMapAlgoPlot.PlottingUtil.distance(n,r),a=new SuperMapAlgoPlot.Point(l[1].x,l[1].y);if((o=i/SuperMapAlgoPlot.PlottingUtil.distance(n,a))>=2.5)return;this.scaleValues[0]=o}else if(1==t){var u=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),p=new SuperMapAlgoPlot.Point(l[l.length-1].x,l[l.length-1].y),s=SuperMapAlgoPlot.PlottingUtil.radian(u,p),c=new SuperMapAlgoPlot.Point(e.x,e.y);if(o=SuperMapAlgoPlot.PlottingUtil.radian(u,c)-s,(o=Math.abs(o))>Math.PI/2&&o<3*Math.PI/2)return;o>3*Math.PI/2&&o<=2*Math.PI&&(o=2*Math.PI-o),this.scaleValues[1]=Math.abs(o)}}}}])&&Wi(e.prototype,o),l&&Wi(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qi(t){"@babel/helpers - typeof";return(Qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xi(t,e){for(var o=0;o270&&p<360&&(p=360-p),p>90)return;this.scaleValues[1]=p*Math.PI/180}}}}])&&Xi(e.prototype,o),l&&Xi(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function oa(t){"@babel/helpers - typeof";return(oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function la(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,o),this.finish()}}}])&&la(e.prototype,o),l&&la(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ua(t){"@babel/helpers - typeof";return(ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pa(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var n=o*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],l,n,0),this.scalePoints=[];var r=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,n,n,0);this.addScalePoint(r),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=[];l=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/n;this.scaleValues[0]=i}}}}])&&pa(e.prototype,o),l&&pa(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ga(t){"@babel/helpers - typeof";return(ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ya(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],p,r*i,e*SuperMapAlgoPlot.PlottingUtil.RTOD);var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,u,u,e*SuperMapAlgoPlot.PlottingUtil.RTOD);this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],s,r*i,e*SuperMapAlgoPlot.PlottingUtil.RTOD),this.scalePoints=[];var c=e*SuperMapAlgoPlot.PlottingUtil.RTOD,P=r*i,f=t[0].clone(),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,P,P,c);this.addScalePoint(g),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o))[0].clone(),n=o[1].clone(),r=e.clone(),i=SuperMapAlgoPlot.PlottingUtil.distance(l,n),a=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(r,l,n)/i;if(a<0||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0))return;this.scaleValues[0]=a,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l,n,r)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}])&&ya(e.prototype,o),l&&ya(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function da(t){"@babel/helpers - typeof";return(da="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ma(t,e){for(var o=0;o=2&&this.controlPoints.lengthP&&(i=p,u=c,a=P)}}if(-1==i||i>l.length-1)return;n=0;for(var f=0;fr)return;var g=n/r;this.scaleValues[0]=g}else if(1===t){var y=r*this.scaleValues[0],h=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,y);if(-1===h.index)return;var S=h.pt,b=l[h.index],A=l[h.index+1],d=SuperMapAlgoPlot.PlottingUtil.radian(b,A),M=SuperMapAlgoPlot.PlottingUtil.radian(S,e)-d;this.scaleValues[1]=M;var v=(n=SuperMapAlgoPlot.PlottingUtil.distance(S,e))/r;this.scaleValues[2]=v}}}}])&&La(e.prototype,o),l&&La(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _a(t){"@babel/helpers - typeof";return(_a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ea(t,e){for(var o=0;o.2||l<=0)&&(l=.2),this.scaleValues[2]=l,this.scaleValues[4]=l}var n=o*this.scaleValues[0],r=180*this.scaleValues[1]/Math.PI,i=o*this.scaleValues[2],a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,n);if(-1!==a.index){var u=a.pt,p=new SuperMapAlgoPlot.Point(e[a.index].x,e[a.index].y),s=new SuperMapAlgoPlot.Point(e[a.index+1].x,e[a.index+1].y),c=180*SuperMapAlgoPlot.PlottingUtil.radian(p,s)/Math.PI,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,i,i,c+r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P],{surroundLineLimit:!0,lineTypeLimit:!0});var f=180*SuperMapAlgoPlot.PlottingUtil.radian(u,P)/Math.PI,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.2*i,.2*i,f-157.5),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.2*i,.2*i,f+157.5);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,g,y],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});var h=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.5,g,y),S=[];S.push(u),S.push(h);var b=SuperMapAlgoPlot.PlottingUtil.polylineDistance(S),A=b*this.scaleValues[5],d=b*this.scaleValues[0],M=(u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(S,d).pt,f);0.5*A){O=U-1,w=SuperMapAlgoPlot.PlottingUtil.linePnt(m,e[U],.5*A);break}-1===O&&(O=e.length-1,w=e[e.length-1]);var L=null;if(null!==w){for(var T=180*SuperMapAlgoPlot.PlottingUtil.radian(m,w)/Math.PI,j=[],R=0;R=0;B--)if(SuperMapAlgoPlot.PlottingUtil.distance(_,e[B])>.5*A){E=B,x=SuperMapAlgoPlot.PlottingUtil.linePnt(_,e[B],.5*A);break}if(-1===E&&(E=0,x=e[0]),null!==x){for(var C=180*SuperMapAlgoPlot.PlottingUtil.radian(_,x)/Math.PI,Y=[],I=0;IP&&(i=p,u=c,a=P))}}if(-1===i||i>l.length-1)return;n=0;for(var f=0;fr)return;var g=n/r;this.scaleValues[0]=g}else if(1===t){var y=r*this.scaleValues[0],h=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,y);if(-1===h.index)return;var S=h.pt,b=l[h.index],A=l[h.index+1],d=SuperMapAlgoPlot.PlottingUtil.radian(b,A),M=SuperMapAlgoPlot.PlottingUtil.radian(S,e)-d;this.scaleValues[1]=M;var v=(n=SuperMapAlgoPlot.PlottingUtil.distance(S,e))/r;this.scaleValues[2]=v}else if(2===t){var m=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/r;m>.35&&(m=.35),this.scaleValues[4]=m}}}},{key:"getLeftSubSymbolPts",value:function(t){var e=.25*t,o=[],l=new SuperMapAlgoPlot.Point(0,0),n=new SuperMapAlgoPlot.Point(e,-2*e),r=new SuperMapAlgoPlot.Point(2*e,0),i=new SuperMapAlgoPlot.Point(e,2*e);return o.push(l),o.push(n),o.push(r),o.push(i),o.push(l),o}},{key:"getRightSubSymbolPts",value:function(t){return this.getLeftSubSymbolPts(t)}}])&&Ea(e.prototype,o),l&&Ea(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ia(t){"@babel/helpers - typeof";return(Ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Da(t,e){for(var o=0;o.5*h){A=M-1,d=SuperMapAlgoPlot.PlottingUtil.linePnt(b,e[M],.5*h);break}-1===A&&(A=e.length-1,d=e[e.length-1]);var v=null;if(null!==d){for(var m=180*SuperMapAlgoPlot.PlottingUtil.radian(b,d)/Math.PI,O=[],w=0;w=0;R--)if(SuperMapAlgoPlot.PlottingUtil.distance(L,e[R])>.5*h){T=R,j=SuperMapAlgoPlot.PlottingUtil.linePnt(L,e[R],.5*h);break}if(-1===T&&(T=0,j=e[0]),null!==j){for(var V=180*SuperMapAlgoPlot.PlottingUtil.radian(L,j)/Math.PI,_=[],E=0;Em&&(S=d,A=v,b=m)}}if(-1==S||S>y.length-1)return;r=0;for(var O=0;Ol)return;var w=r/l;this.scaleValues[0]=w}else if(1===t){i=l*this.scaleValues[0];var U=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,i);if(-1===U.index)return;a=U.pt,u=g[U.index],p=g[U.index+1],s=SuperMapAlgoPlot.PlottingUtil.radian(u,p);var L=(f=SuperMapAlgoPlot.PlottingUtil.radian(a,e))-s;this.scaleValues[1]=L;var T=(r=SuperMapAlgoPlot.PlottingUtil.distance(a,e))/l/1.5;this.scaleValues[2]=T}else if(2===t){if(i=l*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,r=l*this.scaleValues[2],-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,i)).index)return;P=a.pt,u=g[a.index],p=g[a.index+1],s=180*SuperMapAlgoPlot.PlottingUtil.radian(u,p)/Math.PI;var j=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.4*r,.4*r,s+c),R=SuperMapAlgoPlot.PlottingUtil.distance(e,j)/(.4*r);this.scaleValues[5]=R}else if(3===t){if(i=l*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,r=l*this.scaleValues[2],-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,i)).index)return;P=a.pt,u=g[a.index],p=g[a.index+1],f=(s=180*SuperMapAlgoPlot.PlottingUtil.radian(u,p)/Math.PI)+c;var V=new SuperMapAlgoPlot.Point(.6*r,0),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,V,f),E=.4*r*this.scaleValues[5],x=new SuperMapAlgoPlot.Point(0,E),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,x,f),C=2*SuperMapAlgoPlot.PlottingUtil.distance(B,e)/(.4*r);this.scaleValues[6]=C}}}}])&&Wa(e.prototype,o),l&&Wa(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qa(t){"@babel/helpers - typeof";return(Qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xa(t,e){for(var o=0;ou||.3.3||n<=0)&&(n=.3),this.scaleValues[1]=n,this.scaleValues[3]=n}var r=this.scaleValues[1],i=180*this.scaleValues[2]/Math.PI,a=o*this.scaleValues[0],u=o*this.scaleValues[3],p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,a);if(-1!==p.index){var s=p.pt,c=e[p.index],P=e[p.index+1],f=SuperMapAlgoPlot.PlottingUtil.radian(c,P)*SuperMapAlgoPlot.PlottingUtil.RTOD,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,u,u,f+i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p.pt,g],{surroundLineLimit:!0,lineTypeLimit:!0});var y,h=SuperMapAlgoPlot.PlottingUtil.radian(s,g)*SuperMapAlgoPlot.PlottingUtil.RTOD,S=o*r;0b&&(P=y,g=S,f=b)}}if(-1==P||P>s.length-1)return;for(var A=0,d=0;dl)return;var M=A/l;this.scaleValues[0]=M}else if(1===t){var v=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,l*this.scaleValues[0]);if(-1===v.index)return;r=v.pt,i=p[v.index],a=p[v.index+1],u=SuperMapAlgoPlot.PlottingUtil.radian(i,a)*SuperMapAlgoPlot.PlottingUtil.RTOD;var m=l*this.scaleValues[3],O=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,m,m,u+this.scaleValues[2]*SuperMapAlgoPlot.PlottingUtil.RTOD+180),w=SuperMapAlgoPlot.PlottingUtil.distance(O,e)/l*2;this.scaleValues[1]=w}else if(2===t){var U=l*this.scaleValues[0],L=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,U);if(-1===L.index)return;r=L.pt,i=p[L.index],a=p[L.index+1],u=SuperMapAlgoPlot.PlottingUtil.radian(i,a);var T=SuperMapAlgoPlot.PlottingUtil.radian(r,e)-u;this.scaleValues[2]=T}}}}])&&pu(e.prototype,o),l&&pu(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function gu(t){"@babel/helpers - typeof";return(gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yu(t,e){for(var o=0;oe.x),c=[];s?(c.push(o),c.push(u)):(c.push(o),c.push(p)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});var P=[];s?(P.push(l),P.push(p)):(P.push(l),P.push(u)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});var f,g,y,h,S=.37*r,b=SuperMapAlgoPlot.PlottingUtil.linePnt(n,e,S),A=.09*r,d=[];d.push(b),d.push(new SuperMapAlgoPlot.Point(b.x,b.y+A)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,d,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE}),s?(f=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(A,n,b)).pntLeft,g=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*A,n,b)).pntLeft,y=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(A,f,g)).pntRight,h=a.pntLeft):(f=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(A,n,b)).pntRight,g=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*A,n,b)).pntRight,y=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(A,f,g)).pntRight,h=a.pntLeft);var M=[];M.push(f),M.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE});var v=[];v.push(y),v.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE}),this.finish()}}}])&&Du(e.prototype,o),l&&Du(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Gu(t){"@babel/helpers - typeof";return(Gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wu(t,e){for(var o=0;o1&&(u=1);var p,s,c=e*u,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,c,c,n),f=[];f.push(t[0].clone()),f.push(P),p=SuperMapAlgoPlot.PlottingUtil.paraLine(f,a,!0),s=SuperMapAlgoPlot.PlottingUtil.paraLine(f,a,!1);var g,y=[];for(g=0;g0&&this.computeSubSymbol(this.subSymbols[0],b,S/2,n+180);for(var A=[],d=.1*c,M=[],v=0;v=O)){for(var w=d;wo.length)return;var l,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);0==t?(l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],e)/n,this.scaleValues[0]=l):1==t&&(l=2*SuperMapAlgoPlot.PlottingUtil.distance(o[1],e)/n,this.scaleValues[1]=l)}}}])&&Xu(e.prototype,o),l&&Xu(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function op(t){"@babel/helpers - typeof";return(op="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lp(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0==t){var n=.5*l,r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,o).pts,i=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/l;i>.5&&(i=.5),this.scaleValues[0]=i}}}}])&&lp(e.prototype,o),l&&lp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function up(t){"@babel/helpers - typeof";return(up="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pp(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],c,.9*s,y-90),this.scalePoints=[],this.addScalePoint(u[u.length-1]);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,y+90);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}else if(1==t){var r=this.scaleValues[0]*l,i=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],r,r,90),a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[1],r,r,90),u=new SuperMapAlgoPlot.Point((i.x+a.x)/2,(i.y+a.y)/2),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e)/l;p>=.8&&(p=.8),this.scaleValues[1]=p}}}}])&&Mp(e.prototype,o),l&&Mp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Up(t){"@babel/helpers - typeof";return(Up="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lp(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[0]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[1],o[0]),r=SuperMapAlgoPlot.PlottingUtil.distance(n,o[1]);90>SuperMapAlgoPlot.PlottingUtil.radian(o[1],n)*SuperMapAlgoPlot.PlottingUtil.RTOD&&(r=-r);var i=r/l;this.scaleValues[0]=i;var a=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/l;this.scaleValues[1]=a}}}}])&&Ep(e.prototype,o),l&&Ep(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ip(t){"@babel/helpers - typeof";return(Ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dp(t,e){for(var o=0;o2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0))return;if(2*(o.length-1)==t||2==o.length&&0==t){var i,a=e,u=[];for(i=0;ig&&(s=i,p=f,c=g)}}if(-1==s||s>u.length-1)return;var y=0;for(i=0;ir)return;var A=y/r;if(A>.8||A<.2)return;2==o.length?this.scaleValues[0]=A:this.scaleValues[2*t]=A}else if(2*o.length-1==t||2==o.length&&1==t){var d=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n;2==o.length?this.scaleValues[1]=d:this.scaleValues[2*t-1]=d}else{var M=-1;M=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var v=(e.x-o[M].x)/n,m=(e.y-o[M].y)/n;this.scaleValues[2*t]=v,this.scaleValues[2*t+1]=m}}}}])&&Dp(e.prototype,o),l&&Dp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Gp(t){"@babel/helpers - typeof";return(Gp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wp(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/o;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=.2*n}var r=o*this.scaleValues[0],i=o*this.scaleValues[2],a=o*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(l.x+i,l.y+a),p=[];p.push(u),p.push(new SuperMapAlgoPlot.Point(u.x+r,u.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,p,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});for(var s=18*r,c=new SuperMapAlgoPlot.Point(u.x+s,u.y),P=[],f=135;f<180;f+=3)P.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,f));P.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,180)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,r,r,0);this.addScalePoint(g),this.addScalePoint(u),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=[];if(l=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=n*this.scaleValues[2],a=n*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(r.x+i,r.y+a),p=SuperMapAlgoPlot.PlottingUtil.distance(e,u)/n;this.scaleValues[0]=p}else if(1==t){var s=(e.x-r.x)/n,c=(e.y-r.y)/n;this.scaleValues[2]=s,this.scaleValues[3]=c}}}}])&&Wp(e.prototype,o),l&&Wp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qp(t){"@babel/helpers - typeof";return(Qp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xp(t,e){for(var o=0;othis.minEditPts){for(var I,D,N,k,z,F,G,W,J,H=1;Ho.length-1)return;for(var p=0,s=0;sl)return;var P=p/l,f=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1])/l;P<.4*f&&(P=.4*f),P>1-.4*f&&(P=1-.4*f),this.scaleValues[0]=P}}}])&&Xp(e.prototype,o),l&&Xp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function os(t){"@babel/helpers - typeof";return(os="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ls(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==l)return;var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=e;if(0==t)n=(a.x-i.x)/l,this.scaleValues[0]=n,r=(a.y-i.y)/l,this.scaleValues[1]=r;else if(1==t){n=this.scaleValues[0],r=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(i.x+n*l,i.y+r*l),p=SuperMapAlgoPlot.PlottingUtil.distance(a,u)/l;this.scaleValues[2]=p}}}}])&&ls(e.prototype,o),l&&ls(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function us(t){"@babel/helpers - typeof";return(us="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ps(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==l)return;var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=e;if(0==t)n=(a.x-i.x)/l,this.scaleValues[0]=n,r=(a.y-i.y)/l,this.scaleValues[1]=r;else if(1==t){n=this.scaleValues[0],r=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(i.x+n*l,i.y+r*l),p=SuperMapAlgoPlot.PlottingUtil.distance(a,u)/l;this.scaleValues[2]=p}}}}])&&ps(e.prototype,o),l&&ps(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function gs(t){"@babel/helpers - typeof";return(gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ys(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==l)return;var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=e;if(0==t)n=(a.x-i.x)/l,this.scaleValues[0]=n,r=(a.y-i.y)/l,this.scaleValues[1]=r;else if(1==t){n=this.scaleValues[0],r=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(i.x+n*l,i.y+r*l),p=SuperMapAlgoPlot.PlottingUtil.distance(a,u)/l;this.scaleValues[2]=p}}}}])&&ys(e.prototype,o),l&&ys(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ds(t){"@babel/helpers - typeof";return(ds="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ms(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.2||n<=0)&&(n=.2),this.scaleValues[0]=n}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3],u=l*r,p=new SuperMapAlgoPlot.Point(o.x+l*i,o.y+l*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,u,0),this.addScalePoint(p);var s=u,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,s,s,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t)n=(e.x-i.x)/a,this.scaleValues[2]=n,r=(e.y-i.y)/a,this.scaleValues[3]=r;else if(1===t){n=this.scaleValues[2],r=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(i.x+a*n,i.y+a*r),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e)/a;this.scaleValues[0]=p}}}}])&&Ms(e.prototype,o),l&&Ms(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Us(t){"@babel/helpers - typeof";return(Us="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ls(t,e){for(var o=0;o=0;--v)M.push(b[v]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M);var m=[],O=.06*l,w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O,o,e),U=w.pntRight,L=w.pntLeft;m.push(U),m.push(L),O=.15*l;var T=new SuperMapAlgoPlot.Point(O,0),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,T,h);m.push(j),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,m,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,fillLimit:!0,fill:!0,fillColorLimit:!0,fillColor:"#0000FF",fillOpacity:1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(b[0]),this.addScalePoint(b[1]),this.addScalePoint(b[2]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l,n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),r=o[0].clone(),i=o[1].clone(),a=e.clone();if(0==t){var u=SuperMapAlgoPlot.PlottingUtil.distance(a,r)/n;this.scaleValues[0]=u}else if(1==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var p=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[1]=p;var s=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[3]=s}else if(2==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var c=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[2]=c;var P=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[4]=P}}}}])&&Ls(e.prototype,o),l&&Ls(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _s(t){"@babel/helpers - typeof";return(_s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Es(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=e[0],r=e[1],i=e[e.length-1],a=e[e.length-2],u=SuperMapAlgoPlot.PlottingUtil.radian(n,r)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=SuperMapAlgoPlot.PlottingUtil.radian(a,i)*SuperMapAlgoPlot.PlottingUtil.RTOD,s=this.scaleValues[0],c=o*s,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,c,c,u+90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,c,c,u+270),g=[];g.push(P),g.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(f);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,c,c,p+90),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,c,c,p+270);(g=[]).push(y),g.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0,surroundLineLimit:!0});var S,b,A=t.length;if(this.scaleValues.length<=A){for(this.scaleValues=[],this.scaleValues.push(s),b=1/A,S=0;S=this.scalePoints.length)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0==t){var i=(n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0]))/r;this.scaleValues[0]=i}else{var a,u=e,p=[];for(a=0;ay&&(s=a,P=g,c=y)}}if(-1==s||s>p.length-1)return;for(n=0,a=0;ar)return;var h=n/r;this.scaleValues[t]=h}}}}])&&Es(e.prototype,o),l&&Es(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Is(t){"@babel/helpers - typeof";return(Is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ds(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],o,l,0),this.scalePoints=[];var n=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,l,l,90);this.addScalePoint(n),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var r=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/l;this.scaleValues[0]=r}}}}])&&Ds(e.prototype,o),l&&Ds(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Gs(t){"@babel/helpers - typeof";return(Gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ws(t,e){for(var o=0;othis.scalePoints.length)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0]);this.scaleValues[0]=2*n/l}}}}])&&Ws(e.prototype,o),l&&Ws(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qs(t){"@babel/helpers - typeof";return(Qs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xs(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.2||n<=0)&&(n=.2),this.scaleValues[0]=n}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3],u=l*r,p=new SuperMapAlgoPlot.Point(o.x+l*i,o.y+l*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,u,0),this.addScalePoint(p);var s=u,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,s,s,90);this.addScalePoint(c),this.finish()}}}])&&Xs(e.prototype,o),l&&Xs(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function oc(t){"@babel/helpers - typeof";return(oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lc(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/o;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=.4*n}var r=o*this.scaleValues[0],i=o*this.scaleValues[2],a=o*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(l.x+i,l.y+a),p=.6*r,s=new SuperMapAlgoPlot.Point(u.x+r,u.y),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,0),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,180),f=[];f.push(c),f.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,{lineTypeLimit:!0,surroundLineLimit:!0});var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,90),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,270);(f=[]).push(g),f.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,{lineTypeLimit:!0,surroundLineLimit:!0});var h=new SuperMapAlgoPlot.Point(u.x-r,u.y),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,.5*r,.5*r,270),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,r,r,240),A=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,r,r,90),d=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,r,r,300);(f=[]).push(S),f.push(b),f.push(A),f.push(d),f.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var M=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,r,r,0);this.addScalePoint(M),this.addScalePoint(u),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=[];if(l=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=n*this.scaleValues[2],a=n*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(r.x+i,r.y+a),p=SuperMapAlgoPlot.PlottingUtil.distance(e,u)/n;this.scaleValues[0]=p}else if(1==t){var s=(e.x-r.x)/n,c=(e.y-r.y)/n;this.scaleValues[2]=s,this.scaleValues[3]=c}}}}])&&lc(e.prototype,o),l&&lc(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function uc(t){"@babel/helpers - typeof";return(uc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pc(t,e){for(var o=0;o1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,l,n,r,i;this.controlPoints[2]&&(this.controlPoints[2].isFixedPos=!0),this.controlPoints[0].xo?Math.abs((i-o)/(r-e))>u?2:1:iu?4:1:r>l?i>o?Math.abs((i-o)/(r-l))>u?2:3:iu?4:3:i>o?2:il?Math.abs((a-l)/(i-o))>p?2:1:ap?4:1:i>n?a>l?Math.abs((a-l)/(i-n))>p?2:3:ap?4:3:a>l?2:al&&(c=l),c<(l+r)/2&&(c=(l+r)/2),s=1-2*(l-c)/(l-r);break;case 2:case 4:var P=u.x+(e.x-u.x);P>n&&(P=n),P<(o+n)/2&&(P=(o+n)/2),s=1-2*(n-P)/(n-o)}s<0&&(s=0),s>1&&(s=1),this.scaleValues[0]=s}this.calculateParts()}}])&&Ec(e.prototype,o),l&&Ec(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Dc(t){"@babel/helpers - typeof";return(Dc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nc(t,e){for(var o=0;o=2&&t.length0&&(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.shapePts,{strokeWidth:0,weight:0,lineWidthLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.LeftArowHead,{lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.LeftArowRightBody),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.RightArowHead,{lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d)),this.scalePoints=[];for(var O=0;Othis.SV1_MaxValue&&(l=this.SV1_MaxValue)}else l=SuperMapAlgoPlot.PlottingUtil.distance(a.projectPoint,r)=2&&t.length2*l-1){for(var a=0;ay[v].length)){for(var m=P[v][P[v].length-1],O=f[v][0],w=new SuperMapAlgoPlot.Point(.5*(m.x+O.x),.5*(m.y+O.y)),U=y[v][y[v].length-1],L=y[v][y[v].length-2],T=this.ComputeZValue(w,U,L),j={x:w.x,y:w.y,z:T},R=[],V=[],_=0;_=0;B--)if(v==l-1)x.push(y[v][B]);else{var C={x:y[v][B].x,y:y[v][B].y,z:.5*(y[v][B].z+y[v+1][B].z)};x.push(C)}this.ComputeBeizerZValueByDis(x,f[v],R),d.push(R),R=[];for(var Y=g[v],I=0;I0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,N,{surroundLineFlag:!1}),this.scalePoints=this.scalePoints.concat(this.m_scalePoints),!0}p.shapePts.length>0&&(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,p.shapePts,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p.shapePts,{surroundLineFlag:!1})),this.scalePoints=[];for(var z=0;zthis.MAX_SCALEVALUE?r=this.MAX_SCALEVALUE:r3)for(var i=l-1,a=0,u=i;a3)for(var r=l-1,i=0,a=r;i0)if(1==t)o.push(0);else{var l=SuperMapAlgoPlot.PlottingUtil.distance(e[0],e[this.MIN_PTCOUNT_PERARROW]);o.push(l);for(var n=1,r=this.MIN_PTCOUNT_PERARROW;nd&&(A=.5*d);var M=A*P;y.push(y[s].clone());var v,m=0;v=h-A;var O=[],w=0;for(w=2;w<=s;w++)m+=SuperMapAlgoPlot.PlottingUtil.distance(y[w-1],y[w-2]),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v,0,1e-14)?O[w]=0:SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v-m,0,1e-14)?O[w]=M:O[w]=M+(S-M)*Math.pow((v-m)/v,this.SV_ATScaleParameter);O[s+1]=M;var U=new SuperMapAlgoPlot.Point(0,0),L=new SuperMapAlgoPlot.Point(0,0),T=new SuperMapAlgoPlot.Point(0,0);for(w=2;w<=s;w++){SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,y[w-2],y[w-1],y[w],L,T),s==w&&SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,y[s],y[s-1],T,U);var j=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O[w],L,y[w-1]);r[w]=j.pntLeft,n[w]=j.pntRight}var R,V,_=U.clone();if(SuperMapAlgoPlot.PlottingUtil.distance(y[s],_)>0){var E=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(A,y[s],U);y[s]=E.clone()}for(b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,y[s+1],y[s]),n[s+1]=b.pntLeft,r[s+1]=b.pntRight,w=2;w<=s;w++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,n[w-1],n[w],n[w+1],L,T),i[w]=L.clone(),a[w]=T.clone(),SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,r[w-1],r[w],r[w+1],L,T),u[w]=L.clone(),p[w]=T.clone();SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,n[1],n[2],i[2],U),a[1]=U.clone(),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,r[1],r[2],u[2],U),p[1]=U.clone();V=SuperMapAlgoPlot.PlottingUtil.distance(n[s+1],n[s])*(1/3),(R=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(V,y[s],y[s+1])).x+=n[s+1].x-y[s].x,R.y+=n[s+1].y-y[s].y,V=(S-M)*Math.pow(V/v,this.SV_ATScaleParameter+.3),b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(V,n[s+1],R),i[s+1]=b.pntLeft.clone(),V=SuperMapAlgoPlot.PlottingUtil.distance(r[s+1],r[s])*(1/3),(R=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(V,y[s],y[s+1])).x+=r[s+1].x-y[s].x,R.y+=r[s+1].y-y[s].y,V=(S-M)*Math.pow(V/v,this.SV_ATScaleParameter+.3),b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(V,r[s+1],R),u[s+1]=b.pntRight.clone();var x=[],B=A*g,C=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(B,y[s],y[s+1]);this.m_scalePoints.push(C.clone()),B=A*f,b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(B,y[s+1],C),x.push(b.pntRight),x.push(y[s+1]),x.push(b.pntLeft);var Y=[];for(Y.push(n[s+1]),w=s;w>=1;w--)Y.push(i[w+1]),Y.push(a[w]),Y.push(n[w]);var I=[];for(w=1;w<=s;w++)I.push(r[w]),I.push(p[w]),I.push(u[w+1]);I.push(r[s+1]),l.push.apply(l,I),l.push.apply(l,x),l.push.apply(l,Y),o=A/h;var D=[];for(w=Y.length-1;w>=0;w--)D.push(Y[w]);return{dATLenDivABLen:o,arrowBodyPts:l}}},{key:"generateAYPts",value:function(t,e,o,l,n){var r=new SuperMapAlgoPlot.Point(.5*(t[2].x+o[2].x),.5*(t[2].y+o[2].y)),i=new SuperMapAlgoPlot.Point(.5*(t[1].x+o[1].x),.5*(t[1].y+o[1].y)),a=new SuperMapAlgoPlot.Point(.5*(t[0].x+o[0].x),.5*(t[0].y+o[0].y)),u=SuperMapAlgoPlot.PlottingUtil.distance(r,i),p=SuperMapAlgoPlot.PlottingUtil.distance(a,i),s=n*(u+p),c=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0),f=new SuperMapAlgoPlot.Point(0,0);if(s>u){s=u+p-s,c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(s,a,i);var g=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),y=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[0]);g=g*s/p,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(g,t[0],t[1]),y=y*s/p,f=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(y,o[0],o[1])}else{c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(s,r,i);var h=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[2]),S=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[2]);h=h*s/u,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(h,t[2],t[1]),S=S*s/u,f=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(S,o[2],o[1])}this.m_scalePoints.push(c.clone());var b=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(c,P),A=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(c,f),d=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(b,c,P),M=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(A,c,f),v=e[11].clone(),m=e[10].clone(),O=l[5].clone(),w=l[6].clone(),U=SuperMapAlgoPlot.PlottingUtil.intersectLines(m,v,c,P),L=SuperMapAlgoPlot.PlottingUtil.distance(U.intersectPoint,m),T=SuperMapAlgoPlot.PlottingUtil.distance(m,c);L=L>T?this.SV_AJCtrl*T:this.SV_AJCtrl*L;var j=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(L,m,v);v=j.clone(),e[11]=j.clone(),U=SuperMapAlgoPlot.PlottingUtil.intersectLines(w,O,c,f),L=(L=SuperMapAlgoPlot.PlottingUtil.distance(U.intersectPoint,w))>(T=SuperMapAlgoPlot.PlottingUtil.distance(w,c))?this.SV_AJCtrl*T:this.SV_AJCtrl*L,O=(j=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(L,w,O)).clone(),l[5]=j.clone();var R=[];R.push(m),R.push(v),R.push(d),R.push(c);var V=[];return V.push(c),V.push(M),V.push(O),V.push(w),{arrowLeftYaoPts:R,arrowRightYaoPts:V}}}])&&Jc(e.prototype,o),l&&Jc(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Xc(t){"@babel/helpers - typeof";return(Xc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zc(t,e){for(var o=0;o.4&&(this.scaleValues[0]=.4);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0],o=[];o.push(t[0]),o.push(t[1]);var l=SuperMapAlgoPlot.PlottingUtil.paraLine(o,.5*e,!0),n=SuperMapAlgoPlot.PlottingUtil.paraLine(o,.5*e,!1),r=!1;if(t.length>=3){var i=t[2];if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(i,t[0],t[1]))r=!0;else{r=!1;var a=SuperMap.Plot.PlottingUtil.isRight(i,t[0],t[1]),u=.8*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(a){var p=SuperMapAlgoPlot.PlottingUtil.linePnt(n[0],n[1],u),s=SuperMapAlgoPlot.PlottingUtil.dirAngle(p,t[2])*SuperMapAlgoPlot.PlottingUtil.RTOD-SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;if(s<0&&(s+=360),s>180&&(s-=180),s<10||s>170)r=!0;else{var c=[];c.push(p),c.push(new SuperMapAlgoPlot.Point(t[2].x,t[2].y));var P=SuperMapAlgoPlot.PlottingUtil.paraLine(c,.5*e,!0),f=SuperMapAlgoPlot.PlottingUtil.paraLine(c,.5*e,!1),g=SuperMapAlgoPlot.PlottingUtil.intersectLines(n[0],n[1],P[0],P[1]);P[0]=g.intersectPoint,g=SuperMapAlgoPlot.PlottingUtil.intersectLines(n[0],n[1],f[0],f[1]),f[0]=g.intersectPoint;for(var y=[],h=[],S=0;S=0;A--)h.push(f[A]);h.push(n[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h)}}else{var d=SuperMapAlgoPlot.PlottingUtil.linePnt(l[0],l[1],u),M=SuperMapAlgoPlot.PlottingUtil.dirAngle(d,t[2])*SuperMapAlgoPlot.PlottingUtil.RTOD-SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;if(M<0&&(M+=360),M>180&&(M-=180),M<10||M>170)r=!0;else{var v=[];v.push(d),v.push(new SuperMapAlgoPlot.Point(t[2].x,t[2].y));var m=SuperMapAlgoPlot.PlottingUtil.paraLine(v,.5*e,!0),O=SuperMapAlgoPlot.PlottingUtil.paraLine(v,.5*e,!1),w=SuperMapAlgoPlot.PlottingUtil.intersectLines(l[0],l[1],m[0],m[1]);m[0]=w.intersectPoint,w=SuperMapAlgoPlot.PlottingUtil.intersectLines(l[0],l[1],O[0],O[1]),O[0]=w.intersectPoint;var U=[],L=[];U.push(l[0]);for(var T=0;T=0;j--)L.push(O[j]);L.push(l[l.length-1]);for(var R=n.length-1;R>=0;R--)L.push(n[R]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,L)}}}}else r=!0;if(r){for(var V=n.length-1;V>=0;V--)l.push(n[V]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l)}this.addScalePoint(l[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>o.length)){0===this.scaleValues.length&&this.scaleValues.push(.2);var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0===t){var n=2*SuperMapAlgoPlot.PlottingUtil.pointToLineDis(e,o[0],o[1])/l;n>.4&&(n=.4),this.scaleValues[0]=n}}}}])&&sP(e.prototype,o),l&&sP(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function yP(t){"@babel/helpers - typeof";return(yP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hP(t,e){for(var o=0;o0?new SuperMapAlgoPlot.Point(g.pntLeft.x,g.pntLeft.y):new SuperMapAlgoPlot.Point(g.pntRight.x,g.pntRight.y);var y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,f,P.pt),h=[];if(h.push(y.pntRight),h.push(f),h.push(y.pntLeft),0===c){var S=new SuperMapAlgoPlot.Point(f.x,f.y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[0]=l?-1:1}}}])&&hP(e.prototype,o),l&&hP(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function MP(t){"@babel/helpers - typeof";return(MP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vP(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL,e);for(var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),l=e[0].x,n=e[0].x,r=e[0].y,i=e[0].y,a=[],u=0;ue[u].x&&(l=e[u].x),ne[u].y&&(r=e[u].y),i0){var b=.015*o;this.computeSubSymbol(this.subSymbols[0],S,b,0),!0===this.subSymbols[0].fillLimit&&(this.subSymbols[0].fillColor="#332323")}g++}else if(g=0,this.subSymbols.length>0){var A=.015*o;this.computeSubSymbol(this.subSymbols[1],S,A,0)}}this.finish()}}}}])&&vP(e.prototype,o),l&&vP(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function LP(t){"@babel/helpers - typeof";return(LP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function TP(t,e){for(var o=0;o2){for(var r=-1,i=e.length-2;i>=0;i--)if(l2){for(var r=-1,i=e.length-2;i>=0;i--)if(l0&&this.computeSubSymbol(this.subSymbols[0],a,u,0),this.addText("?",i,.3*n,0,"#0000ff"),this.addScalePoint(a,0);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length0&&this.computeSubSymbol(this.subSymbols[0],a,u,0),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t),this.addScalePoint(a,0);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=2&&this.controlPoints.length=u.length)this.finish();else{var c=u[0].clone(),P=u[0].clone();for(p=0;pu[p].x&&(c=u[p].clone()),P.x=c.x&&((f=[]).push(c),f.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,this._style));var y=new SuperMapAlgoPlot.Point(i.x+r/2,P.y);y.x<=P.x&&y.x>=c.x&&((f=[]).push(P),f.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,this._style));var h=SuperMapAlgoPlot.PlottingUtil.radian(g,y)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.addText(this.subText,i,r,h),this.addScalePoint(i,0);var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,r/2,r/2,90);this.addScalePoint(S,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=0,i=0,a=e;if(0===t){if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(o,a))return;r=(a.x-n.x)/l,this.scaleValues[0]=r,i=(a.y-n.y)/l,this.scaleValues[1]=i}if(1===t){r=this.scaleValues[0],i=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(n.x+r*l,n.y+i*l),p=2*SuperMapAlgoPlot.PlottingUtil.distance(a,u);this.scaleValues[2]=p/l}}}}])&&Sf(e.prototype,o),l&&Sf(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function vf(t){"@babel/helpers - typeof";return(vf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mf(t,e){for(var o=0;o=2&&t.lengtho.x&&a.xo.y&&a.yl.x||a.yl.y)&&(e[0]=r,e[3]=o),4==e.length){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);o=e[0],l=e[2];var u=[];u.push(o),u.push(l),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u)}this.finish()}}},{key:"GetPointsByTrapezoid",value:function(t,e,o,l,n){var r=e.x,i=e.y,a=o.x,u=o.y,p=l.x,s=l.y,c=0,P=0,f=0,g=0;if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(Math.abs(i-u),0))c=r+a-p,P=s;else if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(Math.abs(r-a),0))c=p,P=i+u-s;else{var y=1*(i-u)/(r-a),h=s-y*p;P=y*(c=((u+i)/2+(r+a)/(2*y)-h)/(y+1/y))+h,c=2*c-p,P=2*P-s}var S=Math.sqrt(1*(r-a)*(r-a)+1*(i-u)*(i-u)),b=Math.sqrt(1*(r-c)*(r-c)+1*(i-P)*(i-P));S>0?(f=r+(a-r)*b/S,g=i+(u-i)*b/S):(f=r,g=i);var A=f+(c-f)*t,d=g+(P-g)*t;n.x=A,n.y=d}}])&&mf(e.prototype,o),l&&mf(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Tf(t){"@babel/helpers - typeof";return(Tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jf(t,e){for(var o=0;o0){var z=this.computeSubSymbol(this.subSymbols[0],N,.62*k,_);if(null!=z)for(var F=0;F=r.length)){var u=r[0].clone(),p=r[0].clone();for(i=0;ir[i].x&&(u=r[i].clone()),p.x=r.length)){var u=r[0].clone(),p=r[0].clone();for(i=0;ir[i].x&&(u=r[i].clone()),p.x=r.length)){var u=r[0].clone(),p=r[0].clone();for(i=0;ir[i].x&&(u=r[i].clone()),p.x=2&&this.controlPoints.length=u.length)this.finish();else{var c=u[0].clone(),P=u[0].clone();for(p=0;pu[p].x&&(c=u[p].clone()),P.xo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=e,i=0,a=0;if(0===t){if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(o,r))return;i=(r.x-n.x)/l,this.scaleValues[0]=i,a=(r.y-n.y)/l,this.scaleValues[1]=a}if(1===t){i=this.scaleValues[0],a=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(n.x+i*l,n.y+a*l),p=2*SuperMapAlgoPlot.PlottingUtil.distance(r,u);this.scaleValues[2]=p/l}}}}])&&rg(e.prototype,o),l&&rg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function sg(t){"@babel/helpers - typeof";return(sg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cg(t,e){for(var o=0;o=2&&this.controlPoints.length.2&&(this.subSymbolScaleValue=.2),this.scaleValues[2]=this.subSymbolScaleValue/3);var l=this.scaleValues[0],n=this.scaleValues[1],r=e*this.scaleValues[2],i=new SuperMapAlgoPlot.Point(o.x+e*l,o.y+e*n),a=new SuperMapAlgoPlot.Point(i.x-4*r,i.y),u=new SuperMapAlgoPlot.Point(i.x-4*r,i.y-r/2),p=[];p.push(a),p.push(u);var s={lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,s);var c=new SuperMapAlgoPlot.Point(i.x-4*r,i.y),P=new SuperMapAlgoPlot.Point(i.x-r,i.y),f=[];f.push(c),f.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,s),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],i,2*r,0);var g=new SuperMapAlgoPlot.Point(i.x+4*r,i.y),y=new SuperMapAlgoPlot.Point(i.x+r,i.y),h=[];h.push(g),h.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,s);var S=new SuperMapAlgoPlot.Point(i.x+4*r,i.y+r/2),b=new SuperMapAlgoPlot.Point(i.x+4*r,i.y),A=[];A.push(S),A.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A,s),this.addScalePoint(i,0);var d=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,2*r,2*r,90);this.addScalePoint(d,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0===l)return;var r=0,i=0;if(0===t&&(r=(e.x-n.x)/l,this.scaleValues[0]=r,i=(e.y-n.y)/l,this.scaleValues[1]=i),1===t){r=this.scaleValues[0],i=this.scaleValues[1];var a=new SuperMapAlgoPlot.Point(n.x+l*r,n.y+l*i),u=SuperMapAlgoPlot.PlottingUtil.distance(a,e);this.scaleValues[2]=u/2/l}}}}])&&cg(e.prototype,o),l&&cg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function hg(t){"@babel/helpers - typeof";return(hg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sg(t,e){for(var o=0;o=p){var s=SuperMapAlgoPlot.PlottingUtil.linePnt(l.pts,t[l.index],p);n.push(s),this.ComputeDashLine(a,u,n);var c=SuperMapAlgoPlot.PlottingUtil.linePnt(l.pts,t[l.index],p);i.push(c);for(var P=l.index+1;P=0;g--){var y=new SuperMapAlgoPlot.Point(n[g].x,n[g].y),h=new SuperMapAlgoPlot.Point(l.pts.x,l.pts.y),S=SuperMapAlgoPlot.PlottingUtil.distance(y,h);if(S>p){f=g;break}}if(-1==f)return;n.splice(f+1,n.length-1-f),s=SuperMapAlgoPlot.PlottingUtil.linePnt(l.pts,t[f],p),n.push(s),this.ComputeDashLine(a,u,n);for(var b=-1,A=n.length-1;Ap){b=A;break}if(-1==b)return;c=SuperMapAlgoPlot.PlottingUtil.linePnt(l.pts,t[b],p),i.push(c);for(var d=b+1;d1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n)}}])&&Sg(e.prototype,o),l&&Sg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function vg(t){"@babel/helpers - typeof";return(vg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mg(t,e){for(var o=0;o.1||l<=0)&&(l=.1),this.scaleValues[0]=l,this.scaleValues[1]=this.getSubSymbolScaleValue(),this.scaleValues[2]=.5*l}var n=this.getLinePts(o,this.scaleValues[0],.5),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.dirAngle(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.computeSubSymbolC(r,a,i);for(var u=[],p=0;p<=n.startIndex;p++)u.push(o[p]);u.push(new SuperMapAlgoPlot.Point(n.startPt.x,n.startPt.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var s=[];if(n.endIndex<=o.length){s.push(new SuperMapAlgoPlot.Point(n.endPt.x,n.endPt.y));for(var c=n.endIndex+1;c<=o.length-1;c++)s.push(o[c]);this.addArrow(s,this.scaleValues[2])}this.scalePoints=[];var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,.5*a,.5*a,i+90);this.addScalePoint(P,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=u&&(a=u),this.scaleValues[0]=a}}}}},{key:"computeSubSymbolC",value:function(t,e,o){for(var l=[],n=0;n<360;n+=12)l.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.5*e,.5*e,n));l.push(l[0]);var r={lineColorLimit:!0,fillLimit:!1,fillStyle:0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,r);for(var i=[],a=0;a<360;a+=12)i.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.25*e,.25*e,a));i.push(i[0]),r={lineColorLimit:!0,fillLimit:!0,fillColorLimit:!0,fillStyle:1,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i,r);var u=[];u.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.25*e,.25*e,o+90)),u.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.5*e,.5*e,o+90)),r={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,r);var p=[];p.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.25*e,.25*e,o+270)),p.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.5*e,.5*e,o+270)),r={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,r)}}])&&mg(e.prototype,o),l&&mg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Tg(t){"@babel/helpers - typeof";return(Tg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jg(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=2*n}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3],u=l*r,p=new SuperMapAlgoPlot.Point(o.x+l*i,o.y+l*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,u,0);for(var s=0;s=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=0,a=0;if(0===t)i=(e.x-n.x)/r,this.scaleValues[2]=i,a=(e.y-n.y)/r,this.scaleValues[3]=a;else if(1===t){i=this.scaleValues[2],a=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(n.x+r*i,n.y+r*a),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e);this.scaleValues[0]=p/r}}}}])&&jg(e.prototype,o),l&&jg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function xg(t){"@babel/helpers - typeof";return(xg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bg(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=2*n}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3];o.x=o.x+i*l,o.y=o.y+a*l;var u=new SuperMapAlgoPlot.Point(.25*l*r,.25*l*r),p=new SuperMapAlgoPlot.Point(0,.5*l*r),s=new SuperMapAlgoPlot.Point(-.25*l*r,.25*l*r),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,u,0),P=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,p,0),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,s,0);this.addCell(SuperMapAlgoPlot.SymbolType.ARCSYMBOL,[c,P,f],{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0});var g=new SuperMapAlgoPlot.Point(0,-.3*l*r),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,g,0);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c,y,f],{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0}),this.scalePoints=[];var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,r*l*.5,r*l*.5,180);this.addScalePoint(h,0),this.addScalePoint(o,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){n.x=n.x+this.scaleValues[2]*r,n.y=n.y+this.scaleValues[3]*r;var i=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/r;this.scaleValues[0]=i}else if(1===t){var a=(e.x-n.x)/r;this.scaleValues[2]=a;var u=(e.y-n.y)/r;this.scaleValues[3]=u}}}}])&&Bg(e.prototype,o),l&&Bg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ng(t){"@babel/helpers - typeof";return(Ng="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kg(t,e){for(var o=0;o=2&&this.controlPoints.length.2&&(this.subSymbolScaleValue=.2),this.scaleValues[0]=this.subSymbolScaleValue);var l=this.scaleValues[0],n=this.scaleValues[2],r=this.scaleValues[3],i=e*l,a=new SuperMapAlgoPlot.Point(o.x+e*n,o.y+e*r);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,i,0),this.addScalePoint(a,0);var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,i,i,90);this.addScalePoint(u,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0===l)return;var r=0,i=0;if(0===t&&(r=(e.x-n.x)/l,this.scaleValues[2]=r,i=(e.y-n.y)/l,this.scaleValues[3]=i),1===t){r=this.scaleValues[2],i=this.scaleValues[3];var a=new SuperMapAlgoPlot.Point(n.x+l*r,n.y+l*i),u=SuperMapAlgoPlot.PlottingUtil.distance(a,e);this.scaleValues[0]=u/2/l}}}}])&&kg(e.prototype,o),l&&kg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Jg(t){"@babel/helpers - typeof";return(Jg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hg(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);this.isEdit||(this.subSymbolScaleValue=this.getDefaultSubSymbolSize()/o,this.subSymbolScaleValue>.2&&(this.subSymbolScaleValue=.2),this.scaleValues[0]=this.subSymbolScaleValue);var n=this.scaleValues[0],r=this.scaleValues[2],i=this.scaleValues[3];l.x=l.x+r*o,l.y=l.y+i*o;var a=new SuperMapAlgoPlot.Point(2*o*n,0),u=new SuperMapAlgoPlot.Point(-2*o*n,0),p=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,a,0),s=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,u,0),c=[];c.push(p),c.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c);var P=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,a,0),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,u,0);this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],P,n*o,90),this.computeSubSymbol(this.subSymbols[1],f,n*o,90));var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,n*o,n*o,180);this.addScalePoint(g,0),this.addScalePoint(l,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.controlPoints.length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0===t){r.x=r.x+this.scaleValues[2]*n,r.y=r.y+this.scaleValues[3]*n;var i=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/n;this.scaleValues[0]=i}if(1===t){var a=(e.x-r.x)/n;this.scaleValues[2]=a;var u=(e.y-r.y)/n;this.scaleValues[3]=u}}}}])&&Hg(e.prototype,o),l&&Hg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Zg(t){"@babel/helpers - typeof";return(Zg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $g(t,e){for(var o=0;othis.minEditPts){for(var g=1;g=0?(R=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(Y,t[D],N)).pntRight:(R=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(Y,t[D],N)).pntLeft;var k=SuperMapAlgoPlot.PlottingUtil.linePnt(N,P,Y),z=.3*Y,F=SuperMapAlgoPlot.PlottingUtil.linePnt(k,N,z),G=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.3*z,k,F),W=G.pntLeft,J=G.pntRight;(h=[]).push(N),h.push(k),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,null,!0),(h=[]).push(W),h.push(k),h.push(J);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0),this.addScalePoint(k),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=o.length,r=e;if(t>=0&&th&&(s=f,P=y,c=h)}}if(-1===s||s>o.length-1)return;for(var S=0,b=0;bl)return;this.scaleValues[n+1]=S/l;var v,m=this.scaleValues.length,O=l*this.scaleValues[m-3];v=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[s],o[s+1],r)?c/O:-Math.abs(c/O),this.scaleValues[n+2]=v}}}}])&&$g(e.prototype,o),l&&$g(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ny(t){"@babel/helpers - typeof";return(ny="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ry(t,e){for(var o=0;othis.scaleValues.length&&(this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen),this.scaleValues.push(this.sv_arrowTailWidth));for(var o=e*this.scaleValues[4],l=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]),n=SuperMapAlgoPlot.PlottingUtil.distance(l.pntLeft,l.pntRight),r=n,i=2.5*n,a=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,u=[],p=120;p<420;p+=12)u.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],r,.5*i,p+a-90));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),this.finish()}}}}])&&ry(e.prototype,o),l&&ry(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function sy(t){"@babel/helpers - typeof";return(sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cy(t,e){for(var o=0;othis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(this.RATIO_OUTLINE),this.scaleValues.push(.05));[].push(o[o.length-1]);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues.push(.5*this.getSubSymbolScaleValue()),this.scaleValues.push(this.getSubSymbolScaleValue()));for(var n=l*this.scaleValues[0],r=t[t.length-1],i=SuperMapAlgoPlot.PlottingUtil.distance(r,o[o.length-1]);i<=1.5*n;)o.pop(),i=SuperMapAlgoPlot.PlottingUtil.distance(r,o[o.length-1]);o.push(r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o);var a=o[o.length-2],u=SuperMapAlgoPlot.PlottingUtil.dirAngle(r,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,n,n,u+14),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,n,n,u-14),c=[];c.push(p),c.push(r),c.push(s);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{lineTypeLimit:!0,fillLimit:!0,fillStyle:0,strokeOpacity:1,opacity:1});var P=l*this.scaleValues[1],f=SuperMapAlgoPlot.PlottingUtil.dirAngle(o[0],o[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],P,P,f+90),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],P,P,f-90),h=[];h.push(g),h.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var S=(l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t))*this.scaleValues[0];this.scalePoints=[];var b=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[o.length-1],S,S,u+180);this.scalePoints.push(b),this.scalePoints.push(g),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.8){var O;if(!(O=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.8*o,M)))return;m=O.index,a.pts,h=[];for(var w=0;w.8){var D=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.8*o,C);if(!D.bfind)return;I=D.index,D.pts,h=[];for(var N=0;Nh&&(s=f,P=y,c=h)}}if(-1==s||s>u.length-1)return;if(!(v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c,a)).bfind)return;var S=v.index;w=new SuperMapAlgoPlot.Point(a[(a[S].x,a[S].y)]),U=new SuperMapAlgoPlot.Point(a[(a[S+1].x,a[S+1].y)]),r=0;for(var b=0;bl)return;var A=SuperMapAlgoPlot.PlottingUtil.dirAngle(w,U),d=SuperMapAlgoPlot.PlottingUtil.dirAngle(P,e)+A;this.scaleValues[4]=d;var M=r/l;this.scaleValues[0]=M}else if(1===t){var v;if(i=l*this.scaleValues[0],-1===(v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,a)).index)return;S=v.index;var m=v.pts,O=new SuperMapAlgoPlot.Point(m.x,m.y),w=new SuperMapAlgoPlot.Point(a[S].x,a[S].y),U=new SuperMapAlgoPlot.Point(a[S+1].x,a[S+1].y);A=SuperMapAlgoPlot.PlottingUtil.dirAngle(w,U);d=SuperMapAlgoPlot.PlottingUtil.dirAngle(O,e)-A;this.scaleValues[4]=d;var L=(r=SuperMapAlgoPlot.PlottingUtil.distance(O,e))/l;this.scaleValues[2]=L>.65?.65:L}else if(2==t){for(var T=-1,j=0,R=new SuperMapAlgoPlot.Point(0,0),V=a.length,_=0;_B&&(T=_,R=x,j=B)}}if(-1==T||T>V-1)return;for(var C=0,Y=0;Yl)return;var k=C/l;this.scaleValues[1]=k}}}}])&&Sy(e.prototype,o),l&&Sy(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function vy(t){"@babel/helpers - typeof";return(vy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function my(t,e){for(var o=0;o2&&(o=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[2]));for(var l=[],n=80;n<420;n+=12)l.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,e,n));l.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,e,420)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l);var r=[],i=o>e?o:e;i*=1.5,r.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],i,i,50)),r.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,e,70)),r.push(new SuperMapAlgoPlot.Point(t[0].x,t[0].y));var a=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(r),u=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(a);this.addArrow(u,.1),this.finish()}}}])&&my(e.prototype,o),l&&my(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ty(t){"@babel/helpers - typeof";return(Ty="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jy(t,e){for(var o=0;o=this.scaleValues.length&&this.scaleValues.push(.2);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=e*this.scaleValues[0];this.computeArcAndArrow(t[0],e,o,40,140),this.computeArcAndArrow(t[0],e,o,160,260),this.computeArcAndArrow(t[0],e,o,290,380);for(var l=[],n=0;n<360;n+=12)l.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,n));this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{lineColorLimit:!0,fillStyle:1,color:"#0000FF",opacity:1}),this.computeSubCells(t[0],o),this.scalePoints=[];var r=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,0);this.scalePoints.push(r),this.finish()}}},{key:"computeSubCells",value:function(t,e){}},{key:"computeArcAndArrow",value:function(t,e,o,l,n){for(var r=[],i=l;i.7&&(n=.6),this.scaleValues[0]=n}}}}])&&jy(e.prototype,o),l&&jy(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function xy(t){"@babel/helpers - typeof";return(xy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function By(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=2*n}var r=this.scaleValues[0],i=l*this.scaleValues[2],a=l*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(o.x+i,o.y+a),p=l*r;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],u,p,0);var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,180);this.addScalePoint(s,0),this.addScalePoint(u,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===r)return;var i=0,a=0,u=0,p=0;if(0===t){u=r*(i=this.scaleValues[2]),p=r*(a=this.scaleValues[3]);var s=new SuperMapAlgoPlot.Point(n.x+u,n.y+p),c=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/r;this.scaleValues[0]=c}else 1===t&&(i=(u=e.x-n.x)/r,a=(p=e.y-n.y)/r,this.scaleValues[2]=i,this.scaleValues[3]=a)}}}])&&Hy(e.prototype,o),l&&Hy(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Zy(t){"@babel/helpers - typeof";return(Zy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $y(t,e){for(var o=0;o=2&&this.controlPoints.length0){var o;if(null==this.subSymbols[0].symbolData)return;o=this.subSymbols[0].symbolData.symbolSize.x;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=l*this.scaleValues[4],r=l*this.scaleValues[5],i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,t),u=SuperMapAlgoPlot.PlottingUtil.radian(a.pts,i.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=60*SuperMapAlgoPlot.PlottingUtil.distance(i.pts,a.pts)/o,s=new SuperMapAlgoPlot.Point((a.pts.x+i.pts.x)/2,(i.pts.y+a.pts.y)/2);if(null==this.subSymbols.length)return;if(null!=this.subSymbols[0].code){this.computeSubSymbol(this.subSymbols[0],s,p,u+90);var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a.pts,p,p,u+90),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a.pts,2*p,2*p,u+90),f=[];f.push(c),f.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.2*p,.2*p,u+90),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.05*p,.05*p,u),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.05*p,.05*p,u+180),S=[];S.push(g),S.push(y),S.push(h);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{fillLimit:!0,fill:!0})}i.pts.isScalePoint=!0,i.pts.tag=this.scalePoints.length,this.scalePoints.push(i.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var l=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),n=SuperMapAlgoPlot.PlottingUtil.clonePoints(o);n.splice(0,2),n.unshift(l);var r=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,n),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(-1===r.index&&3===t&&(r.pt=l.clone()),-1==r.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMapAlgoPlot.PlottingUtil.clonePoints(n);a.splice(0,r.index+1),a.unshift(r.pt);var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(a);i.5&&(this.scaleValues[4]=.5)}}}}}])&&jh(e.prototype,o),l&&jh(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function xh(t){"@babel/helpers - typeof";return(xh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bh(t,e){for(var o=0;o2){for(var L=n;L2){for(var T=n;T=c.index;G--)k.push(t[G]);this.addArrow(k,.2*this.scaleValues[0])}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length}}])&&Bh(e.prototype,o),l&&Bh(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Nh(t){"@babel/helpers - typeof";return(Nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kh(t,e){for(var o=0;o2){for(var L=n;L2){for(var T=n;T2){for(var D=C.index;D>=Y.index;D--)I.push(t[D]);x=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[C.index],t[C.index+1])*SuperMapAlgoPlot.PlottingUtil.RTOD}else I.push(C.pts),I.push(Y.pts),x=SuperMapAlgoPlot.PlottingUtil.dirAngle(Y.pts,C.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.addArrow(I,.3*this.scaleValues[0]);var N=.08*P;this.computeSubSymbol(this.subSymbols[0],l[l.length-1],N,x)}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length}}])&&kh(e.prototype,o),l&&kh(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();SuperMapAlgoPlot.AlgoSymbol5035401=Wh;var Jh=window.SuperMap=window.SuperMap||{},Hh=(Jh.Plot=Jh.Plot||{},window.SuperMapAlgoPlot=Jh.Plot||{});function Kh(t){"@babel/helpers - typeof";return(Kh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qh(t,e){for(var o=0;o.2||n<=0)&&(n=.2),this.scaleValues[0]=n,this.scaleValues[1]=.5*this.getSubSymbolScaleValue()}for(var r=this.getLinePts(o,this.scaleValues[0],.5),i=new Hh.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),a=Hh.PlottingUtil.dirAngle(r.startPt,r.endPt)*Hh.PlottingUtil.RTOD,u=Hh.PlottingUtil.distance(r.startPt,r.endPt),p=[],s=0;s<=r.startIndex;s++)p.push(o[s]);p.push(new Hh.Point(r.startPt.x,r.startPt.y)),this.addCell(Hh.SymbolType.POLYLINESYMBOL,p);var c=[];if(r.endIndex<=o.length){c.push(new Hh.Point(r.endPt.x,r.endPt.y));for(var P=r.endIndex+1;P<=o.length-1;P++)c.push(o[P]);this.addArrow(c,this.scaleValues[2])}this.scalePoints=[];var f=Hh.PlottingUtil.circlePoint(i,.5*u,.5*u,a+90);if(this.addScalePoint(f,0),this.subSymbols.length>0)this.computeSubSymbol(this.subSymbols[0],centerPoint,.8*u,a-180);else{var g=new Hh.Point(0,.2*u),y=new Hh.Point(u,.2*u),h=new Hh.Point(u,-.2*u),S=new Hh.Point(0,-.2*u),b=Hh.PlottingUtil.coordinateTrans(p[p.length-1],g,a),A=Hh.PlottingUtil.coordinateTrans(p[p.length-1],y,a),d=Hh.PlottingUtil.coordinateTrans(p[p.length-1],h,a),M=Hh.PlottingUtil.coordinateTrans(p[p.length-1],S,a),v=[];v.push(b),v.push(A),v.push(d),v.push(M),v.push(b);var m={lineColorLimit:!0,strokeColor:"#008000",strokeOpacity:1,color:"#008000",opacity:1,lineColor:"#008000"};this.addCell(Hh.SymbolType.ARBITRARYPOLYGONSYMBOL,v,m);var O=new Hh.Point(.5*u,.2*u),w=new Hh.Point(.5*u,-.2*u),U=Hh.PlottingUtil.coordinateTrans(p[p.length-1],O,a),L=Hh.PlottingUtil.coordinateTrans(p[p.length-1],w,a);(v=[]).push(U),v.push(L),this.addCell(Hh.SymbolType.POLYLINESYMBOL,v,m)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=Hh.PlottingUtil.clonePoints(this.controlPoints);if((o=Hh.PlottingUtil.clearSamePts(o)).length.2||n<=0)&&(n=.2),this.scaleValues[0]=n,this.scaleValues[1]=.5*this.getSubSymbolScaleValue(),this.scaleValues[2]=0}for(var r=this.getLinePts(o,this.scaleValues[0],.5),i=new SuperMapAlgoPlot.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.dirAngle(r.startPt,r.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,u=SuperMapAlgoPlot.PlottingUtil.distance(r.startPt,r.endPt),p=[],s=0;s<=r.startIndex;s++)p.push(o[s]);p.push(new SuperMapAlgoPlot.Point(r.startPt.x,r.startPt.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p);var c=[];if(r.endIndex<=o.length){c.push(new SuperMapAlgoPlot.Point(r.endPt.x,r.endPt.y));for(var P=r.endIndex+1;P<=o.length-1;P++)c.push(o[P]);this.addArrow(c,this.scaleValues[1])}if(this.subSymbols.length>0)this.computeSubSymbol(this.subSymbols[0],centerPoint,.8*u,a-180);else{var f=new SuperMapAlgoPlot.Point(0,.2*u),g=new SuperMapAlgoPlot.Point(u,.2*u),y=new SuperMapAlgoPlot.Point(u,-.2*u),h=new SuperMapAlgoPlot.Point(0,-.2*u),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],f,a),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],g,a),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],y,a),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],h,a),M=[];M.push(S),M.push(b),M.push(A),M.push(d),M.push(S);var v={lineColorLimit:!0,strokeColor:"#008000",strokeOpacity:1,color:"#008000",opacity:1,lineColor:"#008000"};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,v);var m=new SuperMapAlgoPlot.Point(.5*u,.2*u),O=new SuperMapAlgoPlot.Point(.5*u,-.2*u),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],m,a),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],O,a);(M=[]).push(w),M.push(U),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,v);var L=0,T=0,j=0,R=0,V=0,_=this.scaleValues[1];_=.7*SuperMapAlgoPlot.PlottingUtil.distance(p[0],p[p.length-1]);var E=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(_,p);if(!E.bfind)return;L=E.index;var x,B,C,Y=E.pts,I=.1*u,D=(f=new SuperMapAlgoPlot.Point(p[L].x,p[L].y),g=new SuperMapAlgoPlot.Point(Y.x,Y.y),SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(I,f,g));R=D.pntLeft.x,V=D.pntLeft.y,T=D.pntRight.x,j=D.pntRight.y,0==(x=this.scaleValues[2])?B=new SuperMapAlgoPlot.Point(T,j):1==x&&(B=new SuperMapAlgoPlot.Point(R,V)),(M=[]).push(B),M.push(Y),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,M),T=0,j=0,R=0,V=0;var N;N=.3*SuperMapAlgoPlot.PlottingUtil.distance(p[0],p[p.length-1]);var k=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(N,c);if(!k.bfind)return;L=k.index,C=k.pts;y=new SuperMapAlgoPlot.Point(c[L].x,c[L].y),h=new SuperMapAlgoPlot.Point(C.x,C.y);var z,F=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(I,y,h);R=F.pntLeft.x,V=F.pntLeft.y,T=F.pntRight.x,j=F.pntRight.y,0==x?z=new SuperMapAlgoPlot.Point(T,j):1==x&&(z=new SuperMapAlgoPlot.Point(R,V)),(M=[]).push(z),M.push(C),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,M),this.scalePoints=[];var G=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,.5*u,.5*u,a+90);this.addScalePoint(G,0),this.addScalePoint(z,1)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=this.scaleValues[0],r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*r,l),a=2*SuperMapAlgoPlot.PlottingUtil.distance(i.pts,e)/r;this.scaleValues[0]=a<=.3?a:.3}else{var u=r*(.5+.5*n),p=(t=-1,SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(u,l));if(!p.bfind)return;t=p.index,p.pts;var s=new SuperMapAlgoPlot.Point(l[t].x,l[t].y),c=new SuperMapAlgoPlot.Point(l[t+1].x,l[t+1].y),P=new SuperMapAlgoPlot.Point(e.x,e.y),f=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(s,c,P);this.scaleValues[2]=f?0:1}}}}])&&eS(e.prototype,o),l&&eS(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function iS(t){"@babel/helpers - typeof";return(iS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function aS(t,e){for(var o=0;o0&&(u+=SuperMapAlgoPlot.PlottingUtil.distance(a[p],a[p-1]));var s,c,P=n-u,f=o*this.scaleValues[1],g=[];if(P>=f){s=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[r.index],f),a.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a),c=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[r.index+1],f),g.push(c);for(var y=e.length,h=r.index+1;h=0;d--)if(S=new SuperMapAlgoPlot.Point(a[d].x,a[d].y),b=new SuperMapAlgoPlot.Point(i.x,i.y),SuperMapAlgoPlot.PlottingUtil.distance(S,b)>f){A=d;break}if(-1==A)return;a.splice(A+1,a.length-1-A),s=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[A],f),a.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a);for(var M=-1,v=r.index;vf){M=v;break}if(-1==M)return;c=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[M],f),g.push(c);for(var m=M+1;m0){if(null!==this.subSymbols[0].symbolData)for(var Y=0;Yo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}}}])&&wS(e.prototype,o),l&&wS(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function RS(t){"@babel/helpers - typeof";return(RS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function VS(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[2]=2*l}var n=o*this.scaleValues[0],r=this.scaleValues[1],i=o*this.scaleValues[2],a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,e);if(a.bfind){var u=a.pts.clone(),p=e[a.index].clone(),s=e[a.index+1].clone(),c=SuperMapAlgoPlot.PlottingUtil.radian(p,s)*SuperMapAlgoPlot.PlottingUtil.RTOD,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,i,i,c+r),f=[];f.push(a.pts),f.push(P);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,{lineTypeLimit:!0,surroundLineLimit:!0});var g=SuperMapAlgoPlot.PlottingUtil.radian(u,P)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=new SuperMapAlgoPlot.Point(-.2*i,.05*i),h=new SuperMapAlgoPlot.Point(-.2*i,-.05*i),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,y,g),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,h,g),A=[];A.push(P),A.push(S),A.push(b);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,A,{lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fill:!0});var d=.3*i,M=.6*i,v=n-M;v<0&&(v=0);var m=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(v,e);if(m.bfind){var O=[];O.push(m.pts);for(var w=m.index;w>=0;w--)O.push(e[w]);var U=[];U.push(m.pts);for(var L=m.index+1;L1){var R=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(T,O);if(R.bfind){(j=[]).push(R.pts);for(var V=R.index+1;V1&&(O=O.concat(j))}}if(O.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O),U.length>1){var _=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(T,U);if(_.bfind){(j=[]).push(_.pts);for(var E=_.index+1;E1&&(U=U.concat(j))}}var x=n+M;x>o&&(x=o),x=o-x;for(var B=[],C=U.length-1;C>=0;C--)B.push(U[C]);var Y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(x,B);if(Y.bfind){var I=[];I.push(Y.pts);for(var D=Y.index;D>=0;D--)I.push(B[D]);var N=[];N.push(Y.pts);for(var k=Y.index+1;k1){var z=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(T,I);if(z.bfind){(j=[]).push(z.pts);for(var F=z.index+1;F1&&(I=I.concat(j))}}if(I.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,I),N.length>1){var G=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(T,N);if(G.bfind){(j=[]).push(G.pts);for(var W=G.index+1;W1&&(N=N.concat(j))}}N.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,N),this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],m.pts,d,c+r+180,.3),this.computeSubSymbol(this.subSymbols[1],Y.pts,d,c+r+180,.3)),this.addScalePoint(a.pts,0),this.addScalePoint(P,1),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengtht||1f&&(a=s,u=P,p=f)}}if(-1===a||a>r.length-1)return;for(var g=0,y=0;yn)return;this.scaleValues[0]=g/n}if(1===t){var A=n*this.scaleValues[0],d=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(A,l);if(!d.bfind)return;var M=d.pts.clone(),v=new SuperMapAlgoPlot.Point(l[d.index].x,l[d.index].y),m=new SuperMapAlgoPlot.Point(l[d.index+1].x,l[d.index+1].y),O=SuperMapAlgoPlot.PlottingUtil.radian(v,m)*SuperMapAlgoPlot.PlottingUtil.RTOD,w=SuperMapAlgoPlot.PlottingUtil.radian(M,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[1]=w-O;var U=SuperMapAlgoPlot.PlottingUtil.distance(M,e);this.scaleValues[2]=U/n}}}}])&&YS(e.prototype,o),l&&YS(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zS(t){"@babel/helpers - typeof";return(zS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function FS(t,e){for(var o=0;o.24&&(n=.24),this.scaleValues[0]=n}}}}])&&qS(e.prototype,o),l&&qS(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function tb(t){"@babel/helpers - typeof";return(tb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eb(t,e){for(var o=0;o=2&&this.controlPoints.length0){var o;if(null==this.subSymbols[0].symbolData)return;o=this.subSymbols[0].symbolData.symbolSize.x;var l=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]),n=l*this.scaleValues[4],r=l*this.scaleValues[5],i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,t),u=SuperMapAlgoPlot.PlottingUtil.radian(a.pts,i.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=100*SuperMapAlgoPlot.PlottingUtil.distance(i.pts,a.pts)/o*2;if(null==this.subSymbols.length)return;if(null!=this.subSymbols[0].code){this.computeSubSymbol(this.subSymbols[0],a.pts,p,u-90);var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(a.pts,p,p,u+90),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a.pts,2*p,2*p,u+90),P=[];P.push(s),P.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.2*p,.2*p,u+90),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.05*p,.05*p,u),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.05*p,.05*p,u+180),h=[];h.push(f),h.push(g),h.push(y);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,{fillLimit:!0,fill:!0})}i.pts.isScalePoint=!0,i.pts.tag=this.scalePoints.length,this.scalePoints.push(i.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var l=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),n=SuperMapAlgoPlot.PlottingUtil.clonePoints(o);n.splice(0,2),n.unshift(l);var r=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,n),i=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);if(3===t&&null==r.pt&&(r.pt=l.clone()),-1==r.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMapAlgoPlot.PlottingUtil.distance(l,e);this.scaleValues[t+1]=a/i,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5),this.scaleValues[5]>1&&(this.scaleValues[5]=1)}}}}}])&&Ab(e.prototype,o),l&&Ab(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ob(t){"@babel/helpers - typeof";return(Ob="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wb(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{lineColorLimit:!0,strokeColor:"#00FF00",strokeOpacity:1,color:"#00FF00",opacity:1,lineColor:"#00FF00"});var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/o;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=.4*n}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3],u=o*r,p=new SuperMapAlgoPlot.Point(l.x-o*i,l.y-o*a);this.addText("!",p,4*u,0,"#00FF00"),this.scalePoints=[];var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,u,u,0);this.addScalePoint(s),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=[];if(l=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=(e.x-r.x)/n;this.scaleValues[2]=-i;var a=(e.y-r.y)/n;this.scaleValues[3]=-a}else if(1==t){i=this.scaleValues[2],a=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(r.x+n*i,r.y+n*a),p=SuperMapAlgoPlot.PlottingUtil.distance(u,new SuperMapAlgoPlot.Point(e.x,e.y))/2/n;this.scaleValues[0]=p}}}}])&&wb(e.prototype,o),l&&wb(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Rb(t){"@babel/helpers - typeof";return(Rb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vb(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,lineColor:"#0000ff"});var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/o;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=.4*n}var r=this.scaleValues[0],i=this.scaleValues[1],a=this.scaleValues[2],u=this.scaleValues[3],p=o*r,s=l.y-o*u,c=new SuperMapAlgoPlot.Point(l.x-o*a,s),P=new SuperMapAlgoPlot.Point(l.x-o*i,s);this.addText("!",c,4*p,0,"#0000ff"),this.addText("!",P,4*p,0,"#0000ff"),this.scalePoints=[];var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,p,p,0);this.addScalePoint(f),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=[];if(l=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=(e.x-r.x)/n;this.scaleValues[2]=-i;var a=(e.y-r.y)/n;this.scaleValues[3]=-a}else if(1==t){i=this.scaleValues[2],a=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(r.x+n*i,r.y+n*a),p=SuperMapAlgoPlot.PlottingUtil.distance(u,new SuperMapAlgoPlot.Point(e.x,e.y))/2/n;this.scaleValues[0]=p}}}}])&&Vb(e.prototype,o),l&&Vb(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Cb(t){"@babel/helpers - typeof";return(Cb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yb(t,e){for(var o=0;o0)this.computeSubSymbol(this.subSymbols[0],c,.9*s,y-90);else{y+=180;var h=new SuperMapAlgoPlot.Point(.3*s,0),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,h,y),b=[],A=new SuperMapAlgoPlot.Point(-.6*s,0),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,A,y);(b=[]).push(S),b.push(d),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b);var M=new SuperMapAlgoPlot.Point(-.35*s,0),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,.4*s,.4*s,45),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,.4*s,.4*s,315),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,M,y),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,v,y),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,m,y);(b=[]).push(w),b.push(O),b.push(U),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b)}this.scalePoints=[],this.addScalePoint(u[u.length-1]);var L=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,y+90);this.addScalePoint(L),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}else if(1==t){var r=this.scaleValues[0]*l,i=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],r,r,90),a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[1],r,r,90),u=new SuperMapAlgoPlot.Point((i.x+a.x)/2,(i.y+a.y)/2),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e)/l;p>=.8&&(p=.8),this.scaleValues[1]=p}}}}])&&Yb(e.prototype,o),l&&Yb(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zb(t){"@babel/helpers - typeof";return(zb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fb(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[1]=l,this.scaleValues[2]=.5*l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=180*SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);if(0=2){for(var n=-1,r=0;r0)this.computeSubSymbol(this.subSymbols[0],c,.9*s,g-90);else{var h=new SuperMapAlgoPlot.Point(.3*s,0),S=new SuperMapAlgoPlot.Point(.4*s,0),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,h,g),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,S,g),d=[];d.push(b),d.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,d,{fill:!1,fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var M=new SuperMapAlgoPlot.Point(-.4*s,0),v=new SuperMapAlgoPlot.Point(-.3*s,0),m=new SuperMapAlgoPlot.Point(-.3*s,.2*s),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,M,g),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,v,g),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,m,g);(d=[]).push(b),d.push(O),d.push(U),d.push(w),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var L=new SuperMapAlgoPlot.Point(-.2*s,0),T=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,.3*s,.3*s,45),j=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,.3*s,.3*s,315),R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,L,g),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,T,g),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,j,g);(d=[]).push(V),d.push(R),d.push(_),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var E=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,.15*s,.15*s,45),x=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,.15*s,.15*s,315),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,E,g),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,x,g);(d=[]).push(B),d.push(b),d.push(C),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0})}this.scalePoints=[],this.addScalePoint(u[u.length-1]);var Y=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,g+90);this.addScalePoint(Y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}else if(1==t){var r=this.scaleValues[0]*l,i=SuperMapAlgoPlot.PlottingUtil.radian(o[0],o[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],r,r,90+i),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[1],r,r,90+i),p=new SuperMapAlgoPlot.Point((a.x+u.x)/2,(a.y+u.y)/2),s=SuperMapAlgoPlot.PlottingUtil.distance(p,e)/l;s>=.8&&(s=.8),this.scaleValues[1]=s}}}}])&&eA(e.prototype,o),l&&eA(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function iA(t){"@babel/helpers - typeof";return(iA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function aA(t,e){for(var o=0;o1&&(P.push(f),f=[]):f.push(i.pt[g]);f.length>1&&P.push(f);for(var y=0;ythis.scaleValues.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),i=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t){var a=o[0],u=SuperMapAlgoPlot.PlottingUtil.distance(a,i);this.scaleValues[1]=2*u/l}else if(1===t)a=o[0],u=SuperMapAlgoPlot.PlottingUtil.distance(a,i),this.scaleValues[0]=u/l;else if(2===t){for(var p=-1,s=0,c=new SuperMapAlgoPlot.Point(0,0),P=0;Ph&&(p=P,c=y,s=h)}}if(-1===p||p>n.length-1)return;for(var S=[],b=0;br)return;this.scaleValues[2]=A/r}else if(3===t){var d=r*this.scaleValues[2],M=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,d);if(-1===M.index)return;var v=SuperMapAlgoPlot.PlottingUtil.distance(M.pt,e);this.scaleValues[3]=v/l}}}},{key:"GetCurvePts",value:function(t,e,o){for(var l,n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),i=r*e,a=r*o/2,u=[],p=[],s=n[0],c=!1,P=n[0],f=1;f1&&0===b?this.ClearCurvePts2D(P,s,g,p,A,u):u.concat(A),p=(p=[]).concat(A),P=s,s=h}f===n.length-1&&(h=n[n.length-1],A=this.GetCosPts2D(s,h,i,a),u=p.length>1&&A.length>1?this.ClearCurvePts2D(P,s,g,p,A,u):u.concat(A))}}return{pt:u,scalePt:l}}},{key:"GetCosPts2D",value:function(t,e,o,l){for(var n=[],r=SuperMapAlgoPlot.PlottingUtil.distance(t,e),i=o/30,a=0;al&&fl){var g;g=P>l?s:c;var y=this.getLineAddCircleIntersectPts(s,c,u);y.length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[y[0],g])}else{var h=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,s,c);if(SuperMapAlgoPlot.PlottingUtil.distance(a,h)>=l)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c]);else if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(h,s,c)){var S=this.getLineAddCircleIntersectPts(s,c,u);if(S.length>0){S.unshift(s),S.push(c);for(var b=0;b=t.length-1?SuperMapAlgoPlot.PlottingUtil.radian(t[t.length-2],t[t.length-1])*SuperMapAlgoPlot.PlottingUtil.RTOD:SuperMapAlgoPlot.PlottingUtil.radian(t[r.index],t[r.index+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,this.subSymbols.length>0){if(null!==this.subSymbols[0].symbolData)for(var A=0;ASuperMapAlgoPlot.PlottingUtil.distance(n,o)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,o){var l=o.slice();l[0].x===l[l.length-1].x&&l[0].y===l[l.length-1].y||l.push(l[0]);for(var n=[],r=0;re.x){for(var s=0;sn[P+1].x){var f=n[P];n[P]=n[P+1],n[P+1]=f}}else if(t.y>e.y){for(var g=0;gn[h+1].y){var S=n[h];n[h]=n[h+1],n[h+1]=S}return n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=0,r=-1,i=null,a=0;a1&&(P=1),this.scaleValues[0]=P}if(1===t){var f=this.scaleValues[0]*l,g=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,f);if(-1===g.index)return;var y=SuperMapAlgoPlot.PlottingUtil.distance(g.pt,e)/l;y>.4&&(y=.4),this.scaleValues[1]=y}}}}])&&fA(e.prototype,o),l&&fA(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function bA(t){"@babel/helpers - typeof";return(bA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function AA(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],r,y,g),this.addScalePoint(s[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.24&&(n=.24),this.scaleValues[0]=n}}}}])&&AA(e.prototype,o),l&&AA(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function OA(t){"@babel/helpers - typeof";return(OA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wA(t,e){for(var o=0;o0?new SuperMapAlgoPlot.Point(f.pntLeft.x,f.pntLeft.y):new SuperMapAlgoPlot.Point(f.pntRight.x,f.pntRight.y);var g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,P,c.pt),y=[];if(y.push(g.pntRight),y.push(P),y.push(g.pntLeft),0===s){var h=new SuperMapAlgoPlot.Point(P.x,P.y);h.isScalePoint=!0,h.tag=0,this.scalePoints.push(h)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}}var S=SuperMapAlgoPlot.PlottingUtil.radian(t[t.length-2],t[t.length-1])*SuperMapAlgoPlot.PlottingUtil.RTOD,b=this.scaleValues[1]*n,A=SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2]),d=SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-2],t[t.length-1],.5*b+A);this.addText(this.subText,d,b,S),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[0]=l?-1:1}}}])&&YA(e.prototype,o),l&&YA(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zA(t){"@babel/helpers - typeof";return(zA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function FA(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(2>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL,e);for(var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),l=e[0].x,n=e[0].x,r=e[0].y,i=e[0].y,a=[],u=0;ue[u].x&&(l=e[u].x),ne[u].y&&(r=e[u].y),i10&&(p=10);for(var s=.2*p,c=[],P=0;P<360;P+=18){var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(new SuperMapAlgoPlot.Point(0,0),s,s,P);c.push(f)}for(var g=0,y=l;yl)return o;for(var n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=2*parseInt(l/(1.5*e)),i=0;i0&&o.push(n),o}}])&&ed(e.prototype,o),l&&ed(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function id(t){"@babel/helpers - typeof";return(id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ad(t,e){for(var o=0;ol)return o;for(var n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=2*parseInt(l/(1.5*e)),i=0;i0&&o.push(n),o}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.8?r=.8:r<.2&&(r=.2),this.scaleValues[1]=r}}}}])&&fd(e.prototype,o),l&&fd(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function bd(t){"@babel/helpers - typeof";return(bd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ad(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=.8*SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,a,i);for(var u=[],p=[],s=0;s<=n.startIndex;s++)u.push(e[s]);if(u.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),n.endIndex<=e.length){p.push(n.endPt);for(var c=n.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,i+90);this.addScalePoint(f,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=.8*SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,a,i+180);for(var u=[],p=[],s=0;s<=n.startIndex;s++)u.push(e[s]);if(u.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),n.endIndex<=e.length){p.push(n.endPt);for(var c=n.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,i+90);this.addScalePoint(f,0),this.finish()}}}])&&Yd(e.prototype,o),l&&Yd(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zd(t){"@babel/helpers - typeof";return(zd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fd(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=.8*SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],r,.05*a,i+90),this.computeSubSymbol(this.subSymbols[1],r,a,i+180));for(var u=[],p=[],s=0;s<=n.startIndex;s++)u.push(e[s]);if(u.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),n.endIndex<=e.length){p.push(n.endPt);for(var c=n.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,i+90);this.addScalePoint(f,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=.8*SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,a,i+180);var u=[],p=new SuperMapAlgoPlot.Point(0,0);p.x=-a/6,p.y=a/3;var s=new SuperMapAlgoPlot.Point(0,0),c=SuperMapAlgoPlot.PlottingUtil.rotateAngle(s,i*SuperMapAlgoPlot.PlottingUtil.DTOR,p),P=new SuperMapAlgoPlot.Point(c.x+r.x,c.y+r.y);p.x=a/6,p.y=a/3;var f=SuperMapAlgoPlot.PlottingUtil.rotateAngle(s,i*SuperMapAlgoPlot.PlottingUtil.DTOR,p),g=new SuperMapAlgoPlot.Point(f.x+r.x,f.y+r.y);p.x=0,p.y=-a/3;var y=SuperMapAlgoPlot.PlottingUtil.rotateAngle(s,i*SuperMapAlgoPlot.PlottingUtil.DTOR,p),h=new SuperMapAlgoPlot.Point(y.x+r.x,y.y+r.y);u.push(P),u.push(g),u.push(h);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,u,{fillLimit:!0,fill:!0});for(var S=[],b=[],A=0;A<=n.startIndex;A++)S.push(e[A]);if(S.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S),n.endIndex<=e.length){b.push(n.endPt);for(var d=n.endIndex+1;d<=e.length-1;d++)b.push(e[d]);this.addArrow(b)}var M=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(M.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,i+90);this.addScalePoint(v,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=.8*SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],r,a,i+180),this.computeSubSymbol(this.subSymbols[1],r,.5*a,i+180));for(var u=[],p=[],s=0;s<=n.startIndex;s++)u.push(e[s]);if(u.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),n.endIndex<=e.length){p.push(n.endPt);for(var c=n.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,i+90);this.addScalePoint(f,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length0&&this.computeSubSymbol(this.subSymbols[0],i,u,0),this.addText("私",a,u,0,"#0000FF"),this.addScalePoint(a,0);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length0&&this.computeSubSymbol(this.subSymbols[0],a,u,0),this.addText("盗",a,u,0),this.addScalePoint(a,0);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length0){var g=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,y=.5*SuperMapAlgoPlot.PlottingUtil.distance(i,a);this.computeSubSymbol(this.subSymbols[0],r,y,g+180)}var h=SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],e),S=new SuperMapAlgoPlot.Point(h.x,h.y),b=new SuperMapAlgoPlot.Point(h.x,h.y);S=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],1/6*Math.PI,S),b=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],11/6*Math.PI,b);var A=[];A.push(S),A.push(t[t.length-1]),A.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A),this.finish()}}}])&&qM(e.prototype,o),l&&qM(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function tv(t){"@babel/helpers - typeof";return(tv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ev(t,e){for(var o=0;o=2&&this.controlPoints.length=p.length)this.finish();else{var P=p[0].clone(),f=p[0].clone();for(s=0;sp[s].x&&(P=p[s].clone()),f.xo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=e,i=0,a=0;if(0===t){if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(o,r))return;i=(r.x-n.x)/l,this.scaleValues[0]=i,a=(r.y-n.y)/l,this.scaleValues[1]=a}if(1===t){i=this.scaleValues[0],a=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(n.x+i*l,n.y+a*l),p=2*SuperMapAlgoPlot.PlottingUtil.distance(r,u);this.scaleValues[2]=p/l}}}}])&&fv(e.prototype,o),l&&fv(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();SuperMapAlgoPlot.AlgoSymbol3002002=Sv;function bv(t){"@babel/helpers - typeof";return(bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Av(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(2>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),n=this.scaleValues[0],r=this.scaleValues[1],i=o*this.scaleValues[2],a=new SuperMapAlgoPlot.Point(l.x+o*n,l.y+o*r),u=new SuperMapAlgoPlot.Point(a.x+1,a.y),p=[];e.push(e[0].clone());for(var s=0;s=p.length)this.finish();else{var P=p[0].clone(),f=p[0].clone();for(s=0;sp[s].x&&(P=p[s].clone()),f.x=P.x&&((g=[]).push(P),g.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g));var h=new SuperMapAlgoPlot.Point(a.x+i/2,f.y);h.x<=f.x&&h.x>=P.x&&((g=[]).push(f),g.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g));var S=SuperMapAlgoPlot.PlottingUtil.radian(y,h)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.addText("火",a,i,S),this.addScalePoint(a,0);var b=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,i/2,i/2,90);this.addScalePoint(b,1),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=e,i=0,a=0;if(0===t){if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(o,r))return;i=(r.x-n.x)/l,this.scaleValues[0]=i,a=(r.y-n.y)/l,this.scaleValues[1]=a}if(1===t){i=this.scaleValues[0],a=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(n.x+i*l,n.y+a*l),p=2*SuperMapAlgoPlot.PlottingUtil.distance(r,u);this.scaleValues[2]=p/l}}}}])&&Av(e.prototype,o),l&&Av(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ov(t){"@babel/helpers - typeof";return(Ov="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wv(t,e){for(var o=0;o=2&&this.controlPoints.length=p.length)this.finish();else{var P=p[0].clone(),f=p[0].clone();for(s=0;sp[s].x&&(P=p[s].clone()),f.x=P.x&&((g=[]).push(P),g.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,t));var h=new SuperMapAlgoPlot.Point(a.x+i/2,f.y);if(h.x<=f.x&&h.x>=P.x&&((g=[]).push(f),g.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,t)),this.subSymbols.length>0){var S=this.computeSubSymbol(this.subSymbols[0],a,i,0);if(null!=S)for(var b=0;bo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=e,i=0,a=0;if(0===t){if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(o,r))return;i=(r.x-n.x)/l,this.scaleValues[0]=i,a=(r.y-n.y)/l,this.scaleValues[1]=a}if(1===t){i=this.scaleValues[0],a=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(n.x+i*l,n.y+a*l),p=2*SuperMapAlgoPlot.PlottingUtil.distance(r,u);this.scaleValues[2]=p/l}}}}])&&wv(e.prototype,o),l&&wv(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Rv(t){"@babel/helpers - typeof";return(Rv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vv(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,a,i);for(var u=[],p=[],s=0;s<=n.startIndex;s++)u.push(e[s]);if(u.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),n.endIndex<=e.length){p.push(n.endPt);for(var c=n.endIndex+1;c<=e.length-1;c++)p.push(e[c]);var P=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p)}var f=this.subText,g=.15*P,y=new SuperMapAlgoPlot.Point(n.endPt.x+g/2,n.endPt.y-g/2),h=i;this.addText(f,y,g,h);var S=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(S.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,i+90);this.addScalePoint(b,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.1||l<=0)&&(l=.1),this.scaleValues[0]=l,this.scaleValues[1]=this.getSubSymbolScaleValue(),this.scaleValues[2]=.5*l}var n=this.getLinePts(o,this.scaleValues[0],.5),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMap.Plot.PlottingUtil.dirAngle(n.startPt,n.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=SuperMap.Plot.PlottingUtil.distance(n.startPt,n.endPt);this.computeSubSymbolC(r,a,i);for(var u=[],p=0;p<=n.startIndex;p++)u.push(o[p]);u.push(new SuperMapAlgoPlot.Point(n.startPt.x,n.startPt.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,{strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1});var s=[];if(n.endIndex<=o.length){s.push(new SuperMapAlgoPlot.Point(n.endPt.x,n.endPt.y));for(var c=n.endIndex+1;c<=o.length-1;c++)s.push(o[c]);this.addArrow(s,this.scaleValues[2])}var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,.5*a,.5*a,i+90);this.addScalePoint(P,0),this.finish()}}},{key:"computeSubSymbolC",value:function(t,e,o){for(var l=[],n=0;n<360;n+=12)l.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.5*e,.5*e,n));l.push(l[0]);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1})}}])&&Vm(e.prototype,o),l&&Vm(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Cm(t){"@babel/helpers - typeof";return(Cm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ym(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=.8*SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,a,i+180);for(var u=[],p=[],s=0;s<=n.startIndex;s++)u.push(e[s]);if(u.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),n.endIndex<=e.length){p.push(n.endPt);for(var c=n.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,i+90);this.addScalePoint(f,0);var g=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p),y=this.subText,h=.15*g,S=new SuperMapAlgoPlot.Point(n.endPt.x+h/2,n.endPt.y-h/2),b=i;this.addText(y,S,h,b),this.finish()}}}])&&Ym(e.prototype,o),l&&Ym(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zm(t){"@babel/helpers - typeof";return(zm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fm(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}}}])&&qm(e.prototype,o),l&&qm(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function tO(t){"@babel/helpers - typeof";return(tO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eO(t,e){for(var o=0;o.3||r<=0)&&(r=.3);var i=1.5*r;2===t.length?(this.isEdit||(this.scaleValues[3]=this.scaleValues[2]+i),o=this.scaleValues[2],l=this.scaleValues[3]):(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.scaleValues[4],0)&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.125)),this.isEdit||(this.scaleValues[4]=this.scaleValues[3]+i),o=this.scaleValues[3],l=this.scaleValues[4]);var a=n*o,u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(u.bfind){var p=u.pts,s=n*l;if((u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,e)).bfind){var c=u.index,P=u.pts,f=new SuperMapAlgoPlot.Point(p.x,p.y),g=new SuperMapAlgoPlot.Point(P.x,P.y),y=SuperMapAlgoPlot.PlottingUtil.radian(f,g)*SuperMapAlgoPlot.PlottingUtil.RTOD,h=[];h.push(P);for(var S=c+1;S0&&this.computeSubSymbol(this.subSymbols[0],f,b,y),this.scalePoints=[],this.addScalePoint(P);var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,b/2,b/2,y+90);this.addScalePoint(A),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),r=0,i=0;if(2===o.length?(r=this.scaleValues[2],i=this.scaleValues[3]):(r=this.scaleValues[3],i=this.scaleValues[4]),0===t){for(var a=i-r,u=e.clone(),p=[],s=0;sS&&(P=g,c=h,f=S)}}if(-1===P||P>p.length-1)return;for(var b=0,A=0;An)return;var d=b/n;if(d>.7||d-a<0)return;2===o.length?(this.scaleValues[2]=d-a,this.scaleValues[3]=d):(this.scaleValues[3]=d-a,this.scaleValues[4]=d)}else if(1===t){var M=n*r,v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(M,l);if(!v.bfind)return;var m=v.pts,O=(2*SuperMapAlgoPlot.PlottingUtil.distance(m,e)+M)/n;if(.7.3||l<=0)&&(l=.3),this.scaleValues[1]=l}var n=this.scaleValues[0],r=this.scaleValues[1],i=this.scaleValues[2],a=o*n,u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(u.bfind){var p=u.index,s=u.pts,c=r*o*.5,P=new SuperMapAlgoPlot.Point(0,0),f=new SuperMapAlgoPlot.Point(.5*c,0),g=new SuperMapAlgoPlot.Point(0,c),y=[],h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,P,i);y.push(h);var S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,f,i);y.push(S);var b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,g,i);y.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,y);var A=new SuperMapAlgoPlot.Point(0,-2*c),d=new SuperMapAlgoPlot.Point(.15*c,-1.6*c),M=new SuperMapAlgoPlot.Point(-.15*c,-1.6*c),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,A,i),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,d,i),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,M,i),w=[];w.push(v),w.push(m),w.push(O);var U={surroundLineFlag:!1,fillLimit:!0,fill:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,w,U);var L=new SuperMapAlgoPlot.Point(0,-c),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,L,i);(w=[]).push(T),w.push(v.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w,U);var j,R=[],V=[];for(j=0;j<=p;j++)R.push(e[j]);for(R.push(s),V.push(s),j=p+1;j_){var E=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a-_,R);if(E.bfind){var x=E.pts,B=E.index,C=[];for(j=0;j<=B;j++)C.push(R[j]);C.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,C)}}if(o-a>_){var Y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(_,V);if(Y.bfind){var I=Y.pts,D=Y.index;for((C=[]).push(I),j=D+1;jc&&(i=u,a=c)}}if(-1===i)return SuperMapAlgoPlot.PlottingUtil.distance(r,l[0])>SuperMapAlgoPlot.PlottingUtil.distance(r,l[l.length-1])?void(i=l.length-1):void(i=0);var P=0;if(0===i)P=SuperMapAlgoPlot.PlottingUtil.distance(l[0],s);else for(var f=0;fn)return;this.scaleValues[0]=P/n}else if(1===t){var g=this.scaleValues[0]*n,y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,l);if(!y.bfind)return;var h=y.pts,S=SuperMapAlgoPlot.PlottingUtil.distance(h,e)/n;S>.5&&(S=.5),this.scaleValues[1]=S;var b=SuperMapAlgoPlot.PlottingUtil.radian(h,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[2]=b+90}}}}])&&aO(e.prototype,o),l&&aO(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function PO(t){"@babel/helpers - typeof";return(PO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fO(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[1]=l}var n=this.scaleValues[0],r=this.scaleValues[1],i=this.scaleValues[2],a=o*n,u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(u.bfind){var p=u.index,s=u.pts,c=r*o,P=s,f=new SuperMapAlgoPlot.Point(c,-.5*c),g=new SuperMapAlgoPlot.Point(c,.5*c),y=new SuperMapAlgoPlot.Point(-c,.5*c),h=new SuperMapAlgoPlot.Point(-c,-.5*c),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,f,i),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,g,i),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,y,i),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,h,i);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,b,A,d,S]);var M=new SuperMapAlgoPlot.Point(.5*c,.5*c),v=new SuperMapAlgoPlot.Point(.5*c,-.5*c),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,v,i),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,M,i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[m,O]);var w=new SuperMapAlgoPlot.Point(0,.5*c),U=new SuperMapAlgoPlot.Point(0,-.5*c),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,w,i),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,U,i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[L,T]);var j=new SuperMapAlgoPlot.Point(c,0),R=new SuperMapAlgoPlot.Point(2*c,0),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,j,i),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,R,i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[V,_]);var E=new SuperMapAlgoPlot.Point(2*c,.15*c),x=new SuperMapAlgoPlot.Point(2*c,-.15*c),B=new SuperMapAlgoPlot.Point(2.6*c,0),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,E,i),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,x,i),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,B,i);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[C,Y,I],{lineTypeLimit:!0,lineColorLimit:!1,strokeColor:"#FF0000",strokeOpacity:1,color:"#FF0000",opacity:1,surroundLineLimit:!0,fillLimit:!0,fill:!0});var D,N=[],k=[];for(D=0;D<=p;D++)N.push(e[D]);for(N.push(s),k.push(s),D=p+1;Dz){var F=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a-z,N);if(F.bfind){var G=F.pts,W=F.index,J=[];for(D=0;D<=W;D++)J.push(N[D]);J.push(G),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,J)}}if(o-a>z){var H=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(z,k);if(H.bfind){var K=H.pts,q=H.index;for((J=[]).push(K),D=q+1;D1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengthc&&(i=u,a=c)}}if(-1===i)return SuperMapAlgoPlot.PlottingUtil.distance(r,l[0])>SuperMapAlgoPlot.PlottingUtil.distance(r,l[l.length-1])?void(i=l.length-1):void(i=0);var P=0;if(0===i)P=SuperMapAlgoPlot.PlottingUtil.distance(l[0],s);else for(var f=0;fn)return;this.scaleValues[0]=P/n}else if(1===t){var g=this.scaleValues[0]*n,y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,l);if(!y.bfind)return;var h=y.pts,S=SuperMapAlgoPlot.PlottingUtil.distance(h,e)/n;S>.5&&(S=.5),this.scaleValues[1]=S;var b=SuperMapAlgoPlot.PlottingUtil.radian(h,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[2]=b+90}}}}])&&fO(e.prototype,o),l&&fO(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function bO(t){"@babel/helpers - typeof";return(bO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function AO(t,e){for(var o=0;othis.scaleValues.length&&(this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=1.5*this.getDefaultSubSymbolSize();this.subSymbolScaleValue=n/l,this.subSymbolScaleValue>.2&&(this.subSymbolScaleValue=.2),this.scaleValues[0]=this.subSymbolScaleValue}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3],u=l*r,p=new SuperMapAlgoPlot.Point(o.x+l*i,o.y+l*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,l*r,0);for(var s=0;s=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=0,a=0;if(0===t)i=(e.x-n.x)/r,this.scaleValues[2]=i,a=(e.y-n.y)/r,this.scaleValues[3]=a;else if(1===t){i=this.scaleValues[2],a=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(n.x+r*i,n.y+r*a),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e);this.scaleValues[0]=p/r}}}}])&&AO(e.prototype,o),l&&AO(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function OO(t){"@babel/helpers - typeof";return(OO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wO(t,e){for(var o=0;othis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen),this.scaleValues.push(this.sv_arrowTailWidth));var o=e*this.scaleValues[4],l=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);void 0!==t[0].z&&(l.pntLeft.z=t[0].z,l.pntRight.z=t[0].z),this.controlPoints=[],this.controlPoints.push(l.pntLeft),this.controlPoints.push(l.pntRight);for(var n=1;nthis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen),this.scaleValues.push(this.sv_arrowTailWidth));var l=o[0].clone(),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0!==n){var r=n*this.scaleValues[4],i=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[1],o[0]);(o=[]).push(i.pntRight),o.push(i.pntLeft);for(var a=1;athis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen),this.scaleValues.push(this.sv_arrowTailWidth),this.scaleValues.push(30));var o=e*this.scaleValues[4],l=this.scaleValues[5],n=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,n-l),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,n-l+180);if(SuperMapAlgoPlot.PlottingUtil.isRight(r,t[0],t[1])){var a=r;r=i,i=a}void 0!==t[0].z&&(r.z=t[0].z,i.z=t[0].z),this.controlPoints=[],this.controlPoints.push(r),this.controlPoints.push(i);for(var u=1;uthis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen),this.scaleValues.push(this.sv_arrowTailWidth));var l=o[0].clone(),n=o[1].clone(),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0!==r){var i=r*this.scaleValues[4],a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,o[1],o[0]);(o=[]).push(a.pntRight),o.push(a.pntLeft);for(var u=1;u0&&(this.components[0].style.fillStyle=0,this.components[0].style.fillLimit=!0),this.finish()}}])&&YO(e.prototype,o),l&&YO(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zO(t){"@babel/helpers - typeof";return(zO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function FO(t,e){for(var o=0;o=2&&t.length2*l-1){for(var a=0;athis.MAX_SCALEVALUE?r=this.MAX_SCALEVALUE:r3)for(var i=l-1,a=0,u=i;ad&&(A=.5*d);var M=A*P;y.push(y[s].clone());var v,m=0;v=h-A;var O=[],w=0;for(w=2;w<=s;w++)m+=SuperMapAlgoPlot.PlottingUtil.distance(y[w-1],y[w-2]),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v,0,1e-14)?O[w]=0:SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v-m,0,1e-14)?O[w]=M:O[w]=M+(S-M)*Math.pow((v-m)/v,this.SV_ATScaleParameter);O[s+1]=M;var U=new SuperMapAlgoPlot.Point(0,0),L=new SuperMapAlgoPlot.Point(0,0),T=new SuperMapAlgoPlot.Point(0,0);for(w=2;w<=s;w++){SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,y[w-2],y[w-1],y[w],L,T),s===w&&SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,y[s],y[s-1],T,U);var j=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O[w],L,y[w-1]);r[w]=j.pntLeft,n[w]=j.pntRight}var R,V,_=U.clone();if(SuperMapAlgoPlot.PlottingUtil.distance(y[s],_)>0){var E=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(A,y[s],U);y[s]=E.clone()}for(b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,y[s+1],y[s]),n[s+1]=b.pntLeft,r[s+1]=b.pntRight,w=2;w<=s;w++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,n[w-1],n[w],n[w+1],L,T),i[w]=L.clone(),a[w]=T.clone(),SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,r[w-1],r[w],r[w+1],L,T),u[w]=L.clone(),p[w]=T.clone();SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,n[1],n[2],i[2],U),a[1]=U.clone(),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,r[1],r[2],u[2],U),p[1]=U.clone();V=SuperMapAlgoPlot.PlottingUtil.distance(n[s+1],n[s])*(1/3),(R=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(V,y[s],y[s+1])).x+=n[s+1].x-y[s].x,R.y+=n[s+1].y-y[s].y,V=(S-M)*Math.pow(V/v,this.SV_ATScaleParameter+.3),b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(V,n[s+1],R),i[s+1]=b.pntLeft.clone(),V=SuperMapAlgoPlot.PlottingUtil.distance(r[s+1],r[s])*(1/3),(R=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(V,y[s],y[s+1])).x+=r[s+1].x-y[s].x,R.y+=r[s+1].y-y[s].y,V=(S-M)*Math.pow(V/v,this.SV_ATScaleParameter+.3),b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(V,r[s+1],R),u[s+1]=b.pntRight.clone();var x=[],B=A*g,C=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(B,y[s],y[s+1]);this.m_scalePoints.push(C.clone()),B=A*f,b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(B,y[s+1],C),x.push(b.pntRight),x.push(y[s+1]),x.push(b.pntLeft);var Y=[];for(Y.push(n[s+1]),w=s;w>=1;w--)Y.push(i[w+1]),Y.push(a[w]),Y.push(n[w]);var I=[];for(w=1;w<=s;w++)I.push(r[w]),I.push(p[w]),I.push(u[w+1]);I.push(r[s+1]),l.push.apply(l,I),l.push.apply(l,x),l.push.apply(l,Y),o=A/h;var D=[];for(w=Y.length-1;w>=0;w--)D.push(Y[w]);return{dATLenDivABLen:o,arrowBodyPts:l}}},{key:"generateAYPts",value:function(t,e,o,l,n){var r=new SuperMapAlgoPlot.Point(.5*(t[2].x+o[2].x),.5*(t[2].y+o[2].y)),i=new SuperMapAlgoPlot.Point(.5*(t[1].x+o[1].x),.5*(t[1].y+o[1].y)),a=new SuperMapAlgoPlot.Point(.5*(t[0].x+o[0].x),.5*(t[0].y+o[0].y)),u=SuperMapAlgoPlot.PlottingUtil.distance(r,i),p=SuperMapAlgoPlot.PlottingUtil.distance(a,i),s=n*(u+p),c=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0),f=new SuperMapAlgoPlot.Point(0,0);if(s>u){s=u+p-s,c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(s,a,i);var g=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),y=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[0]);g=g*s/p,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(g,t[0],t[1]),y=y*s/p,f=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(y,o[0],o[1])}else{c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(s,r,i);var h=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[2]),S=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[2]);h=h*s/u,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(h,t[2],t[1]),S=S*s/u,f=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(S,o[2],o[1])}this.m_scalePoints.push(c.clone());var b=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(c,P),A=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(c,f),d=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(b,c,P),M=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(A,c,f),v=e[11].clone(),m=e[10].clone(),O=l[5].clone(),w=l[6].clone(),U=SuperMapAlgoPlot.PlottingUtil.intersectLines(m,v,c,P),L=SuperMapAlgoPlot.PlottingUtil.distance(U.intersectPoint,m),T=SuperMapAlgoPlot.PlottingUtil.distance(m,c);L=L>T?this.SV_AJCtrl*T:this.SV_AJCtrl*L;var j=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(L,m,v);v=j.clone(),e[11]=j.clone(),U=SuperMapAlgoPlot.PlottingUtil.intersectLines(w,O,c,f),L=(L=SuperMapAlgoPlot.PlottingUtil.distance(U.intersectPoint,w))>(T=SuperMapAlgoPlot.PlottingUtil.distance(w,c))?this.SV_AJCtrl*T:this.SV_AJCtrl*L,O=(j=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(L,w,O)).clone(),l[5]=j.clone();var R=[];R.push(m),R.push(v),R.push(d),R.push(c);var V=[];return V.push(c),V.push(M),V.push(O),V.push(w),{arrowLeftYaoPts:R,arrowRightYaoPts:V}}},{key:"generateAWWidth",value:function(t,e){var o=[];if(t>0)if(1==t)o.push(0);else{var l=SuperMapAlgoPlot.PlottingUtil.distance(e[0],e[this.MIN_PTCOUNT_PERARROW]);o.push(l);for(var n=1,r=this.MIN_PTCOUNT_PERARROW;nthis.MAX_SCALEVALUE?n=this.MAX_SCALEVALUE:n.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=180*SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);0.3||l<=0)&&(l=.3),this.scaleValues[2]=2*l}var n=o*this.scaleValues[0],r=this.scaleValues[1],i=o*this.scaleValues[2],a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,e);if(a.bfind){var u=a.pts.clone(),p=e[a.index].clone(),s=e[a.index+1].clone(),c=SuperMapAlgoPlot.PlottingUtil.radian(p,s)*SuperMapAlgoPlot.PlottingUtil.RTOD,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,i,i,c+r),f=[];f.push(a.pts),f.push(P);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,{lineTypeLimit:!0,surroundLineLimit:!0});var g=SuperMapAlgoPlot.PlottingUtil.radian(u,P)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=new SuperMapAlgoPlot.Point(-.2*i,.05*i),h=new SuperMapAlgoPlot.Point(-.2*i,-.05*i),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,y,g),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,h,g),A=[];A.push(P),A.push(S),A.push(b);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,A,{lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fill:!0});var d=.3*i,M=.6*i,v=n-M;v<0&&(v=0);var m=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(v,e);if(m.bfind){var O=[];O.push(m.pts);for(var w=m.index;w>=0;w--)O.push(e[w]);var U=[];U.push(m.pts);for(var L=m.index+1;L1){var R=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(T,O);if(R.bfind){(j=[]).push(R.pts);for(var V=R.index+1;V1&&(O=O.concat(j))}}if(O.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O),U.length>1){var _=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(T,U);if(_.bfind){(j=[]).push(_.pts);for(var E=_.index+1;E1&&(U=U.concat(j))}}var x=n+M;x>o&&(x=o),x=o-x;for(var B=[],C=U.length-1;C>=0;C--)B.push(U[C]);var Y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(x,B);if(Y.bfind){var I=[];I.push(Y.pts);for(var D=Y.index;D>=0;D--)I.push(B[D]);var N=[];N.push(Y.pts);for(var k=Y.index+1;k1){var z=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(T,I);if(z.bfind){(j=[]).push(z.pts);for(var F=z.index+1;F1&&(I=I.concat(j))}}if(I.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,I),N.length>1){var G=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(T,N);if(G.bfind){(j=[]).push(G.pts);for(var W=G.index+1;W1&&(N=N.concat(j))}}if(N.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,N),this.subSymbols.length>0){if(null!==this.subSymbols[0].symbolData)for(var J=0;Jt||1f&&(a=s,u=P,p=f)}}if(-1===a||a>r.length-1)return;for(var g=0,y=0;yn)return;this.scaleValues[0]=g/n}if(1===t){var A=n*this.scaleValues[0],d=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(A,l);if(!d.bfind)return;var M=d.pts.clone(),v=new SuperMapAlgoPlot.Point(l[d.index].x,l[d.index].y),m=new SuperMapAlgoPlot.Point(l[d.index+1].x,l[d.index+1].y),O=SuperMapAlgoPlot.PlottingUtil.radian(v,m)*SuperMapAlgoPlot.PlottingUtil.RTOD,w=SuperMapAlgoPlot.PlottingUtil.radian(M,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[1]=w-O;var U=SuperMapAlgoPlot.PlottingUtil.distance(M,e);this.scaleValues[2]=U/n}}}}])&&aw(e.prototype,o),l&&aw(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Pw(t){"@babel/helpers - typeof";return(Pw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fw(t,e){for(var o=0;oP&&(i=p,u=c,a=P)}}if(-1==i||i>l.length-1)return;n=0;for(var f=0;fr)return;var g=n/r;this.scaleValues[0]=g}else if(1===t){var y=r*this.scaleValues[0],h=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,y);if(-1===h.index)return;var S=h.pt,b=l[h.index],A=l[h.index+1],d=SuperMapAlgoPlot.PlottingUtil.radian(b,A),M=SuperMapAlgoPlot.PlottingUtil.radian(S,e)-d;this.scaleValues[1]=M;var v=(n=SuperMapAlgoPlot.PlottingUtil.distance(S,e))/r;this.scaleValues[2]=v}}}}])&&fw(e.prototype,o),l&&fw(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function bw(t){"@babel/helpers - typeof";return(bw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Aw(t,e){for(var o=0;o0){for(var E=0;Ed&&(g=S,h=A,y=d)}}if(-1==g||g>P.length-1)return;r=0;for(var M=0;Ml)return;var v=r/l;this.scaleValues[0]=v}else if(1===t){i=l*this.scaleValues[0];var m=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(c,i);if(-1===m.index)return;a=m.pt,u=c[m.index],p=c[m.index+1],s=SuperMapAlgoPlot.PlottingUtil.radian(u,p);var O=SuperMapAlgoPlot.PlottingUtil.radian(a,e)-s;this.scaleValues[1]=O;var w=(r=SuperMapAlgoPlot.PlottingUtil.distance(a,e))/l/1.5;this.scaleValues[2]=w}}}}])&&Aw(e.prototype,o),l&&Aw(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ow(t){"@babel/helpers - typeof";return(Ow="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ww(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],c,n,p+270),this.finish()}}}}])&&ww(e.prototype,o),l&&ww(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Rw(t){"@babel/helpers - typeof";return(Rw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vw(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],r,2*n,y-90),this.addScalePoint(u.pntLeft,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.48&&(n=.48),this.scaleValues[0]=n}}}}])&&Vw(e.prototype,o),l&&Vw(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Cw(t){"@babel/helpers - typeof";return(Cw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yw(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],r,2*n,M),this.addScalePoint(s.pntRight,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.48&&(n=.48),this.scaleValues[0]=n}}}}])&&Yw(e.prototype,o),l&&Yw(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zw(t){"@babel/helpers - typeof";return(zw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fw(t,e){for(var o=0;o2){for(var p=[],s=0;s<=360;s+=5)p.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[2],l,l,s));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p)}if(o>3)for(var c=3;c3){for(var g=.25*SuperMapAlgoPlot.PlottingUtil.distance(P[0],P[1]),y=.1*g,h=this.computeDashLine(g,y,P),S=0;S2){var p=[];n=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[2])*SuperMapAlgoPlot.PlottingUtil.RTOD,p.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,n)),p.push(t[2]),u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p),this.addArrow(p,this.scaleValues[0]*u/e)}if(o>3)for(var s=3;s2)for(var u=2;u=u){var p=[];if(p.push(this.getMinDisPt(t[u],t[1],r,i)),p.push(t[u+1]),2==u){for(var s=.25*SuperMapAlgoPlot.PlottingUtil.distance(p[0],p[1]),c=.1*s,P=this.computeDashLine(s,c,p),f=0;f=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=2*n}var r=this.scaleValues[0],i=l*this.scaleValues[2],a=l*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(o.x+i,o.y+a),p=l*r,s=new SuperMapAlgoPlot.Point(u.x-.5*p,u.y);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,p,0);var c=new SuperMapAlgoPlot.Point(u.x+.5*p,u.y),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.5*p,.5*p,-90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.3*p,.3*p,90),g=[];g.push(P),g.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.2*p,.2*p,90),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.05*p,.05*p,0),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.05*p,.05*p,180),b=[];b.push(y),b.push(h),b.push(S);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{fillLimit:!0,fill:!0});var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,180);this.addScalePoint(A,0),this.addScalePoint(u,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===r)return;var i=0,a=0,u=0,p=0;if(0===t){u=r*(i=this.scaleValues[2]),p=r*(a=this.scaleValues[3]);var s=new SuperMapAlgoPlot.Point(n.x+u,n.y+p),c=SuperMapAlgoPlot.PlottingUtil.distance(e,s);this.scaleValues[0]=c/r}else 1===t&&(i=(u=e.x-n.x)/r,a=(p=e.y-n.y)/r,this.scaleValues[2]=i,this.scaleValues[3]=a)}}}])&&aU(e.prototype,o),l&&aU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function PU(t){"@babel/helpers - typeof";return(PU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fU(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=2*n}var r=this.scaleValues[0],i=l*this.scaleValues[2],a=l*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(o.x+i,o.y+a),p=l*r,s=new SuperMapAlgoPlot.Point(u.x-.5*p,u.y);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,p,0);var c=new SuperMapAlgoPlot.Point(u.x+.5*p,u.y),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.3*p,.3*p,-90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.5*p,.5*p,90),g=[];g.push(P),g.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.2*p,.2*p,-90),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.05*p,.05*p,0),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.05*p,.05*p,180),b=[];b.push(y),b.push(h),b.push(S);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{fillLimit:!0,fill:!0});var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,180);this.addScalePoint(A,0),this.addScalePoint(u,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===r)return;var i=0,a=0,u=0,p=0;if(0===t){i=r*(u=this.scaleValues[2]),a=r*(p=this.scaleValues[3]);var s=new SuperMapAlgoPlot.Point(n.x+i,n.y+a),c=SuperMapAlgoPlot.PlottingUtil.distance(e,s);this.scaleValues[0]=c/r}else 1===t&&(u=(i=e.x-n.x)/r,p=(a=e.y-n.y)/r,this.scaleValues[2]=u,this.scaleValues[3]=p)}}}])&&fU(e.prototype,o),l&&fU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function bU(t){"@babel/helpers - typeof";return(bU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function AU(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],A,n,p-90),this.finish()}}}}])&&AU(e.prototype,o),l&&AU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function OU(t){"@babel/helpers - typeof";return(OU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wU(t,e){for(var o=0;oe.x),c=[];s?(c.push(o),c.push(u)):(c.push(o),c.push(p)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c);var P=[];s?(P.push(l),P.push(p)):(P.push(l),P.push(u)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var f,g,y,h,S,b=.37*r,A=SuperMapAlgoPlot.PlottingUtil.linePnt(n,e,b),d=.09*r,M=[];M.push(A),M.push(new SuperMapAlgoPlot.Point(A.x,A.y+d)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,M,{lineTypeLimit:!0}),s?(g=(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,n,A)).pntLeft,y=(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*d,n,A)).pntLeft,h=(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,g,y)).pntRight,S=f.pntLeft):(g=(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,n,A)).pntRight,y=(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*d,n,A)).pntRight,h=(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,g,y)).pntRight,S=f.pntLeft);var v=[];v.push(g),v.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,{lineTypeLimit:!0});var m=[];m.push(h),m.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,{lineTypeLimit:!0}),this.addText("催",A,d,0),this.finish()}}}])&&wU(e.prototype,o),l&&wU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function RU(t){"@babel/helpers - typeof";return(RU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function VU(t,e){for(var o=0;o0){this.computeSubSymbol(this.subSymbols[0],c,s,a);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],2.1*s,2.1*s,a),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],3*s,3*s,a),g=[];g.push(P),g.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.2*s,.2*s,a),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.05*s,.05*s,a+90),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.05*s,.05*s,a+270),b=[];b.push(y),b.push(h),b.push(S);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{fillLimit:!0,fill:!0})}var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,l,l,a+90);this.addScalePoint(A,0),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=.15&&(a=.15),this.scaleValues[1]=a}}}}])&&VU(e.prototype,o),l&&VU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function CU(t){"@babel/helpers - typeof";return(CU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function YU(t,e){for(var o=0;o=2&&this.controlPoints.length0){var o;if(null==this.subSymbols[0].symbolData)return;o=this.subSymbols[0].symbolData.symbolSize.x;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=l*this.scaleValues[4],r=l*this.scaleValues[5],i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,t),u=SuperMapAlgoPlot.PlottingUtil.radian(a.pts,i.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=60*SuperMapAlgoPlot.PlottingUtil.distance(i.pts,a.pts)/o;if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],a.pts,p,u-90),i.pts.isScalePoint=!0,i.pts.tag=this.scalePoints.length,this.scalePoints.push(i.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var l=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),n=SuperMapAlgoPlot.PlottingUtil.clonePoints(o);n.splice(0,2),n.unshift(l);var r=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,n),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(-1===r.index&&3===t&&(r.pt=l.clone()),-1==r.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMapAlgoPlot.PlottingUtil.clonePoints(n);a.splice(0,r.index+1),a.unshift(r.pt);var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(a);i.5&&(this.scaleValues[4]=.5)}}}}}])&&YU(e.prototype,o),l&&YU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zU(t){"@babel/helpers - typeof";return(zU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function FU(t,e){for(var o=0;o=2&&this.controlPoints.length.5&&(this.scaleValues[4]=.5)}}}}}])&&FU(e.prototype,o),l&&FU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function KU(t){"@babel/helpers - typeof";return(KU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qU(t,e){for(var o=0;o=2&&this.controlPoints.length0&&this.computeSubSymbol(this.subSymbols[0],i,2*r,0);var g=new SuperMapAlgoPlot.Point(i.x+4*r,i.y),y=new SuperMapAlgoPlot.Point(i.x+r,i.y),h=[];h.push(g),h.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,s);var S=new SuperMapAlgoPlot.Point(i.x+4*r,i.y+r/2),b=new SuperMapAlgoPlot.Point(i.x+4*r,i.y),A=[];A.push(S),A.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A,s),this.addScalePoint(i,0);var d=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,2*r,2*r,90);this.addScalePoint(d,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0===l)return;var r=0,i=0;if(0===t&&(r=(e.x-n.x)/l,this.scaleValues[0]=r,i=(e.y-n.y)/l,this.scaleValues[1]=i),1===t){r=this.scaleValues[0],i=this.scaleValues[1];var a=new SuperMapAlgoPlot.Point(n.x+l*r,n.y+l*i),u=SuperMapAlgoPlot.PlottingUtil.distance(a,e);this.scaleValues[2]=u/2/l}}}}])&&qU(e.prototype,o),l&&qU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function tL(t){"@babel/helpers - typeof";return(tL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eL(t,e){for(var o=0;o=2&&this.controlPoints.lengthc.length||2>n.length)return l;var P=SuperMapAlgoPlot.PlottingUtil.intersectLines(c[0],c[1],n[0],n[1]);return P.isIntersectLines?P.intersectPoint:l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length1&&(g=1),y>1&&(y=1),this.scaleValues[0]=g,this.scaleValues[1]=y}if(1===t){var h=this.scaleValues[0],S=this.scaleValues[1],b=this.ComputeSubSymbolPt(h,S,i,s),A=SuperMapAlgoPlot.PlottingUtil.distance(b,e)/c;this.scaleValues[2]=A;var d=SuperMapAlgoPlot.PlottingUtil.radian(b,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[3]=d}}}}])&&eL(e.prototype,o),l&&eL(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function iL(t){"@babel/helpers - typeof";return(iL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function aL(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=2*n}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3],u=l*r,p=new SuperMapAlgoPlot.Point(o.x+l*i,o.y+l*a);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,u,0),this.addScalePoint(p);var s=u,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,s,s,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=0,a=0;if(0===t)i=(e.x-n.x)/r,this.scaleValues[2]=i,a=(e.y-n.y)/r,this.scaleValues[3]=a;else if(1===t){i=this.scaleValues[2],a=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(n.x+r*i,n.y+r*a),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e);this.scaleValues[0]=p/r}}}}])&&aL(e.prototype,o),l&&aL(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function PL(t){"@babel/helpers - typeof";return(PL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fL(t,e){for(var o=0;o=2&&this.controlPoints.length0){var o;if(null==this.subSymbols[0].symbolData)return;o=this.subSymbols[0].symbolData.symbolSize.x;var l=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]),n=l*this.scaleValues[4],r=l*this.scaleValues[5],i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,t),u=SuperMapAlgoPlot.PlottingUtil.radian(a.pts,i.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=60*SuperMapAlgoPlot.PlottingUtil.distance(i.pts,a.pts)/o*2,s=new SuperMapAlgoPlot.Point(2*a.pts.x-i.pts.x,2*a.pts.y-i.pts.y),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,u),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,u-180);if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&(this.computeSubSymbol(this.subSymbols[0],a.pts,p,u-90),this.computeSubSymbol(this.subSymbols[1],c,p,u-90),this.computeSubSymbol(this.subSymbols[2],P,p,u-90)),i.pts.isScalePoint=!0,i.pts.tag=this.scalePoints.length,this.scalePoints.push(i.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var l=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),n=SuperMapAlgoPlot.PlottingUtil.clonePoints(o);n.splice(0,2),n.unshift(l);var r=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,n),i=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);if(-1===r.index&&3===t&&(r.pt=l.clone()),-1==r.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMapAlgoPlot.PlottingUtil.distance(l,e);this.scaleValues[t+1]=a/i,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5),this.scaleValues[5]>1&&(this.scaleValues[5]=1)}}}}}])&&aT(e.prototype,o),l&&aT(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function PT(t){"@babel/helpers - typeof";return(PT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fT(t,e){for(var o=0;o=n&&l>=r?(e=t[0],o=t[1]):n>=l&&n>=r?(e=t[1],o=t[2]):(e=t[0],o=t[2])}var i=SuperMapAlgoPlot.PlottingUtil.dirAngle(e,o)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),u=.1*a,p=[];if(p=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),0!=(p=SuperMapAlgoPlot.PlottingUtil.clearSamePts(p)).length){for(var s=p[0].x,c=p[0].x,P=p[0].y,f=p[0].y,g=0;gp[g].x&&(s=p[g].x),cp[g].y&&(P=p[g].y),f=p.length)){var w=[];w.push(h);for(var U=b+1;U0;x--)w.push(_[x]);T=new SuperMapAlgoPlot.Point(0,0),j=-1;var B=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(R,w);if(B.bfind){j=B.index,T=B.pts,(_=[]).push(T);for(var C=j+1;CSuperMapAlgoPlot.PlottingUtil.distance(y,k)?(Y=N,z=SuperMapAlgoPlot.PlottingUtil.dirAngle(N,k)*SuperMapAlgoPlot.PlottingUtil.RTOD):(Y=k,z=SuperMapAlgoPlot.PlottingUtil.dirAngle(Y,N)*SuperMapAlgoPlot.PlottingUtil.RTOD);var F=SuperMapAlgoPlot.PlottingUtil.circlePoint(Y,.2*u,.2*u,z),G=SuperMapAlgoPlot.PlottingUtil.circlePoint(F,.05*u,.05*u,z+90),W=SuperMapAlgoPlot.PlottingUtil.circlePoint(F,.05*u,.05*u,z-90);(D=[]).push(G),D.push(W),D.push(Y),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,D),this.finish()}}}}}}}])&&fT(e.prototype,o),l&&fT(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function bT(t){"@babel/helpers - typeof";return(bT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function AT(t,e){for(var o=0;o=1&&(this.scaleValues[5]=a);break;case 1:if(u=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e))return;n=(SuperMapAlgoPlot.PlottingUtil.radian(o[1],e)-SuperMapAlgoPlot.PlottingUtil.radian(o[0],o[1]))*this.RTOD,l=SuperMapAlgoPlot.PlottingUtil.distance(e,o[1])/i,this.scaleValues[2]=l,this.scaleValues[7]=n,r=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[0],o[1]),(a=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/i)>=1.1&&(this.scaleValues[5]=a);break;case 2:if(!(u=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e)))return;n=(SuperMapAlgoPlot.PlottingUtil.radian(o[0],e)-SuperMapAlgoPlot.PlottingUtil.radian(o[0],o[1]))*this.RTOD,l=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/i,this.scaleValues[3]=l,this.scaleValues[8]=n,r=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[0],o[1]),(a=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/i)>=1.1&&-1==this.scaleValues[10]&&(this.scaleValues[5]=a);break;case 3:if(!(u=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e)))return;n=(SuperMapAlgoPlot.PlottingUtil.radian(o[1],e)-SuperMapAlgoPlot.PlottingUtil.radian(o[0],o[1]))*this.RTOD,l=SuperMapAlgoPlot.PlottingUtil.distance(e,o[1])/i,this.scaleValues[4]=l,this.scaleValues[9]=n,r=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[0],o[1]),(a=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/i)>=1.1&&-1==this.scaleValues[10]&&(this.scaleValues[5]=a);break;case 4:var a,u=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[10]=u?-1:1,r=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[0],o[1]),(a=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/i)>=1.1&&(this.scaleValues[5]=a)}}}},{key:"AddCellPoints",value:function(t,e,o){for(var l=0;l3){var o=[];o.push(t[0]),o.push(t[1]),o.push(t[2]);var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);this.addArrow(l,this.scaleValues[0]);for(var n=[],r=3;r=2){var i=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(n);this.addArrow(i,this.scaleValues[0])}}else if(t.length<=3){var a=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);this.addArrow(a,this.scaleValues[0])}this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>o.length)){0===this.scaleValues.length&&this.scaleValues.push(.2);SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1])}}}])&&VT(e.prototype,o),l&&VT(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function CT(t){"@babel/helpers - typeof";return(CT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function YT(t,e){for(var o=0;o0;n--)l.push(o.leftBody[n]);var r=this.arrowMeshs(e.tempPt);l=(l=l.concat(r.shapePts)).concat(o.rightBody);var i={fillLimit:!0,fillColorLimit:!0,fillStyle:0,strokeOpacity:1,opacity:1,lineColorLimit:!0,strokeColor:"#0000ff",color:"#0000ff",lineColor:"#0000ff",surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,i),SuperMapAlgoPlot.AlgoSymbol1004.prototype.scaleValues=this.scaleValues;var a=SuperMapAlgoPlot.AlgoSymbol1004.prototype.updateScalePoints(e.tempPt);this.scalePoints=[],this.addScalePoint(a[a.length-1]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.scaleValues.length<4&&(this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen));var l=o.length;if(l<=2)return;var n,r,i,a,u=this.operateCtrlPts(o);l=u.length,l--;if(this.scaleValues.length<4){var p=this.calcDefaultScaleValues(l);n=p[0],r=p[1],i=p[2],a=p[3]}else n=this.scaleValues[0],r=this.scaleValues[1],i=this.scaleValues[2],a=this.scaleValues[3];for(var s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),c=[],P=0;P=3&&(n=SuperMapAlgoPlot.PlottingUtil.radian(a[p.index-1],a[p.index+1])*this.RTOD,r=SuperMapAlgoPlot.PlottingUtil.radian(a[s.index-1],a[s.index+1])*this.RTOD,i=SuperMapAlgoPlot.PlottingUtil.radian(a[c.index-1],a[c.index+1])*this.RTOD);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p.pt,.9*u,.9*u,n+90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(p.pt,.9*u,.9*u,n+270),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(s.pt,.8*u,.8*u,r+90),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(s.pt,.8*u,.8*u,r+270),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c.pt,.3*u,.3*u,i+90),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(c.pt,.3*u,.3*u,i+270),b=[];b.push(e),b.push(P),b.push(g),b.push(h),b.push(t[0]);var A=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(b),d=[];return d.push(o),d.push(f),d.push(y),d.push(S),d.push(t[0]),{leftBody:A,rightBody:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(d)}}},{key:"GetLeftAndRightPt",value:function(){var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length;if(!(e=3){for(var s=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),c=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(t[1],s),P=[],f=0;f<=c.index;f++)P.push(s[f]);var g=SuperMapAlgoPlot.PlottingUtil.polylineDistance(P),y=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(s,.9*g);u=SuperMapAlgoPlot.PlottingUtil.radian(s[y.index-1],s[y.index+1])*this.RTOD;if(n=SuperMapAlgoPlot.PlottingUtil.circlePoint(y.pt,i,i,u+90),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(y.pt,i,i,u+270),SuperMapAlgoPlot.PlottingUtil.isRight(n,s[y.index-1],s[y.index+1])){p=n;n=r,r=p}var h=[];for(f=0;f<=y.index;f++)h.push(s[f]);o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(h)}return{leftPt:n,rightPt:r,dTailLenght:o}}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(l,0)){var n=this.operateCtrlPts(t);e=n.length,e--;for(var r=[],i=0;i=0;y--)e.push(p[y]),l.push(p[y])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:n}}},{key:"operateCtrlPts",value:function(t){var e=SuperMapAlgoPlot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,l=((e[0].y+e[1].y)/2+e[2].y)/2,n=new SuperMapAlgoPlot.Point(o,l),r=e[2];e[2]=n,e.push(r)}return e}}])&&YT(e.prototype,o),l&&YT(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zT(t){"@babel/helpers - typeof";return(zT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function FT(t,e){for(var o=0;o=3){var p=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[2],o),s=[];s.push(p),s.push(t[2]);var c=[];if(t.length>3){for(a=3;a0&&this.addScalePoint(r[0]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>o.length)&&0==t){var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[1])/l;n<=.5&&(this.scaleValues[1]=n)}}}])&&FT(e.prototype,o),l&&FT(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function KT(t){"@babel/helpers - typeof";return(KT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qT(t,e){for(var o=0;o=3){var p=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[2],o),s=[];s.push(p),s.push(t[2]);var c=[];if(t.length>3){for(a=3;a0&&this.addScalePoint(r[0]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>o.length)&&0==t){var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[1])/l;this.scaleValues[1]=n,this.scaleValues[1]>.7&&(this.scaleValues[1]=.7)}}}])&&qT(e.prototype,o),l&&qT(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function tj(t){"@babel/helpers - typeof";return(tj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ej(t,e){for(var o=0;o3){var r=[];if(!this.isEdit){var i=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[3])*this.RTOD;this.scaleValues[2]=i}l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,o,this.scaleValues[2]),r.push(l);for(var a=3;a0&&s.push(p[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);var P=[];for(a=0;a<=360;a+=5){var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o*this.scaleValues[1],o*this.scaleValues[1],a);c.push(f),30!=a&&210!=a||P.push(f)}var g={lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,lineColor:"#0000ff"};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,g),c.length>0&&(this.addScalePoint(c[0]),t.length>3&&this.addScalePoint(l)),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>o.length)){if(0===t){var l,n;if(2===o.length)l=n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);else if((l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]))<(n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[2]))){var r=l;l=n,n=r}var i=n*this.scaleValues[1];(r=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/i)<=2&&(this.scaleValues[1]*=r)}if(1===t){var a=SuperMapAlgoPlot.PlottingUtil.radian(o[0],e)*this.RTOD;this.scaleValues[2]=a}}}}])&&ej(e.prototype,o),l&&ej(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ij(t){"@babel/helpers - typeof";return(ij="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function aj(t,e){for(var o=0;o=3){var s=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[2],o),c=[];c.push(s),c.push(t[2]);var P=[];if(t.length>3){for(a=3;a0&&this.addScalePoint(r[0]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>o.length)&&0==t){var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[1])/l;this.scaleValues[1]=n,this.scaleValues[1]>.7&&(this.scaleValues[1]=.7)}}}])&&aj(e.prototype,o),l&&aj(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Pj(t){"@babel/helpers - typeof";return(Pj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fj(t,e){for(var o=0;o2)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[0]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[1],o[0]),r=SuperMapAlgoPlot.PlottingUtil.distance(n,o[1]);90>SuperMapAlgoPlot.PlottingUtil.radian(o[1],n)*SuperMapAlgoPlot.PlottingUtil.RTOD&&(r=-r);var i=r/l;this.scaleValues[0]=i;var a=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/l;this.scaleValues[1]=a}else if(1==t){var u=SuperMapAlgoPlot.PlottingUtil.distance(o[0],e)/l;if(.1>u||u>.95)return;this.scaleValues[2]=u}else if(2==t){var p=SuperMapAlgoPlot.PlottingUtil.distance(o[0],e)/l;if(.1>p||p>.95)return;this.scaleValues[3]=p}}}}])&&fj(e.prototype,o),l&&fj(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();SuperMapAlgoPlot.AlgoSymbol37301=Sj;SuperMapAlgoPlot.WJAlgoSymbolFactory=SuperMapAlgoPlot.WJAlgoSymbolFactory||{};SuperMapAlgoPlot.WJAlgoSymbolFactory.getAlgoSymbol=function(t,e,o){if(123===t)switch(e){case 20602:return new SuperMapAlgoPlot.AlgoSymbol15805(o);case 2060201:return new SuperMapAlgoPlot.AlgoSymbol2060201(o);case 2060202:return new SuperMapAlgoPlot.AlgoSymbol2060202(o);case 20915:return new SuperMapAlgoPlot.AlgoSymbol12500(o);case 2091501:return new SuperMapAlgoPlot.AlgoSymbol12501(o);case 2091502:return new SuperMapAlgoPlot.AlgoSymbol12502(o);case 2091503:return new SuperMapAlgoPlot.AlgoSymbol2091503(o);case 2092101:return new SuperMapAlgoPlot.AlgoSymbol2092101(o);case 21003:return new SuperMapAlgoPlot.AlgoSymbol13700(o);case 21206:return new SuperMapAlgoPlot.AlgoSymbol15200(o);case 2120601:return new SuperMapAlgoPlot.AlgoSymbol15201(o);case 2120602:return new SuperMapAlgoPlot.AlgoSymbol15202(o);case 21207:return new SuperMapAlgoPlot.AlgoSymbol21207(o);case 21212:return new SuperMapAlgoPlot.AlgoSymbol15800(o);case 2121201:return new SuperMapAlgoPlot.AlgoSymbol15801(o);case 2121202:return new SuperMapAlgoPlot.AlgoSymbol15802(o);case 2121203:return new SuperMapAlgoPlot.AlgoSymbol15803(o);case 2121204:return new SuperMapAlgoPlot.AlgoSymbol15804(o);case 2121205:return new SuperMapAlgoPlot.AlgoSymbol15806(o);case 21213:return new SuperMapAlgoPlot.AlgoSymbol15900(o);case 21214:return new SuperMapAlgoPlot.AlgoSymbol16200(o);case 2121401:return new SuperMapAlgoPlot.AlgoSymbol16201(o);case 2121402:return new SuperMapAlgoPlot.AlgoSymbol16202(o);case 2121403:return new SuperMapAlgoPlot.AlgoSymbol16203(o);case 2121404:return new SuperMapAlgoPlot.AlgoSymbol2121504(o);case 2121405:return new SuperMapAlgoPlot.AlgoSymbol2121505(o);case 2121406:return new SuperMapAlgoPlot.AlgoSymbol2121506(o);case 2121407:return new SuperMapAlgoPlot.AlgoSymbol2121507(o);case 21215:return new SuperMapAlgoPlot.AlgoSymbol21216(o);case 2121501:return new SuperMapAlgoPlot.AlgoSymbol2121601(o);case 2121502:return new SuperMapAlgoPlot.AlgoSymbol2121602(o);case 21217:return new SuperMapAlgoPlot.AlgoSymbol16700(o);case 21221:return new SuperMapAlgoPlot.AlgoSymbol17500(o);case 21220:return new SuperMapAlgoPlot.AlgoSymbol17400(o);case 2122001:return new SuperMapAlgoPlot.AlgoSymbol17401(o);case 2122101:return new SuperMapAlgoPlot.AlgoSymbol17501(o);case 21222:return new SuperMapAlgoPlot.AlgoSymbol17700(o);case 2122201:return new SuperMapAlgoPlot.AlgoSymbol2122201(o);case 2122202:return new SuperMapAlgoPlot.AlgoSymbol2122202(o);case 2122203:return new SuperMapAlgoPlot.AlgoSymbol17703(o);case 2122204:return new SuperMapAlgoPlot.AlgoSymbol17704(o);case 2122205:return new SuperMapAlgoPlot.AlgoSymbol1770501(o);case 21223:return new SuperMapAlgoPlot.AlgoSymbol17800(o);case 2122301:return new SuperMapAlgoPlot.AlgoSymbol17801(o);case 2122302:return new SuperMapAlgoPlot.AlgoSymbol17802(o);case 2122303:return new SuperMapAlgoPlot.AlgoSymbol17803(o);case 2122304:return new SuperMapAlgoPlot.AlgoSymbol17804(o);case 2122305:return new SuperMapAlgoPlot.AlgoSymbol17805(o);case 2122306:return new SuperMapAlgoPlot.AlgoSymbol17806(o);case 21605:return new SuperMapAlgoPlot.AlgoSymbol20300(o);case 2160501:return new SuperMapAlgoPlot.AlgoSymbol20301(o);case 30008:return new SuperMapAlgoPlot.AlgoSymbol30008(o);case 3000801:return new SuperMapAlgoPlot.AlgoSymbol3000801(o);case 3000802:return new SuperMapAlgoPlot.AlgoSymbol3000802(o);case 3000803:return new SuperMapAlgoPlot.AlgoSymbol3000803(o);case 3000804:return new SuperMapAlgoPlot.AlgoSymbol3000804(o);case 3000805:return new SuperMapAlgoPlot.AlgoSymbol3000805(o);case 3000806:return new SuperMapAlgoPlot.AlgoSymbol3000806(o);case 3000807:return new SuperMapAlgoPlot.AlgoSymbol3000807(o);case 3000808:return new SuperMapAlgoPlot.AlgoSymbol3000808(o);case 3000809:return new SuperMapAlgoPlot.AlgoSymbol3000809(o);case 30009:return new SuperMapAlgoPlot.AlgoSymbol30009(o);case 30010:return new SuperMapAlgoPlot.AlgoSymbol30010(o);case 30011:return new SuperMapAlgoPlot.AlgoSymbol30011(o);case 3001101:return new SuperMapAlgoPlot.AlgoSymbol3001101(o);case 3001102:return new SuperMapAlgoPlot.AlgoSymbol3001102(o);case 3001103:return new SuperMapAlgoPlot.AlgoSymbol3001103(o);case 3001104:return new SuperMapAlgoPlot.AlgoSymbol3001104(o);case 3001105:return new SuperMapAlgoPlot.AlgoSymbol3001105(o);case 30012:return new SuperMapAlgoPlot.AlgoSymbol30012(o);case 30013:return new SuperMapAlgoPlot.AlgoSymbol30013(o);case 3001301:return new SuperMapAlgoPlot.AlgoSymbol3001301(o);case 3001302:return new SuperMapAlgoPlot.AlgoSymbol3001302(o);case 30014:return new SuperMapAlgoPlot.AlgoSymbol30014(o);case 30018:return new SuperMapAlgoPlot.AlgoSymbol42500(o);case 30023:return new SuperMapAlgoPlot.AlgoSymbol30023(o);case 30024:return new SuperMapAlgoPlot.AlgoSymbol30020(o);case 3002401:return new SuperMapAlgoPlot.AlgoSymbol3002001(o);case 3002402:return new SuperMapAlgoPlot.AlgoSymbol3002002(o);case 3002403:return new SuperMapAlgoPlot.AlgoSymbol3002005(o);case 30025:return new SuperMapAlgoPlot.AlgoSymbol30025(o);case 3002501:return new SuperMapAlgoPlot.AlgoSymbol3002501(o);case 3002502:return new SuperMapAlgoPlot.AlgoSymbol3002502(o);case 3002503:return new SuperMapAlgoPlot.AlgoSymbol3002503(o);case 3002504:return new SuperMapAlgoPlot.AlgoSymbol3002504(o);case 3002505:return new SuperMapAlgoPlot.AlgoSymbol3002505(o);case 30026:return new SuperMapAlgoPlot.AlgoSymbol30026(o);case 30028:return new SuperMapAlgoPlot.AlgoSymbol30030(o);case 3002801:return new SuperMapAlgoPlot.AlgoSymbol3003001(o);case 30029:return new SuperMapAlgoPlot.AlgoSymbol30031(o);case 50106:return new SuperMapAlgoPlot.AlgoSymbol21900(o);case 5010301:return new SuperMapAlgoPlot.AlgoSymbol3010301(o);case 50108:return new SuperMapAlgoPlot.AlgoSymbol50108(o);case 5010303:return new SuperMapAlgoPlot.AlgoSymbol3010303(o);case 5010304:return new SuperMapAlgoPlot.AlgoSymbol3010304(o);case 5010401:return new SuperMapAlgoPlot.AlgoSymbol5010401(o);case 5020801:return new SuperMapAlgoPlot.AlgoSymbol5020801(o);case 5020802:return new SuperMapAlgoPlot.AlgoSymbol5020802(o);case 5021711:return new SuperMapAlgoPlot.AlgoSymbol26502(o);case 5021803:return new SuperMapAlgoPlot.AlgoSymbol5021803(o);case 5022001:return new SuperMapAlgoPlot.AlgoSymbol5022001(o);case 5022002:return new SuperMapAlgoPlot.AlgoSymbol5022002(o);case 50223:return new SuperMapAlgoPlot.AlgoSymbol50223(o);case 5022301:return new SuperMapAlgoPlot.AlgoSymbol5022301(o);case 40301:case 4030101:case 4030102:case 4030103:case 4030104:return new SuperMapAlgoPlot.AlgoSymbol22000(o);case 40302:case 4030201:case 4030202:case 4030203:case 4030204:return new SuperMapAlgoPlot.AlgoSymbol40302(o);case 40303:return new SuperMapAlgoPlot.AlgoSymbol26501(o);case 4030301:return new SuperMapAlgoPlot.AlgoSymbol4030301(o);case 4030302:return new SuperMapAlgoPlot.AlgoSymbol4030302(o);case 4030303:return new SuperMapAlgoPlot.AlgoSymbol4030303(o);case 40304:return new SuperMapAlgoPlot.AlgoSymbol40304(o);case 4030401:return new SuperMapAlgoPlot.AlgoSymbol4030401(o);case 40305:return new SuperMapAlgoPlot.AlgoSymbol40305(o);case 4030501:return new SuperMapAlgoPlot.AlgoSymbol4030501(o);case 4030602:return new SuperMapAlgoPlot.AlgoSymbol4030602(o);case 4030802:case 4031202:return new SuperMapAlgoPlot.AlgoSymbol4030802(o);case 50101:return new SuperMapAlgoPlot.AlgoSymbol25201(o);case 5010101:return new SuperMapAlgoPlot.AlgoSymbol21401(o);case 50102:return new SuperMapAlgoPlot.AlgoSymbol21500(o);case 5010202:return new SuperMapAlgoPlot.AlgoSymbol21502(o);case 5010203:return new SuperMapAlgoPlot.AlgoSymbol21503(o);case 5010204:return new SuperMapAlgoPlot.AlgoSymbol21504(o);case 50103:case 5010302:return new SuperMapAlgoPlot.AlgoSymbol21600(o);case 50104:return new SuperMapAlgoPlot.AlgoSymbol21800(o);case 50107:case 5010701:return new SuperMapAlgoPlot.AlgoSymbol22000(o);case 50208:return new SuperMapAlgoPlot.AlgoSymbol23400(o);case 50209:return new SuperMapAlgoPlot.AlgoSymbol23500(o);case 50210:return new SuperMapAlgoPlot.AlgoSymbol23800(o);case 50212:case 5021101:return new SuperMapAlgoPlot.AlgoSymbol23901(o);case 5021102:return new SuperMapAlgoPlot.AlgoSymbol23902(o);case 50220:return new SuperMapAlgoPlot.AlgoSymbol28900(o);case 50221:return new SuperMapAlgoPlot.AlgoSymbol29000(o);case 50225:return new SuperMapAlgoPlot.AlgoSymbol50225(o);case 50226:return new SuperMapAlgoPlot.AlgoSymbol50226(o);case 50222:return new SuperMapAlgoPlot.AlgoSymbol29101(o);case 5022201:return new SuperMapAlgoPlot.AlgoSymbol29103(o);case 50227:return new SuperMapAlgoPlot.AlgoSymbol35200(o);case 50301:return new SuperMapAlgoPlot.AlgoSymbol1004(o);case 5030101:return new SuperMapAlgoPlot.AlgoSymbol25200(o);case 5030102:return new SuperMapAlgoPlot.AlgoSymbol25201(o);case 50302:return new SuperMapAlgoPlot.AlgoSymbol25000(o);case 50303:return new SuperMapAlgoPlot.AlgoSymbol25400(o);case 5030103:return new SuperMapAlgoPlot.AlgoSymbol5030103(o);case 5030104:return new SuperMapAlgoPlot.AlgoSymbol5030104(o);case 5030105:return new SuperMapAlgoPlot.AlgoSymbol5030105(o);case 5030107:return new SuperMapAlgoPlot.AlgoSymbol5030107(o);case 5030106:return new SuperMapAlgoPlot.AlgoSymbol1021(o);case 5030301:return new SuperMapAlgoPlot.AlgoSymbol5030301(o);case 50308:return new SuperMapAlgoPlot.AlgoSymbol26400(o);case 50309:return new SuperMapAlgoPlot.AlgoSymbol26500(o);case 50310:return new SuperMapAlgoPlot.AlgoSymbol26600(o);case 5031001:return new SuperMapAlgoPlot.AlgoSymbol26601(o);case 50312:return new SuperMapAlgoPlot.AlgoSymbol28000(o);case 50313:return new SuperMapAlgoPlot.AlgoSymbol28100(o);case 50314:return new SuperMapAlgoPlot.AlgoSymbol28200(o);case 5031401:return new SuperMapAlgoPlot.AlgoSymbol5031401(o);case 50315:return new SuperMapAlgoPlot.AlgoSymbol28300(o);case 5031501:return new SuperMapAlgoPlot.AlgoSymbol28301(o);case 50316:return new SuperMapAlgoPlot.AlgoSymbol29800(o);case 50317:return new SuperMapAlgoPlot.AlgoSymbol1006(o);case 5031701:return new SuperMapAlgoPlot.AlgoSymbol1002(o);case 50318:return new SuperMapAlgoPlot.AlgoSymbol50318(o);case 50328:return new SuperMapAlgoPlot.AlgoSymbol50328(o);case 50320:return new SuperMapAlgoPlot.AlgoSymbol30000(o);case 5010201:return new SuperMapAlgoPlot.AlgoSymbol21501(o);case 5032001:case 5032002:case 5032003:return new SuperMapAlgoPlot.AlgoSymbol5032003(o);case 5032004:return new SuperMapAlgoPlot.AlgoSymbol5032004(o);case 50321:case 5032101:case 5032102:return new SuperMapAlgoPlot.AlgoSymbol50321(o);case 50322:return new SuperMapAlgoPlot.AlgoSymbol30200(o);case 50323:return new SuperMapAlgoPlot.AlgoSymbol50323(o);case 5032201:return new SuperMapAlgoPlot.AlgoSymbol30201(o);case 50330:return new SuperMapAlgoPlot.AlgoSymbol30800(o);case 50331:return new SuperMapAlgoPlot.AlgoSymbol50331(o);case 5033001:return new SuperMapAlgoPlot.AlgoSymbol5033001(o);case 50335:return new SuperMapAlgoPlot.AlgoSymbol50335(o);case 5033501:return new SuperMapAlgoPlot.AlgoSymbol5033501(o);case 5033502:return new SuperMapAlgoPlot.AlgoSymbol5033502(o);case 50338:return new SuperMapAlgoPlot.AlgoSymbol31300(o);case 5033801:return new SuperMapAlgoPlot.AlgoSymbol31301(o);case 5033802:return new SuperMapAlgoPlot.AlgoSymbol5033802(o);case 5033803:return new SuperMapAlgoPlot.AlgoSymbol5033803(o);case 50339:return new SuperMapAlgoPlot.AlgoSymbol31400(o);case 5033901:return new SuperMapAlgoPlot.AlgoSymbol31401(o);case 50341:return new SuperMapAlgoPlot.AlgoSymbol50341(o);case 5034101:return new SuperMapAlgoPlot.AlgoSymbol5034101(o);case 5034102:return new SuperMapAlgoPlot.AlgoSymbol5034102(o);case 50342:return new SuperMapAlgoPlot.AlgoSymbol50342(o);case 5034201:return new SuperMapAlgoPlot.AlgoSymbol5034201(o);case 5034202:return new SuperMapAlgoPlot.AlgoSymbol5034202(o);case 5034203:return new SuperMapAlgoPlot.AlgoSymbol5034203(o);case 50343:return new SuperMapAlgoPlot.AlgoSymbol50343(o);case 5034301:return new SuperMapAlgoPlot.AlgoSymbol5034301(o);case 5034302:return new SuperMapAlgoPlot.AlgoSymbol5034302(o);case 5034303:return new SuperMapAlgoPlot.AlgoSymbol5034303(o);case 50344:return new SuperMapAlgoPlot.AlgoSymbol50344(o);case 50348:return new SuperMapAlgoPlot.AlgoSymbol32300(o);case 5034801:return new SuperMapAlgoPlot.AlgoSymbol5034801(o);case 50352:return new SuperMapAlgoPlot.AlgoSymbol50352(o);case 5035201:return new SuperMapAlgoPlot.AlgoSymbol5035201(o);case 5035202:return new SuperMapAlgoPlot.AlgoSymbol5035202(o);case 5035203:return new SuperMapAlgoPlot.AlgoSymbol5035203(o);case 5035204:return new SuperMapAlgoPlot.AlgoSymbol21501(o);case 5035205:return new SuperMapAlgoPlot.AlgoSymbol5035205(o);case 50354:return new SuperMapAlgoPlot.AlgoSymbol50354(o);case 5035401:return new SuperMapAlgoPlot.AlgoSymbol5035401(o);case 50355:return new SuperMapAlgoPlot.AlgoSymbol50355(o);case 5035501:return new SuperMapAlgoPlot.AlgoSymbol5035501(o);case 60104:return new SuperMapAlgoPlot.GeoTooltipBox(o);case 60106:case 6010601:case 6010602:return new SuperMapAlgoPlot.AlgoSymbol26501(o);case 60108:return new SuperMapAlgoPlot.AlgoSymbol60108(o);case 60110:return new SuperMapAlgoPlot.AlgoSymbol34700(o);case 60111:return new SuperMapAlgoPlot.AlgoSymbol22103(o);case 6011101:return new SuperMapAlgoPlot.AlgoSymbol25400(o);case 6011102:return new SuperMapAlgoPlot.AlgoSymbol22103(o);case 60115:return new SuperMapAlgoPlot.AlgoSymbol60115(o);case 6011501:return new SuperMapAlgoPlot.AlgoSymbol6011501(o);case 60117:case 6011701:case 6011702:return new SuperMapAlgoPlot.AlgoSymbol21501(o);case 60127:return new SuperMapAlgoPlot.AlgoSymbol36400(o);case 6012702:return new SuperMapAlgoPlot.AlgoSymbol6012702(o);case 60131:return new SuperMapAlgoPlot.AlgoSymbol35000(o);case 60201:return new SuperMapAlgoPlot.AlgoSymbol60301(o);case 6020101:return new SuperMapAlgoPlot.AlgoSymbol6030101(o);case 6020102:return new SuperMapAlgoPlot.AlgoSymbol6030102(o);case 6020103:return new SuperMapAlgoPlot.AlgoSymbol6030103(o);case 6020104:return new SuperMapAlgoPlot.AlgoSymbol6030104(o);case 6020105:return new SuperMapAlgoPlot.AlgoSymbol6030105(o);case 6020106:return new SuperMapAlgoPlot.AlgoSymbol6030106(o);case 6020107:return new SuperMapAlgoPlot.AlgoSymbol6030107(o);case 60202:return new SuperMapAlgoPlot.AlgoSymbol60305(o);case 6020201:return new SuperMapAlgoPlot.AlgoSymbol6030501(o);case 60203:return new SuperMapAlgoPlot.AlgoSymbol60306(o);case 6020301:return new SuperMapAlgoPlot.AlgoSymbol6030601(o);case 60207:return new SuperMapAlgoPlot.AlgoSymbol60310(o);case 6020701:return new SuperMapAlgoPlot.AlgoSymbol6031001(o);case 70109:return new SuperMapAlgoPlot.AlgoSymbol40900(o);case 70110:return new SuperMapAlgoPlot.AlgoSymbol70110(o);case 70201:return new SuperMapAlgoPlot.AlgoSymbol41100(o);case 70202:return new SuperMapAlgoPlot.AlgoSymbol41200(o);case 7020201:return new SuperMapAlgoPlot.AlgoSymbol41201(o);case 7020202:return new SuperMapAlgoPlot.AlgoSymbol41202(o);case 80202:return new SuperMapAlgoPlot.AlgoSymbol42200(o);case 80203:return new SuperMapAlgoPlot.AlgoSymbol80203(o);case 8020301:return new SuperMapAlgoPlot.AlgoSymbol8020301(o);case 90114:return new SuperMapAlgoPlot.AlgoSymbol34300(o);case 90115:return new SuperMapAlgoPlot.AlgoSymbol34400(o);case 90207:return new SuperMapAlgoPlot.AlgoSymbol35500(o);case 90212:return new SuperMapAlgoPlot.AlgoSymbol90212(o);case 90213:return new SuperMapAlgoPlot.AlgoSymbol90213(o);case 90214:return new SuperMapAlgoPlot.AlgoSymbol36800(o);case 90215:return new SuperMapAlgoPlot.AlgoSymbol90215(o);case 90216:return new SuperMapAlgoPlot.AlgoSymbol37100(o);case 90217:return new SuperMapAlgoPlot.AlgoSymbol90217(o);case 90218:return new SuperMapAlgoPlot.AlgoSymbol37300(o);case 9021801:return new SuperMapAlgoPlot.AlgoSymbol37301(o);case 90305:return new SuperMapAlgoPlot.AlgoSymbol37700(o);case 90404:return new SuperMapAlgoPlot.AlgoSymbol40100(o);case 9040401:return new SuperMapAlgoPlot.AlgoSymbol40101(o);case 90507:return new SuperMapAlgoPlot.AlgoSymbol44100(o);case 30027:return new SuperMapAlgoPlot.AlgoSymbol3002701(o);case 50332:return new SuperMapAlgoPlot.AlgoSymbol50332(o);case 5033301:return new SuperMapAlgoPlot.AlgoSymbol5033301(o);case 50336:return new SuperMapAlgoPlot.AlgoSymbol50336(o);case 5033601:return new SuperMapAlgoPlot.AlgoSymbol5033601(o);case 50337:return new SuperMapAlgoPlot.AlgoSymbol50337(o);case 5033701:return new SuperMapAlgoPlot.AlgoSymbol5033701(o);default:return new SuperMapAlgoPlot.AlgoSymbol(o)}},SuperMapAlgoPlot.WJAlgoSymbolFactory.isAccessServer=function(t,e){if(123!==t)return!0;switch(e){case 20602:case 2060201:case 2060202:case 20915:case 2091501:case 2091502:case 2091503:case 2092101:case 21003:case 21206:case 2120601:case 2120602:case 21207:case 21212:case 2121201:case 2121202:case 2121203:case 2121204:case 2121205:case 21213:case 21214:case 2121401:case 2121402:case 2121403:case 2121404:case 2121405:case 2121406:case 2121407:case 21215:case 2121501:case 2121502:case 21217:case 21220:case 2122001:case 21221:case 2122101:case 21222:case 2122201:case 2122202:case 2122203:case 2122204:case 2122205:case 21223:case 2122301:case 2122302:case 2122303:case 2122304:case 2122305:case 2122306:case 21605:case 2160501:case 30008:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 30009:case 30010:case 30011:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30012:case 30013:case 3001301:case 3001302:case 30014:case 30018:case 30023:case 30024:case 3002401:case 3002402:case 3002403:case 30025:case 3002501:case 3002502:case 3002503:case 3002504:case 3002505:case 30026:case 30027:case 30028:case 3002801:case 30029:case 40301:case 4030101:case 4030102:case 4030103:case 4030104:case 40302:case 4030201:case 4030202:case 4030203:case 4030204:case 40303:case 4030301:case 4030302:case 4030303:case 40304:case 4030401:case 40305:case 4030501:case 4030602:case 4030802:case 4031202:case 50101:case 5010101:case 50102:case 5010201:case 5010202:case 5010203:case 5010204:case 50103:case 5010301:case 5010302:case 5010303:case 5010304:case 50104:case 5010401:case 50106:case 50107:case 5010701:case 50108:case 50208:case 5020801:case 5020802:case 50209:case 50210:case 5021101:case 5021102:case 50212:case 5021711:case 5021803:case 50220:case 5022001:case 5022002:case 50221:case 50222:case 5022201:case 50223:case 5022301:case 50225:case 50226:case 50227:case 50301:case 5030101:case 5030102:case 5030103:case 5030104:case 5030105:case 5030106:case 5030107:case 50302:case 50303:case 5030301:case 50308:case 50309:case 50310:case 5031001:case 50312:case 50313:case 50314:case 5031401:case 50315:case 5031501:case 50316:case 50317:case 5031701:case 50318:case 50328:case 50320:case 5032001:case 5032002:case 5032003:case 5032004:case 50321:case 5032101:case 5032102:case 50322:case 5032201:case 50323:case 50330:case 5033001:case 50331:case 50335:case 5033501:case 5033502:case 50338:case 5033801:case 5033802:case 5033803:case 50339:case 5033901:case 50341:case 5034101:case 5034102:case 50342:case 5034201:case 5034202:case 5034203:case 50343:case 5034301:case 5034302:case 5034303:case 50344:case 50348:case 5034801:case 50352:case 5035201:case 5035202:case 5035203:case 5035204:case 5035205:case 50354:case 5035401:case 50355:case 5035501:case 60104:case 60106:case 6010601:case 6010602:case 60108:case 60110:case 60111:case 6011101:case 6011102:case 60115:case 6011501:case 60117:case 6011701:case 6011702:case 60127:case 6012702:case 60131:case 60201:case 6020101:case 6020102:case 6020103:case 6020104:case 6020105:case 6020106:case 6020107:case 60202:case 6020201:case 60203:case 6020301:case 60207:case 6020701:case 70109:case 70110:case 70201:case 70202:case 7020201:case 7020202:case 80202:case 80203:case 8020301:case 90114:case 90115:case 90207:case 90212:case 90213:case 90214:case 90215:case 90216:case 90217:case 90218:case 9021801:case 90305:case 90404:case 9040401:case 90507:case 50332:case 5033301:case 50336:case 5033601:case 50337:case 5033701:return!1;default:return!0}},SuperMapAlgoPlot.WJAlgoSymbolFactory.getSymbolWayType=function(t,e){if(123!==t)return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN;switch(e){case 21003:case 21217:case 21220:case 2122001:case 30008:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 30009:case 5021803:case 5022001:case 5022002:case 40301:case 4030101:case 4030102:case 4030103:case 4030104:case 40303:case 4030301:case 4030302:case 4030303:case 50101:case 5010101:case 50102:case 5010201:case 5010202:case 5010203:case 5010204:case 50103:case 5010301:case 5010302:case 5010303:case 5010304:case 50107:case 5010701:case 50210:case 5021711:case 50220:case 50221:case 50225:case 5030102:case 50303:case 5030301:case 50309:case 50320:case 5032001:case 5032002:case 5032003:case 5032004:case 50321:case 5032101:case 5032102:case 50322:case 5032201:case 50330:case 5033001:case 5034203:case 5035201:case 5035204:case 60127:case 60131:case 20915:case 2091502:case 2092101:case 21215:case 2121501:case 2121502:case 21605:case 30010:case 30011:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30012:case 30026:case 40302:case 4030201:case 4030202:case 4030203:case 4030204:case 50227:case 5035205:case 60201:case 6020101:case 6020102:case 6020103:case 6020104:case 6020105:case 6020106:case 6020107:case 70202:case 7020201:case 7020202:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;case 80203:case 8020301:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}},SuperMapAlgoPlot.WJAlgoSymbolFactory.getDefaultSubSymbols=function(t,e){var o=[];if(123!==t)return o;switch(e){case 21220:case 2122001:return o.push(new SuperMapAlgoPlot.SubSymbol(123,21219)),o.push(new SuperMapAlgoPlot.SubSymbol(123,2121901)),o;case 2092101:return o.push(new SuperMapAlgoPlot.SubSymbol(123,20921)),o;case 80202:return o.push(new SuperMapAlgoPlot.SubSymbol(123,2170201)),o;case 21221:case 2122101:return o.push(new SuperMapAlgoPlot.SubSymbol(123,21220)),o.push(new SuperMapAlgoPlot.SubSymbol(123,2122001)),o;case 3000801:return o.push(new SuperMapAlgoPlot.SubSymbol(123,3000106)),o;case 50209:return o.push(new SuperMapAlgoPlot.SubSymbol(100,1300)),o;case 3000802:return o.push(new SuperMapAlgoPlot.SubSymbol(123,3000107)),o;case 3000803:return o.push(new SuperMapAlgoPlot.SubSymbol(123,3000108)),o;case 3000804:return o.push(new SuperMapAlgoPlot.SubSymbol(123,20303)),o;case 2121404:case 3000805:case 3000808:case 3001301:case 4030103:case 4030202:case 5020802:case 5010201:case 50108:case 3002501:case 3002502:case 3002503:case 3002504:case 3002505:return o.push(new SuperMapAlgoPlot.SubSymbol(123,21601)),o;case 3000806:return o.push(new SuperMapAlgoPlot.SubSymbol(123,20404)),o;case 3000807:return o.push(new SuperMapAlgoPlot.SubSymbol(123,2010103)),o.push(new SuperMapAlgoPlot.SubSymbol(123,21601)),o;case 3000809:return o.push(new SuperMapAlgoPlot.SubSymbol(123,21601)),o.push(new SuperMapAlgoPlot.SubSymbol(123,30006)),o;case 30010:return o.push(new SuperMapAlgoPlot.SubSymbol(123,10305)),o;case 3001104:case 3001105:return o.push(new SuperMapAlgoPlot.SubSymbol(123,20404)),o;case 30012:return o.push(new SuperMapAlgoPlot.SubSymbol(123,30007)),o;case 3002403:return o.push(new SuperMapAlgoPlot.SubSymbol(123,21305)),o;case 40301:return o.push(new SuperMapAlgoPlot.SubSymbol(123,40201)),o;case 5021803:return o.push(new SuperMapAlgoPlot.SubSymbol(123,50218)),o;case 50225:return o.push(new SuperMapAlgoPlot.SubSymbol(123,10103)),o;case 50226:return o.push(new SuperMapAlgoPlot.SubSymbol(123,10103)),o.push(new SuperMapAlgoPlot.SubSymbol(123,10103)),o;case 5032003:case 5032102:return o.push(new SuperMapAlgoPlot.SubSymbol(123,20304)),o.push(new SuperMapAlgoPlot.SubSymbol(123,20301)),o;case 5030301:case 5022301:case 5033001:case 5034201:case 5034202:case 50342:case 6011102:return o.push(new SuperMapAlgoPlot.SubSymbol(123,10110)),o;case 5033802:return o.push(new SuperMapAlgoPlot.SubSymbol(123,20202)),o;case 5033803:return o.push(new SuperMapAlgoPlot.SubSymbol(123,20203)),o;case 5034203:return o.push(new SuperMapAlgoPlot.SubSymbol(123,2050302)),o;case 50352:return o.push(new SuperMapAlgoPlot.SubSymbol(123,50231)),o;case 5035202:return o.push(new SuperMapAlgoPlot.SubSymbol(123,21226)),o;case 5035205:return o.push(new SuperMapAlgoPlot.SubSymbol(123,2050308)),o;case 4030101:return o.push(new SuperMapAlgoPlot.SubSymbol(123,2030303)),o;case 4030102:case 4030201:return o.push(new SuperMapAlgoPlot.SubSymbol(123,20303)),o;case 4030104:case 4030203:return o.push(new SuperMapAlgoPlot.SubSymbol(123,20401)),o;case 4030204:return o.push(new SuperMapAlgoPlot.SubSymbol(123,10110)),o;case 40302:case 40303:case 4030301:case 4030302:case 4030303:return o.push(new SuperMapAlgoPlot.SubSymbol(123,40201)),o;case 5010202:return o.push(new SuperMapAlgoPlot.SubSymbol(123,2040301)),o;case 5010203:return o.push(new SuperMapAlgoPlot.SubSymbol(123,20501)),o;case 5010204:return o.push(new SuperMapAlgoPlot.SubSymbol(123,20503)),o;case 50107:return o.push(new SuperMapAlgoPlot.SubSymbol(123,10106)),o;case 5010701:return o.push(new SuperMapAlgoPlot.SubSymbol(123,5010503)),o;case 5021101:case 5021102:case 50212:return o.push(new SuperMapAlgoPlot.SubSymbol(123,2020301)),o;case 5021711:return o.push(new SuperMapAlgoPlot.SubSymbol(123,5021707)),o;case 50227:return o.push(new SuperMapAlgoPlot.SubSymbol(123,10103)),o;case 5030101:return o.push(new SuperMapAlgoPlot.SubSymbol(123,2050302)),o;case 50315:return o.push(new SuperMapAlgoPlot.SubSymbol(123,21302)),o;case 5031501:return o.push(new SuperMapAlgoPlot.SubSymbol(123,21302)),o.push(new SuperMapAlgoPlot.SubSymbol(123,21302)),o;case 5032001:case 5032101:return o.push(new SuperMapAlgoPlot.SubSymbol(123,20301)),o.push(new SuperMapAlgoPlot.SubSymbol(123,20301)),o;case 5032002:case 50321:return o.push(new SuperMapAlgoPlot.SubSymbol(123,20304)),o.push(new SuperMapAlgoPlot.SubSymbol(123,20304)),o;case 5035201:return o.push(new SuperMapAlgoPlot.SubSymbol(123,50231)),o;case 5035204:return o.push(new SuperMapAlgoPlot.SubSymbol(123,2040106)),o;case 5035401:return o.push(new SuperMapAlgoPlot.SubSymbol(123,2030111)),o;case 60106:return o.push(new SuperMapAlgoPlot.SubSymbol(123,10302)),o;case 6010601:return o.push(new SuperMapAlgoPlot.SubSymbol(123,1030201)),o;case 6010602:return o.push(new SuperMapAlgoPlot.SubSymbol(123,1030202)),o;case 6012702:return o.push(new SuperMapAlgoPlot.SubSymbol(123,21509)),o;case 60207:return o.push(new SuperMapAlgoPlot.SubSymbol(123,5023103)),o;case 6020701:return o.push(new SuperMapAlgoPlot.SubSymbol(123,2122601)),o.push(new SuperMapAlgoPlot.SubSymbol(123,2122602)),o.push(new SuperMapAlgoPlot.SubSymbol(123,2122603)),o;case 60115:case 6011501:return o.push(new SuperMapAlgoPlot.SubSymbol(123,21504)),o;case 60108:return o.push(new SuperMapAlgoPlot.SubSymbol(123,60107)),o;case 90114:return o.push(new SuperMapAlgoPlot.SubSymbol(100,6202)),o;case 90115:return o.push(new SuperMapAlgoPlot.SubSymbol(123,9010206)),o;case 90305:return o.push(new SuperMapAlgoPlot.SubSymbol(123,50304)),o;case 4030602:return o.push(new SuperMapAlgoPlot.SubSymbol(123,40306)),o;case 4030802:return o.push(new SuperMapAlgoPlot.SubSymbol(123,40308)),o;case 4031202:return o.push(new SuperMapAlgoPlot.SubSymbol(123,40312)),o;case 60111:return o.push(new SuperMapAlgoPlot.SubSymbol(123,90106)),o;case 60117:return o.push(new SuperMapAlgoPlot.SubSymbol(123,21701)),o;case 6011701:return o.push(new SuperMapAlgoPlot.SubSymbol(123,20603)),o;case 6011702:return o.push(new SuperMapAlgoPlot.SubSymbol(123,2170101)),o;case 90216:return o.push(new SuperMapAlgoPlot.SubSymbol(123,9020106)),o;default:return o}},SuperMapAlgoPlot.WJAlgoSymbolFactory.getMinEditPts=function(t,e){if(123!==t)return 0;switch(e){case 20602:case 2060201:case 2060202:case 20915:case 21003:case 21206:case 2120601:case 2120602:case 21207:case 21212:case 2121201:case 2121202:case 2121203:case 2121204:case 2121205:case 21213:case 21214:case 2121401:case 2121402:case 2121403:case 2121404:case 2121405:case 2121406:case 2121407:case 21215:case 21217:case 21221:case 21222:case 2122201:case 2122202:case 2122203:case 2122204:case 2122205:case 21223:case 2122301:case 2122302:case 2122303:case 2122304:case 2122305:case 2122306:case 21605:case 30008:case 30009:case 30010:case 30013:case 30014:case 30018:case 30027:case 30028:case 3002801:case 30029:case 40301:case 40303:case 40304:case 40305:case 50101:case 50102:case 50103:case 50104:case 50106:case 50107:case 50108:case 50208:case 50209:case 50210:case 50212:case 50220:case 50221:case 50222:case 50223:case 50226:case 50302:case 50303:case 50308:case 50309:case 50310:case 50312:case 50313:case 50314:case 50315:case 50318:case 50328:case 50320:case 50321:case 5032101:case 5032102:case 50322:case 50323:case 50330:case 50331:case 50335:case 50338:case 50339:case 50341:case 5034101:case 5034102:case 50342:case 50343:case 5034301:case 5034302:case 5034303:case 50344:case 50348:case 50354:case 5035401:case 50355:case 5035501:case 60106:case 60108:case 60115:case 6011501:case 60127:case 60131:case 60202:case 6020201:case 60203:case 6020301:case 70109:case 70110:case 70201:case 70202:case 80202:case 80203:case 8020301:case 90114:case 90115:case 90207:case 90212:case 90213:case 90214:case 90215:case 90216:case 90217:case 90218:case 9021801:case 90305:case 90404:case 90507:case 2091501:case 2091502:case 2091503:case 2092101:case 2121501:case 2121502:case 21220:case 2122001:case 2122101:case 2160501:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 3001301:case 3001302:case 30025:case 3002501:case 3002502:case 3002503:case 3002504:case 3002505:case 30026:case 4030101:case 4030102:case 4030103:case 4030104:case 4030301:case 4030302:case 4030303:case 4030401:case 4030501:case 4030602:case 4030802:case 4031202:case 5010101:case 5010201:case 5010202:case 5010203:case 5010204:case 5010301:case 5010302:case 5010303:case 5010304:case 5010401:case 5010701:case 5020802:case 5021101:case 5021102:case 5021711:case 5021803:case 5022001:case 5022002:case 5022201:case 5022301:case 5030102:case 5030103:case 5030104:case 5030301:case 5031001:case 5031401:case 5031501:case 5032001:case 5032002:case 5032003:case 5032004:case 5032201:case 5033001:case 5033501:case 5033502:case 5033801:case 5033802:case 5033803:case 5033901:case 5034201:case 5034202:case 5034203:case 5034801:case 5035201:case 5035203:case 5035204:case 6010601:case 6010602:case 60110:case 60111:case 6011101:case 6011102:case 60117:case 6011701:case 6011702:case 6012702:case 7020201:case 7020202:case 9040401:case 50332:case 5033301:case 50336:case 5033601:case 50337:case 5033701:return 2;case 30011:case 30012:case 30024:case 3002401:case 3002402:case 3002403:case 40302:case 50225:case 50227:case 50301:case 50316:case 50317:case 5031701:case 50352:case 60104:case 60201:case 6020101:case 6020102:case 6020103:case 6020104:case 6020105:case 6020106:case 6020107:case 60207:case 6020701:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30023:case 4030201:case 4030202:case 4030203:case 4030204:case 5020801:case 5030101:case 5030105:case 5030106:case 5030107:case 5035202:case 5035205:return 3;default:return 0}},SuperMapAlgoPlot.WJAlgoSymbolFactory.getMaxEditPts=function(t,e){if(123!==t)return 0;switch(e){case 21217:case 30018:case 30025:case 3002501:case 3002502:case 3002503:case 3002504:case 3002505:case 50104:case 50302:case 50313:case 50335:case 50338:case 50339:case 60202:case 6020201:case 60203:case 6020301:case 70201:case 90114:case 90115:case 90214:case 90216:case 90217:case 90218:case 9021801:case 90507:case 2120602:case 2121402:case 2121404:case 2121405:case 2121406:case 2121407:case 2122201:case 2122202:case 2160501:case 3001301:case 30026:case 4030401:case 5010401:case 5031401:case 5031501:case 5033501:case 5033502:case 5033801:case 5033802:case 5033803:case 5033901:case 50343:case 5034301:case 5034302:case 5034303:case 50344:case 60108:case 60115:case 6011501:case 90207:case 90212:case 90215:case 30027:return 2;case 21003:case 21207:case 21223:case 2122301:case 2122302:case 2122303:case 2122304:case 2122305:case 2122306:case 30023:case 50221:case 50222:case 50331:case 50348:case 60104:case 2021101:case 2021102:case 5021101:case 5021102:case 5022201:case 5034801:case 70110:return 3;case 50312:case 50317:case 5030106:return 4;case 21220:case 2122001:case 21221:case 50225:case 50226:case 50316:case 50320:case 5032004:case 50322:case 50328:case 60127:case 2122101:case 5020801:case 5031701:case 5032001:case 5032002:case 5032003:case 50321:case 5032101:case 5032102:case 5032201:case 80203:case 8020301:case 90213:return 30;case 30024:case 3002401:case 3002402:case 3002403:case 30028:case 3002801:case 30029:case 50227:case 50352:case 60207:case 6020701:case 5022001:case 5022002:case 5030101:case 50341:case 5034101:case 5034102:case 5035202:case 5035203:return 512;case 20915:case 21212:case 2121201:case 2121202:case 2121203:case 2121204:case 2121205:case 21213:case 21214:case 2121401:case 2121403:case 21215:case 21222:case 2122203:case 2122204:case 2122205:case 21605:case 30008:case 30010:case 30011:case 30012:case 40301:case 40302:case 40303:case 50101:case 50102:case 50106:case 50107:case 50108:case 50209:case 50210:case 50220:case 50223:case 50303:case 50309:case 50315:case 50330:case 60201:case 6020101:case 6020102:case 6020103:case 6020104:case 6020105:case 6020106:case 6020107:case 70202:case 80202:case 2091501:case 2091502:case 2091503:case 2121501:case 2121502:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 4030101:case 4030102:case 4030103:case 4030104:case 4030201:case 4030202:case 4030203:case 4030204:case 5010101:case 5010701:case 5020802:case 5022301:case 5030102:case 5030301:case 5035205:case 6010601:case 6010602:case 60110:case 60111:case 6011101:case 6011102:case 60117:case 6011701:case 6011702:case 7020201:case 7020202:case 50212:return 1e3;case 20602:case 2060201:case 2060202:case 21206:case 2120601:case 30009:case 30013:case 30014:case 40304:case 40305:case 50103:case 50208:case 50301:case 50308:case 50310:case 50314:case 50318:case 50323:case 50342:case 60106:case 60131:case 70109:case 90305:case 90404:case 2092101:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 3001302:case 4030301:case 4030302:case 4030303:case 4030501:case 4030602:case 4030802:case 4031202:case 5010201:case 5010202:case 5010203:case 5010204:case 5010301:case 5010302:case 5010303:case 5010304:case 5021711:case 5021803:case 5030103:case 5030104:case 5030105:case 5030107:case 5031001:case 5033001:case 5034201:case 5034202:case 5034203:case 5035201:case 5035204:case 50354:case 5035401:case 50355:case 5035501:case 6012702:case 9040401:case 5033301:case 50336:case 5033601:case 50337:case 5033701:return 9999;case 50332:return 6;default:return 0}},SuperMapAlgoPlot.WJAlgoSymbolFactory.getDefaultStyle=function(t,e){var o={};if(123===t)switch(e){case 50108:case 30012:case 3000801:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30011:case 30013:case 30010:case 30014:case 30009:case 30008:case 30023:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:o.color=o.strokeColor="#0000ff"}return o},SuperMapAlgoPlot.WJAlgoSymbolFactory.zoomInCalSymbol=function(){return!1}}(); /***/ }), /* 3 */ /***/ (function(module, exports) { !function(){"use strict";function t(e){"@babel/helpers - typeof";return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){for(var o=0;o=1)return;this.scaleValues[2]=h}}}}])&&e(n.prototype,r),i&&e(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}();function i(t){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var o=0;o.7&&(M=.7),this.scaleValues[2]=M}}}}])&&f(e.prototype,o),l&&f(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function b(t){"@babel/helpers - typeof";return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function A(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var l=0;l<4;l++){var n=Math.floor(l*o.length/4),r=new SuperMapAlgoPlot.Point(o[n].x,o[n].y),i=new SuperMapAlgoPlot.Point(o[n+1].x,o[n+1].y),a=new SuperMapAlgoPlot.Point((r.x+i.x)/2,(r.y+i.y)/2),u=SuperMapAlgoPlot.PlottingUtil.radian(i,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,s=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,u),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,4*p,4*p,u+270),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,u+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c,P],{lineTypeLimit:!0,surroundLineLimit:!0})}this.finish()}}}])&&A(e.prototype,o),l&&A(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function O(t){"@babel/helpers - typeof";return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var l=0;l<4;l++){var n=l*(o.length-1)/4,r=new SuperMapAlgoPlot.Point(o[n].x,o[n].y),i=new SuperMapAlgoPlot.Point(o[n+1].x,o[n+1].y),a=new SuperMapAlgoPlot.Point((r.x+i.x)/2,(r.y+i.y)/2),u=SuperMapAlgoPlot.PlottingUtil.radian(a,i)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,s=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,u),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,4*p,4*p,u+270),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,u+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c,P],{surroundLineLimit:!0,lineTypeLimit:!0})}this.finish()}}}])&&w(e.prototype,o),l&&w(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function E(t){"@babel/helpers - typeof";return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,e){for(var o=0;o=.12&&(r=.12),this.scaleValues[0]=r}}},{key:"computeXPts",value:function(t,e,o,l){var n=[],r=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+45),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+225);n.push(r),n.push(i);var a=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+135),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+315);return n.push(a),n.push(u),n}}])&&T(e.prototype,o),l&&T(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _(t){"@babel/helpers - typeof";return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function I(t,e){for(var o=0;o1&&(P=1),this.scaleValues[0]=P}if(1===t){var f=this.scaleValues[0]*l,g=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,f);if(-1===g.index)return;var y=SuperMapAlgoPlot.PlottingUtil.distance(g.pt,e)/l;y>.4&&(y=.4),this.scaleValues[1]=y}}}},{key:"intersectLineAndCircle",value:function(t,e,o,l,n){for(var r=!1,i=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[o,new SuperMapAlgoPlot.Point(o.x+l,o.y)]),a=0;ae.x){for(var p=0;pn[c+1].x){var P=n[c];n[c]=n[c+1],n[c+1]=P}}else if(t.y>e.y){for(var f=0;fn[y+1].y){var S=n[y];n[y]=n[y+1],n[y+1]=S}return r}},{key:"isLineInCircle",value:function(t,e,o,l){var n=new SuperMapAlgoPlot.Point((t.x+e.x)/2,(t.y+e.y)/2);return SuperMapAlgoPlot.PlottingUtil.distance(n,o)o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.6*n,l);if(!r.bfind)return;var i=2*SuperMapAlgoPlot.PlottingUtil.distance(e,r.pts);this.scaleValues[0]=i/n}}}])&&q(e.prototype,o),l&&q(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function tt(t){"@babel/helpers - typeof";return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function et(t,e){for(var o=0;o=.12&&(r=.12),this.scaleValues[0]=r}}},{key:"computeXPts",value:function(t,e,o,l){var n=[],r=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+45),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+225);n.push(r),n.push(i);var a=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+135),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+315);return n.push(a),n.push(u),n}},{key:"computeDashLines",value:function(t,e){for(var o=this.computeDashLine(2*e,2*e,t),l=.5*e,n=0;n2&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P)}f.push(r.endPt);for(var S=r.endIndex+1;S=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(),this.scaleValues[1]=.0625*this.getSubSymbolScaleValue());for(var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=o*this.scaleValues[0],n=o*this.scaleValues[1],r=e[0],i=0,a=1;a=l){var s=SuperMapAlgoPlot.PlottingUtil.findPointInLine(r,u,l);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[r,s]),r=s,i++,a--}break;case 1:case 3:var c=3*n;if(p>c)r=SuperMapAlgoPlot.PlottingUtil.findPointInLine(r,u,c),i++,a--;break;case 2:if(p>2*n){var P=SuperMapAlgoPlot.PlottingUtil.findPointInLine(r,u,2*n);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[new SuperMapAlgoPlot.Point(.5*(r.x+P.x),.5*(r.y+P.y)),P],{fillLimit:!0,fill:!0}),r=P,i++,a--}}}this.finish()}}}])&&At(e.prototype,o),l&&At(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();SuperMapAlgoPlot.AlgoSymbol610100=mt;SuperMapAlgoPlot.YJAlgoSymbolFactory=SuperMapAlgoPlot.YJAlgoSymbolFactory||{};SuperMapAlgoPlot.YJAlgoSymbolFactory.getAlgoSymbol=function(t,e,o){if(999!==t)return new SuperMapAlgoPlot.AlgoSymbol(o);switch(e){case 510100:return new SuperMapAlgoPlot.AlgoSymbol510100(o);case 510200:return new SuperMapAlgoPlot.AlgoSymbol15804(o);case 520100:return new SuperMapAlgoPlot.AlgoSymbol520100(o);case 520200:return new SuperMapAlgoPlot.AlgoSymbol520200(o);case 520300:return new SuperMapAlgoPlot.AlgoSymbol520300(o);case 520400:return new SuperMapAlgoPlot.AlgoSymbol15200(o);case 520500:return new SuperMapAlgoPlot.AlgoSymbol520500(o);case 530100:return new SuperMapAlgoPlot.AlgoSymbol530100(o);case 530200:return new SuperMapAlgoPlot.AlgoSymbol530200(o);case 610100:return new SuperMapAlgoPlot.AlgoSymbol610100(o);case 610200:return new SuperMapAlgoPlot.AlgoSymbol29100(o);case 610300:return new SuperMapAlgoPlot.AlgoSymbol29101(o);default:return new SuperMapAlgoPlot.AlgoSymbol(o)}},SuperMapAlgoPlot.YJAlgoSymbolFactory.isAccessServer=function(t,e){if(999!==t)return!0;switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:case 610200:case 610300:return!1;default:return!0}},SuperMapAlgoPlot.YJAlgoSymbolFactory.getSymbolWayType=function(t,e){if(999===t)switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:case 610200:case 610300:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}},SuperMapAlgoPlot.YJAlgoSymbolFactory.getDefaultSubSymbols=function(){return[]},SuperMapAlgoPlot.YJAlgoSymbolFactory.getMinEditPts=function(t,e){if(999!==t)return 0;switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:case 610200:case 610300:return 2;default:return 0}},SuperMapAlgoPlot.YJAlgoSymbolFactory.getMaxEditPts=function(t,e){if(999!==t)return 0;switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:return 9999;case 610200:case 610300:return 3;default:return 0}},SuperMapAlgoPlot.YJAlgoSymbolFactory.getDefaultStyle=function(){return{}},SuperMapAlgoPlot.YJAlgoSymbolFactory.zoomInCalSymbol=function(){return!1}}(); /***/ }), /* 4 */ /***/ (function(module, exports) { /*! * * iclient-plot-webgl-common.(https://iclient.supermap.io) * Copyright© 2000 - 2022 SuperMap Software Co.Ltd * license: Apache-2.0 * version: v11.0.0-alpha * */!function(){"use strict";var t=window.SuperMap=window.SuperMap||{};t.Plot=t.Plot||{},window.SuperMapAlgoPlot=t.Plot||{};function e(t,e){for(var o=0;othis.right)&&(this.right=o.right),(null==this.top||o.top>this.top)&&(this.top=o.top))}}},{key:"containsLonLat",value:function(t,e){"boolean"==typeof e&&(e={inclusive:e}),e=e||{};var o=this.contains(t.lon,t.lat,e.inclusive),l=e.worldBounds;if(l&&!o){var n=l.getWidth(),r=(l.left+l.right)/2,i=Math.round((t.lon-r)/n);o=this.containsLonLat({lon:t.lon-i*n,lat:t.lat},{inclusive:e.inclusive})}return o}},{key:"containsPixel",value:function(t,e){return this.contains(t.x,t.y,e)}},{key:"contains",value:function(t,e,o){if(null==o&&(o=!0),null==t||null==e)return!1;var l=!1;return l=o?t>=this.left&&t<=this.right&&e>=this.bottom&&e<=this.top:t>this.left&&tthis.bottom&&e=o.bottom&&t.bottom<=o.top||o.bottom>=t.bottom&&o.bottom<=t.top,i=t.top>=o.bottom&&t.top<=o.top||o.top>t.bottom&&o.top=o.left&&t.left<=o.right||o.left>=t.left&&o.left<=t.right,s=t.right>=o.left&&t.right<=o.right||o.right>=t.left&&o.right<=t.right;l=(r||i)&&(a||s)}if(e.worldBounds&&!l){var p=e.worldBounds,u=p.getWidth(),c=!p.containsBounds(o),P=!p.containsBounds(t);c&&!P?(t=t.add(-u,0),l=o.intersectsBounds(t,{inclusive:e.inclusive})):P&&!c&&(o=o.add(-u,0),l=t.intersectsBounds(o,{inclusive:e.inclusive}))}return l}},{key:"containsBounds",value:function(t,e,o){null==e&&(e=!1),null==o&&(o=!0);var l=this.contains(t.left,t.bottom,o),n=this.contains(t.right,t.bottom,o),r=this.contains(t.left,t.top,o),i=this.contains(t.right,t.top,o);return e?l||n||r||i:l&&n&&r&&i}},{key:"determineQuadrant",value:function(t){var e="",o=this.getCenterLonLat();return e+=t.lat=t.right&&n.right>t.right;)n=n.add(-r,0);var i=n.left+o;it.left&&n.right-l>t.right&&(n=n.add(-r,0))}return n}},{key:"toServerJSONObject",value:function(){return{rightTop:{x:this.right,y:this.top},leftBottom:{x:this.left,y:this.bottom},left:this.left,right:this.right,top:this.top,bottom:this.bottom}}},{key:"destroy",value:function(){this.left=null,this.right=null,this.top=null,this.bottom=null,this.centerLonLat=null}}])&&e(o.prototype,l),n&&e(o,n),Object.defineProperty(o,"prototype",{writable:!1}),t}();function l(t,e){for(var o=0;o=0;o--)t[o]===e&&t.splice(o,1);return t}},{key:"indexOf",value:function(t,e){if(null==t)return-1;if("function"==typeof t.indexOf)return t.indexOf(e);for(var o=0,l=t.length;o=0&&parseFloat(a)<1?(t.style.filter="alpha(opacity="+100*a+")",t.style.opacity=a):1===parseFloat(a)&&(t.style.filter="",t.style.opacity="")}},{key:"applyDefaults",value:function(t,e){t=t||{};var o="function"==typeof window.Event&&e instanceof window.Event;for(var l in e)(void 0===t[l]||!o&&e.hasOwnProperty&&e[l]&&!t[l])&&(t[l]=e[l]);return!o&&e&&e.hasOwnProperty&&e.toString&&!t.toString&&(t.toString=e.toString),t}},{key:"getParameterString",value:function(t){var e=[];for(var o in t){var l,n=t[o];if(null!=n&&"function"!=typeof n)l=Array.isArray(n)||"[object Object]"===n.toString()?encodeURIComponent(JSON.stringify(n)):encodeURIComponent(n),e.push(encodeURIComponent(o)+"="+l)}return e.join("&")}},{key:"urlAppend",value:function(t,e){var o=t;if(e){0===e.indexOf("?")&&(e=e.substring(1));var l=(t+" ").split(/[?&]/);o+=" "===l.pop()?e:l.length?"&"+e:"?"+e}return o}},{key:"urlPathAppend",value:function(t,e){var o=t;if(!e)return o;0===e.indexOf("/")&&(e=e.substring(1));var l=t.split("?");return l[0].indexOf("/",l[0].length-1)<0&&(l[0]+="/"),o="".concat(l[0]).concat(e).concat(l.length>1?"?".concat(l[1]):"")}},{key:"toFloat",value:function(e,o){return null==o&&(o=t.DEFAULT_PRECISION),"number"!=typeof e&&(e=parseFloat(e)),0===o?e:parseFloat(e.toPrecision(o))}},{key:"rad",value:function(t){return t*Math.PI/180}},{key:"getParameters",value:function(t){t=null===t||void 0===t?window.location.href:t;var e="";if(StringExt.contains(t,"?")){var o=t.indexOf("?")+1,l=StringExt.contains(t,"#")?t.indexOf("#"):t.length;e=t.substring(o,l)}for(var n={},r=e.split(/[&;]/),i=0,a=r.length;i1?1/t:t}},{key:"getResolutionFromScale",value:function(e,o){var l;e&&(null==o&&(o="degrees"),l=1/(t.normalizeScale(e)*INCHES_PER_UNIT[o]*DOTS_PER_INCH));return l}},{key:"getScaleFromResolution",value:function(t,e){return null==e&&(e="degrees"),t*INCHES_PER_UNIT[e]*DOTS_PER_INCH}},{key:"getBrowser",value:function(){return Browser}},{key:"supportCanvas",value:function(){return t.isSupportCanvas}},{key:"isInTheSameDomain",value:function(t){if(!t)return!0;var e=t.indexOf("//"),o=document.location.toString(),l=o.indexOf("//");if(-1===e)return!0;var n,r=n=t.substring(0,e),i=o.substring(l+2);l=i.indexOf("/");var a=i.indexOf(":"),s=i.substring(0,l),p=document.location.protocol;if(-1!==a||(s+=":"+("http:"===p.toLowerCase()?80:443)),p.toLowerCase()!==r.toLowerCase())return!1;var u=(r=t.substring(e+2)).indexOf(":");e=r.indexOf("/");var c,P=r.substring(0,e);return-1!==u?c=r.substring(0,u):(c=r.substring(0,e),P+=":"+("http:"===n.toLowerCase()?80:443)),c===document.domain&&P===s}},{key:"calculateDpi",value:function(t,e,o,l,n){if(t&&e&&o){var r,i=t.getWidth(),a=t.getHeight(),s=e.w,p=e.h;if(n=n||6378137,"degree"===(l=l||"degrees").toLowerCase()||"degrees"===l.toLowerCase()||"dd"===l.toLowerCase()){var u=i/s,c=a/p;r=254/(u>c?u:c)/o/(2*Math.PI*n/360)/1e4}else{r=254/(i/s)/o/1e4}return r}}},{key:"toJSON",value:function(e){var o=e;if(null==o)return null;switch(o.constructor){case String:return o=(o=(o=(o=(o=(o=(o='"'+o.replace(/(["\\])/g,"\\$1")+'"').replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace("<","<")).replace(">",">")).replace(/%/g,"%25")).replace(/&/g,"%26");case Array:for(var l="",n=0,r=o.length;n0?"{"+p.join(",")+"}":"{}"}return o.toString()}}},{key:"getResolutionFromScaleDpi",value:function(e,o,l,n){return n=n||6378137,l=l||"",e>0&&o>0?(e=t.normalizeScale(e),"degree"===l.toLowerCase()||"degrees"===l.toLowerCase()||"dd"===l.toLowerCase()?254/o/e/(2*Math.PI*n/360)/1e4:254/o/e/1e4):-1}},{key:"getScaleFromResolutionDpi",value:function(t,e,o,l){return l=l||6378137,o=o||"",t>0&&e>0?"degree"===o.toLowerCase()||"degrees"===o.toLowerCase()||"dd"===o.toLowerCase()?254/e/t/(2*Math.PI*l/360)/1e4:254/e/t/1e4:-1}},{key:"transformResult",value:function(t){return t.responseText&&"string"==typeof t.responseText&&(t=JSON.parse(t.responseText)),t}},{key:"copyAttributes",value:function(t,e){if(t=t||{},e)for(var o in e){var l=e[o];void 0!==l&&"CLASS_NAME"!==o&&"function"!=typeof l&&(t[o]=l)}return t}},{key:"copyAttributesWithClip",value:function(t,e,o){if(t=t||{},e)for(var l in e){var n=!1;if(o&&o.length)for(var r=0,i=o.length;r=0&&r<=1&&n<=1&&r>=0?new Geometry.Point(t.x+n*(e.x-t.x),t.y+n*(e.y-t.y)):"No Intersection";else if(0==a&&0==s){var u=Math.max(t.y,e.y),c=Math.min(t.y,e.y),P=Math.max(t.x,e.x),g=Math.min(t.x,e.x);i=(o.y>=c&&o.y<=u||l.y>=c&&l.y<=u)&&o.x>=g&&o.x<=P||l.x>=g&&l.x<=P?"Coincident":"Parallel"}else i="Parallel";return i}},{key:"getTextBounds",value:function(t,e,o){document.body.appendChild(o),o.style.width="auto",o.style.height="auto",t.fontSize&&(o.style.fontSize=t.fontSize),t.fontFamily&&(o.style.fontFamily=t.fontFamily),t.fontWeight&&(o.style.fontWeight=t.fontWeight),o.style.position="relative",o.style.visibility="hidden",o.style.display="inline-block",o.innerHTML=e;var l=o.clientWidth,n=o.clientHeight;return document.body.removeChild(o),{textWidth:l,textHeight:n}}},{key:"convertPath",value:function(t,e){return e?t.replace(/\{([\w-\.]+)\}/g,function(t,o){var l;return l=e[o]?paramToString(e[o]):t,encodeURIComponent(l)}):t}}],(o=null)&&l(e.prototype,o),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function r(t,e){for(var o=0;of?e.scaleValues[f]=t.scaleValues[f]:e.scaleValues.push(t.scaleValues[f]);else e.scaleValues=[],e.scaleValues=t.scaleValues;e.visible=t.visible,e.orbitPoints=t.orbitPoints}else if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.SATELLITETIMEWINDOWS)e.timeWindows=t.timeWindows;else{var h;h=!0===o?L.Util.latLngsToSuperMapPoints(t.getLatLngs()):t.controlPoints,e.localePoints=[];var S=h.length;t.symbolType===SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL&&(S=3);for(var A=0;AR?e.scaleValues[R]=t.scaleValues[R]:e.scaleValues.push(t.scaleValues[R]);else e.scaleValues=[],e.scaleValues=t.scaleValues;e.subSymbolScaleValue=t.subSymbolScaleValue,e.baseScale=t.baseScale,e.strokeWidth=t.strokeWidth,e.polylineConnectLocationPoint=t.polylineConnectLocationPoint,22===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.ALGOSYMBOL?(e.arrowHeadType=t.arrowHeadType,e.arrowBodyType=t.arrowBodyType,e.arrowTailType=t.arrowTailType):0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.ARROWLINE?e.arrowAngle=t.arrowAngle:0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE?e.defaultRadius=t.defaultRadius:0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.CONCENTRICCIRCLE||(0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.LINEMARKING?(e.islocationCircle=t.islocationCircle,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.SYMBOLTEXTBOX?(e.roundBox=t.roundBox,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.PATHTEXT?(e.isAvoid=t.isAvoid,e.isCurve=t.isCurve,e.relLineText=t.relLineText,e.showPathLine=t.showPathLine,e.textToLineDistance=t.textToLineDistance,e.showPathLineArrow=t.showPathLineArrow):0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.ARCREGION&&(o?(e.centerPoint={x:t.centerPoint.lng,y:t.centerPoint.lat},e.circlePts=t.circlePts,e.spatialAnalystUrl=t.spatialAnalystUrl):e.centerPoint=t.centerPoint,e.endAngle=t.endAngle,e.radius=t.radius,e.radiusPosAngle=t.radiusPosAngle,e.startAngle=t.startAngle,e.textPosition=t.textPosition,e.radiusLineType=t.radiusLineType,e.radiusText=t.radiusText))}}t.symbolData=e},SuperMapAlgoPlot.AnalysisSymbol.parseSymbolData=function(t,e,o){if(null!=e){if(null!=e.isEdit&&(t.isEdit=e.isEdit),Object.prototype.hasOwnProperty.call(e,"version")&&(t.version=e.version),Object.prototype.hasOwnProperty.call(e,"libID")&&(t.libID=parseInt(e.libID)),Object.prototype.hasOwnProperty.call(e,"code")&&(t.code=parseInt(e.code)),Object.prototype.hasOwnProperty.call(e,"algoMaxEditPts")&&(t.maxEditPts=parseInt(e.algoMaxEditPts)),Object.prototype.hasOwnProperty.call(e,"algoMinEditPts")&&(t.minEditPts=parseInt(e.algoMinEditPts)),Object.prototype.hasOwnProperty.call(e,"symbolType")&&(t.symbolType=parseInt(e.symbolType)),Object.prototype.hasOwnProperty.call(e,"symbolName")&&(t.symbolName=e.symbolName),Object.prototype.hasOwnProperty.call(e,"textContent")&&(t.textContent=e.textContent),Object.prototype.hasOwnProperty.call(e,"bubbleHeight")&&(t.bubbleHeight=e.bubbleHeight),Object.prototype.hasOwnProperty.call(e,"bubbleWidth")&&(t.bubbleWidth=e.bubbleWidth),Object.prototype.hasOwnProperty.call(e,"description")&&(t.description=e.description),Object.prototype.hasOwnProperty.call(e,"mediaList")&&(t.mediaList=e.mediaList),null!=e.dScale?t.dScale=e.dScale:void 0!==e.scale2D&&(t.dScale=e.scale2D.x),null!=e.dRotate?t.dRotate=e.dRotate:void 0!==e.rotate2D&&(t.dRotate=e.rotate2D.x),null!=e.resolution&&(t.resolution=e.resolution),null!=e.uuid&&(t.uuid=e.uuid),null!=e.associatedUuid&&(t.associatedUuid=e.associatedUuid),null!=e.textDisplay&&(t.textDisplay=e.textDisplay),null!=e.annotationPosition&&(o?t.annotationPosition=e.annotationPosition:t.textPosition=e.annotationPosition),null!=e.scaleByMap&&(t.scaleByMap=e.scaleByMap),void 0!==e.isLocked&&(t.isLocked=e.isLocked),void 0!==e.note&&(t.note=e.note),void 0!==e.custom&&(t.custom=e.custom),e.extendProperty)for(var l=0;l255?e++:o++;return e+o/2},SuperMapAlgoPlot.PlottingUtil.toJSON=function(t){var e=t;if(null==e)return null;switch(e.constructor){case String:return e=(e=(e=(e=(e=(e=(e='"'+e.replace(/(["\\])/g,"\\$1")+'"').replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace("<","<")).replace(">",">")).replace(/%/g,"%2525")).replace(/&/g,"%26");case Array:for(var o=[],l=0,n=e.length;l0?"{"+s.join(",")+"}":"{}"}return e.toString()}},SuperMapAlgoPlot.PlottingUtil.copyFeature=function(t){var e=null;if(null!=t&&t.geometry){var o=t.geometry.clone();e=new SuperMap.Feature.Vector(o),t.style&&(e.style=SuperMapAlgoPlot.PlottingUtil.copyAttributes(e.style,t.style)),o.feature=e,o.calculateParts()}return e},SuperMapAlgoPlot.PlottingUtil.inverse=function(t){for(var e=[],o=t.length-1;o>=0;o--)e.push(t[o]);return e},SuperMapAlgoPlot.PlottingUtil.getSurroundLinePts=function(t,e){for(var o=[],l=[],n=0;n2*c?l.push(i):(l[l.length-1]=u,l.push(i))}else l.push(i)}else l.push(r),l.push(i);(o=[]).push(l[l.length-2]),o.push(l[l.length-1])}}if(t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y&&1Math.PI&&(l-=2*Math.PI),l}if(t.length<3)return 1;for(var o=0,l={x:0,y:0},n={x:0,y:0},r=2;r=0?-1:1},SuperMapAlgoPlot.PlottingUtil.isNear=function(t,e){return e||(e=SuperMapAlgoPlot.PlottingUtil.TORLERANCE_STATIC),t-e},SuperMapAlgoPlot.PlottingUtil.equalFuzzy=function(t,e,o){return o||(o=1e-18),Math.abs(t-e)<=o},SuperMapAlgoPlot.PlottingUtil.intersectLines=function(t,e,o,l){var n={isIntersectLines:!1};if(t.x===e.x&&t.y===e.y||o.x===l.x&&o.y===l.y)return n;var r=e.x-t.x,i=e.y-t.y,a=l.x-o.x,s=l.y-o.y,p=r*s-a*i;if(SuperMapAlgoPlot.PlottingUtil.isNear(p))return n;var u=(r*(t.y-o.y)-i*(t.x-o.x))/p,c=new SuperMapAlgoPlot.Point(0,0);return c.x=u*a+o.x,c.y=u*s+o.y,n.isIntersectLines=!0,n.intersectPoint=c,n},SuperMapAlgoPlot.PlottingUtil.limitSigDigs=function(t,e){var o=0;if(e>0){var l=new Number(t);o=parseFloat(l.toPrecision(e))}return o},SuperMapAlgoPlot.PlottingUtil.containsPoint=function(t,e){for(var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t.components),l=SuperMapAlgoPlot.PlottingUtil.distance(o,e),n=0,r=SuperMapAlgoPlot.PlottingUtil.radian(e,t.components[0]),i=1;ia&&(r=a,n=i)}return l=0;i--)e.push(t[l][i]);t.splice(l,1);var a=n(t,e);if(void 0!==a&&0!==a.length)return a}return e}if(SuperMapAlgoPlot.PlottingUtil.isArray(t)||(t=[t]),0===t.length)return[];if(1===t.length)return t[0];for(var r=0;r2&&b.push(v)}return b},SuperMapAlgoPlot.PlottingUtil.isRight=function(t,e,o){var l=e,n=o,r=e,i=t;return(n.x-l.x)*(i.y-r.y)-(i.x-r.x)*(n.y-l.y)<0},SuperMapAlgoPlot.PlottingUtil.radian=function(t,e){var o,l,n=0;return o=e.x-t.x,l=e.y-t.y,(n=Math.atan2(l,o))<0&&(n+=2*Math.PI),n},SuperMapAlgoPlot.PlottingUtil.findBisectorPoint=function(t,e,o,l){var n=SuperMapAlgoPlot.PlottingUtil.radian(e,t),r=(n+SuperMapAlgoPlot.PlottingUtil.radian(e,o))/2,i=Math.cos(r-n+Math.PI/2),a=l;SuperMapAlgoPlot.PlottingUtil.isNear(i,.15)||(a=l/i);var s=e.x+a*Math.cos(r),p=e.y+a*Math.sin(r);return new SuperMapAlgoPlot.Point(s,p)},SuperMapAlgoPlot.PlottingUtil.findPoint=function(t,e,o,l){if(t===e||Math.abs(o)<1e-18)return t;var n=SuperMapAlgoPlot.PlottingUtil.radian(t,e)+l*Math.PI/180,r=t.x+o*Math.cos(n),i=t.y+o*Math.sin(n);return new SuperMapAlgoPlot.Point(r,i)},SuperMapAlgoPlot.PlottingUtil.isSameQuadrant=function(t,e,o,l){var n=(e.x-t.x)*(l.x-o.x),r=(e.y-t.y)*(l.y-o.y);return!(Math.abs(n)<1e-18&&Math.abs(r)<1e-18)&&((n>0||Math.abs(n)<1e-18)&&(r>0||Math.abs(r)<1e-18))},SuperMapAlgoPlot.PlottingUtil.isCross=function(t,e,o,l){var n=new SuperMapAlgoPlot.Point(0,0);return!(!SuperMapAlgoPlot.PlottingUtil.intersectLineSegs(t,e,o,l,n)||n==t||n===e||n===o||n==l)},SuperMapAlgoPlot.PlottingUtil.intersectLineSegs=function(t,e,o,l,n){if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.y,e.y))return n.x=t.x,n.y=t.y,!1;if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(o.x,l.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(o.y,l.y))return n.x=o.x,n.y=o.y,!1;var r=0,i=0;if(r=t.x>e.x?t.x:e.x,i=t.x1e-16&&l.x-r>1e-16||o.x-i<-1e-16&&l.x-i<-1e-16)return!1;if(r=t.y>e.y?t.y:e.y,i=t.y1e-16&&l.y-r>1e-16||o.y-i<-1e-16&&l.y-i<-1e-16)return!1;var a=e.x-t.x,s=e.y-t.y,p=l.x-o.x,u=l.y-o.y,c=t.x-o.x,P=t.y-o.y,g=a*u-p*s,y=g;if(Math.abs(a)>1e-18&&Math.abs(p)>1e-18&&(y/=a*p),Math.abs(y)<1e-18)return t===o?(n.x=t.x,n.y=t.y,!SuperMapAlgoPlot.PlottingUtil.isSameQuadrant(t,e,o,l)):e===l?(n.x=e.x,n.y=e.y,!SuperMapAlgoPlot.PlottingUtil.isSameQuadrant(t,e,o,l)):t===l?(n.x=t.x,n.y=t.y,SuperMapAlgoPlot.PlottingUtil.isSameQuadrant(t,e,o,l)):e===o&&(n.x=e.x,n.y=e.y,SuperMapAlgoPlot.PlottingUtil.isSameQuadrant(t,e,o,l));var f=(a*P-s*c)/g,h=(p*P-u*c)/g;return!(f<0&&(Math.abs(f*p)>1e-16||Math.abs(f*u)>1e-16))&&(!(f>1&&(Math.abs((f-1)*p)>1e-16||Math.abs((f-1)*u)>1e-16))&&(!(h<0&&(Math.abs(h*a)>1e-16||Math.abs(h*s)>1e-16))&&(!(h>1&&(Math.abs((h-1)*a)>1e-16||Math.abs((h-1)*s)>1e-16))&&(Math.abs(f)<1e-18?(n.x=o.x,n.y=o.y,!0):Math.abs(f-1)<1e-18?(n.x=l.x,n.y=l.y,!0):Math.abs(h)<1e-18?(n.x=t.x,n.y=t.y,!0):Math.abs(h-1)<1e-18?(n.x=e.x,n.y=e.y,!0):!(f<0&&(Math.abs(f*p)>1e-16||Math.abs(f*u)>1e-16))&&(!(f>1&&(Math.abs((f-1)*p)>1e-16||Math.abs((f-1)*u)>1e-16))&&(!(h<0&&(Math.abs(h*a)>1e-16||Math.abs(h*s)>1e-16))&&(!(h>1&&(Math.abs((h-1)*a)>1e-16||Math.abs((h-1)*s)>1e-16))&&(n.x=f*p+o.x,n.y=f*u+o.y,!0))))))))},SuperMapAlgoPlot.PlottingUtil.parallel=function(t,e){var o=[],l=t.length;if(!t||null==t||t.length<2)return o;var n=!1;t.length>3&&t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y&&(n=!0),n?(o[0]=SuperMapAlgoPlot.PlottingUtil.findBisectorPoint(t[t.length-2],t[0],t[1],e),o[t.length-1]=o[0]):(o[0]=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],e,90),o[t.length-1]=SuperMapAlgoPlot.PlottingUtil.findPoint(t[t.length-1],t[t.length-2],-e,90));for(var r=t[0],i=t[1],a=t[1],s=1;s1&&(i=1);var a=(o.x-e.x)*i+e.x,s=(o.y-e.y)*i+e.y,p=(a-t.x)*(a-t.x)+(s-t.y)*(s-t.y);return Math.sqrt(p)},SuperMapAlgoPlot.PlottingUtil.isCounterClockwise=function(t,e,o){return(o.x-e.x)*(t.y-e.y)-(t.x-e.x)*(o.y-e.y)>0},SuperMapAlgoPlot.PlottingUtil.clearSamePts=function(t){for(var e=t.length,o=0;o1e-10},SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt=function(t,e){var o=t.slice();!0===e&&o.push(o[0]);for(var l=[],n=[],r=0;r-360&&o[r+1].x-o[0].x<-180&&l.push(r+1),o[r+1].x-o[0].x<360&&o[r+1].x-o[0].x>180&&n.push(r+1);if(n.length>l.length)for(var i=0;i180?p[u].x=p[u].x-360:p[u].x<-180&&(p[u].x=p[u].x+360);return p},SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt=function(t){var e=t.length,o=[];if(t.length<3)for(var l=0;l=e)){var r=t[n].x,i=t[n].y,a=t[n+2].x,s=t[n+2].y,p=t[n+4].x,u=t[n+4].y,c=t[n+3].x,P=t[n+3].y;if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,a,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,s,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(p,c,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(u,P,1e-10))o.push(new SuperMapAlgoPlot.Point(r,i)),o.push(new SuperMapAlgoPlot.Point(p,u));else for(var g=0;g<=1;g+=.03125){var y,f,h,S,A=g*g,M=A*g;y=1-3*g+3*A-M,f=3*(g-2*A+M),h=3*(A-M),S=M;var d=new SuperMapAlgoPlot.Point(y*r+f*a+h*p+S*c,y*i+f*s+h*u+S*P);o.push(d)}}return o},SuperMapAlgoPlot.PlottingUtil.computeBeizerPoints0=function(t,e,o){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),n=[],r=[],i=[];if(t){r.push(e[0]);var a=o[0],s=o[1],p=e[0].x+l*a,u=e[0].y+l*s;r.push(new SuperMapAlgoPlot.Point(p,u)),n.push(new SuperMapAlgoPlot.Point(p,u));for(var c=1;c0?(u=e+(l-e)*f/y,c=o+(n-o)*f/y):(u=e,c=o),a.x=u+(s-u)*t,a.y=c+(p-c)*t,a},SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine=function(t,e,o){if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.y,e.y)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.x,o.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.y,o.y))return!0;var l=t.x-e.x,n=t.y-e.y,r=t.x-o.x,i=t.y-o.y,a=(l*r+n*i)/(Math.sqrt(l*l+n*n)*Math.sqrt(r*r+i*i));return!!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,-1,.1)},SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines=function(t,e){if(!e||0===e.length)return{isOnPolyLine:!1,index:-1};for(var o=!1,l=-1,n=0;ns&&(o=s,l=n)}}return l&&o<0&&(l=-1),{minDis:o,index:l}},SuperMapAlgoPlot.PlottingUtil.findPointInLine=function(t,e,o){if(t===e||Math.abs(o)<1e-18)return t;var l=e.x-t.x,n=e.y-t.y,r=o/Math.sqrt(l*l+n*n),i=t.x+l*r,a=t.y+n*r;return new SuperMapAlgoPlot.Point(i,a)},SuperMapAlgoPlot.PlottingUtil.operateControlPoints=function(t){var e=t,o=e.length;if(3==o){var l=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(1,t[0],t[1],t[2],l),e.push(l)}if(o>4&&(e.splice(4,o-4),o=e.length),SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(t[0],t[1],e[2])){var n=e[0];e[0]=e[1],e[1]=n}if(!SuperMapAlgoPlot.PlottingUtil.pointIsRightToVerticle(e[0],e[1],e[2])){var r=e[2];e[2]=e[3],e[3]=r}return e},SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine=function(t,e,o){return(e.x-t.x)*(o.y-t.y)-(o.x-t.x)*(e.y-t.y)<0},SuperMapAlgoPlot.PlottingUtil.pointIsRightToVerticle=function(t,e,o){var l=new SuperMapAlgoPlot.Point(.5*(e.x+t.x),.5*(e.y+t.y)),n=new SuperMapAlgoPlot.Point(e.x-t.x,e.y-t.y),r=new SuperMapAlgoPlot.Point(o.x-l.x,o.y-l.y);return n.x*r.x+n.y*r.y>0},SuperMapAlgoPlot.PlottingUtil.linePnt=function(t,e,o){var l=SuperMapAlgoPlot.PlottingUtil.distance(t,e);if(0==l)return t;var n=o/l;return SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(n,t,e)},SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio=function(t,e,o){var l=new SuperMapAlgoPlot.Point(0,0);return l.x=e.x+(o.x-e.x)*t,l.y=e.y+(o.y-e.y)*t,l},SuperMapAlgoPlot.PlottingUtil.rotateAngle=function(t,e,o){var l=e,n=Math.cos(l),r=Math.sin(l),i=o.x-t.x,a=o.y-t.y;return o.x=i*n-a*r+t.x,o.y=i*r+a*n+t.y,o},SuperMapAlgoPlot.PlottingUtil.resize=function(t,e,o){return o.x=t.x+e*(o.x-t.x),o.y=t.y+e*(o.y-t.y),o},SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine=function(t,e){if(e<0||t.length<2)return{index:-1,pt:null};if(Math.abs(e)<1e-18)return{index:0,pt:t[0]};for(var o=0,l=0;le||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(o,e)){var n=o-e,r=t[l+1],i=t[l],a=n/SuperMapAlgoPlot.PlottingUtil.distance(r,i),s=new SuperMapAlgoPlot.Point(0,0);return s.x=r.x+(i.x-r.x)*a,s.y=r.y+(i.y-r.y)*a,{index:l,pt:s}}return{index:-1,pt:null}},SuperMapAlgoPlot.PlottingUtil.polylineDistance=function(t){if(0===t.length)return 0;for(var e=0,o=0;o=t.x&&e.y>=t.y?1:e.xt.y?2:e.x<=t.x&&e.y<=t.y?3:4)==(n=o.x>t.x&&o.y>t.y?1:o.xt.y?2:o.xr&&a>r)&&(s=0);else switch(l){case 1:(4==n&&ir)&&(s=0);break;case 2:(1==n&&ir)&&(s=0);break;case 3:(2==n&&ir)&&(s=0);break;case 4:(3==n&&ir)&&(s=0)}var p=new SuperMapAlgoPlot.Point(0,0);return SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r-1.7976931348623157e308,0)?(p.x=t.x,p.y=e.y):SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0)?(p.x=e.x,p.y=t.y):(p.x=(r*(e.y-t.y)+r*r*t.x+e.x)/(r*r+1),p.y=t.y+r*(p.x-t.x)),{isOnline:1===s,projectPoint:p}},SuperMapAlgoPlot.PlottingUtil.coordinateTrans=function(t,e,o){var l=SuperMapAlgoPlot.PlottingUtil.distance(new SuperMapAlgoPlot.Point(0,0),e),n=SuperMapAlgoPlot.PlottingUtil.radian(new SuperMapAlgoPlot.Point(0,0),e)+o*Math.PI/180,r=l*Math.cos(n)+t.x,i=l*Math.sin(n)+t.y;return new SuperMapAlgoPlot.Point(r,i)},SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen=function(t,e,o){var l,n,r=(o.x-e.x)*(o.x-e.x)+(o.y-e.y)*(o.y-e.y),i=Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y)),a=Math.sqrt((t.x-o.x)*(t.x-o.x)+(t.y-o.y)*(t.y-o.y));if(0==a||0==i)l=0,n=0;else if(0==r)l=i,n=0;else{var s=(i*i+a*a-r)/2/i/a,p=0;s>=1?(s=1,p=0):p=Math.sqrt(1-s*s),l=a*s,n=a*p}return{dLen1:l,dLen2:n}},SuperMapAlgoPlot.PlottingUtil.paraLine=function(t,e,o){var l=[];if(2>t.length)return l;if(o){var n=t[1].clone();n=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[0],Math.PI/2,n),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],n,e));for(var r=1;rMath.PI/2?s-Math.PI/2:Math.PI/2-s;var u=e/Math.cos(p);n=t[r+1].clone(),n=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[r],s,n),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[r],n,u))}n=t[t.length-2].clone(),n=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],-1*Math.PI/2,n),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-1],n,e))}else{var c=t[1].clone();c=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[0],-Math.PI/2,c),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],c,e));for(var P=1;PMath.PI/2?f-Math.PI/2:Math.PI/2-f;var S=e/Math.cos(h);c=t[P-1].clone(),c=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[P],f,c),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[P],c,S))}c=t[t.length-2].clone(),c=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],Math.PI/2,c),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-1],c,e))}return l},SuperMapAlgoPlot.PlottingUtil.circlePoint=function(t,e,o,l){l*=Math.PI/180;var n=t.x+e*Math.cos(l),r=t.y+o*Math.sin(l);return new SuperMapAlgoPlot.Point(n,r)},SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt=function(t){if(!t||0===t.length)return null;for(var e=0,o=0,l=0;li.y?r.y:i.y;if(!(e.ys))(e.y-r.y)*(i.x-r.x)/(i.y-r.y)+r.x>e.x&&o++}}return o%2==1},SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine=function(t,e){if(2>e.length)return{index:-1,pt:null};for(var o=0;o0?0:1}},SuperMapAlgoPlot.PlottingUtil.isSamePt=function(t,e){return!(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.x,e.x)||!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.y,e.y))},SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance=function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,t);return{index:o.index,pts:o.pt,bfind:-1!==o.index}},SuperMapAlgoPlot.PlottingUtil.ptInBounds=function(t,e){return t.x>e.left&&t.xe.bottom},SuperMapAlgoPlot.PlottingUtil.InnerAngle=function(t,e,o){if(t==e||t==o)return 0;var l=SuperMapAlgoPlot.PlottingUtil.distance(t,e),n=SuperMapAlgoPlot.PlottingUtil.distance(t,o),r=SuperMapAlgoPlot.PlottingUtil.distance(e,o),i=(l*l+n*n-r*r)/(2*l*n);return i>1&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,1)?i=1:i<1&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,-1)&&(i=-1),Math.acos(i)},SuperMapAlgoPlot.PlottingUtil.plumbLineLen=function(t,e,o){return SuperMapAlgoPlot.PlottingUtil.distance(t,e)*Math.sin(SuperMapAlgoPlot.PlottingUtil.InnerAngle(e,t,o))},SuperMapAlgoPlot.PlottingUtil.paraPolygon=function(t,e,o){var l=[],n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=n.length;if(r<2)return l;var i=new SuperMapAlgoPlot.Point(0,0);if(o){if(r<3)i=n[1].clone(),SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[0],Math.PI,i),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[0],i,e));else{for(var a=SuperMapAlgoPlot.PlottingUtil.radian(n[0],n[1]),s=SuperMapAlgoPlot.PlottingUtil.radian(n[0],n[n.length-1])-a;s<0;)s+=2*Math.PI;var p,u=s/2;p=u>Math.PI/2?u-Math.PI/2:Math.PI/2-u;var c=e/Math.cos(p);i=n[1].clone(),i=SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[0],u,i),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[0],i,c))}for(var P=1;PMath.PI/2?f-Math.PI/2:Math.PI/2-f;var S=e/Math.cos(h);i=n[P+1].clone(),i=SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[P],f,i),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[P],i,S))}if(r<3)i=n[r-2].clone(),SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[r-1],0,i),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[r-1],i,e));else{for(var A=SuperMapAlgoPlot.PlottingUtil.radian(n[r-1],n[0]),M=SuperMapAlgoPlot.PlottingUtil.radian(n[r-1],n[r-2])-A;M<0;)M+=2*Math.PI;var d,b=M/2;d=b>Math.PI/2?b-Math.PI/2:Math.PI/2-b;var v=e/Math.cos(d);i=n[0].clone(),i=SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[r-1],b,i),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[r-1],i,v))}}else{if(r<3){var m=n[1].clone();SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[0],0,m),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[0],m,e))}else{for(var O=SuperMapAlgoPlot.PlottingUtil.radian(n[0],n[1]),L=SuperMapAlgoPlot.PlottingUtil.radian(n[0],n[r-1])-O;L<0;)L+=2*Math.PI;var T,w=Math.PI-L/2;T=w>Math.PI/2?w-Math.PI/2:Math.PI/2-w;var x=e/Math.cos(T);i=n[r-1].clone(),i=SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[0],w,i),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[0],i,x))}for(var R=1;RMath.PI/2?I-Math.PI/2:Math.PI/2-I;var B=e/Math.cos(C);i=n[R-1].clone(),i=SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[R],I,i),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[R],i,B))}if(r<3)i=n[r-2].clone(),SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[r-1],Math.PI,i),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[r-1],i,e));else{for(var _=SuperMapAlgoPlot.PlottingUtil.radian(n[r-1],n[0]),D=SuperMapAlgoPlot.PlottingUtil.radian(n[r-1],n[r-2])-_;D<0;)D+=2*Math.PI;var N,k=Math.PI-D/2;N=k>Math.PI/2?k-Math.PI/2:Math.PI/2-k;var V=e/Math.cos(N);i=n[r-2].clone(),i=SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[r-1],k,i),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[r-1],i,V))}}return l},SuperMapAlgoPlot.PlottingUtil.getOutRectangleDis=function(t){if(2>t.length)return 0;for(var e=t[0].x,o=t[0].x,l=t[0].y,n=t[0].y,r=1;rt[r].x&&(o=t[r].x),lt[r].y&&(n=t[r].y);return SuperMapAlgoPlot.PlottingUtil.distance(new SuperMapAlgoPlot.Point(e,l),new SuperMapAlgoPlot.Point(o,n))},SuperMapAlgoPlot.PlottingUtil.clonePoints=function(t){var e=[];if(void 0===t||null===t)return e;if(SuperMapAlgoPlot.PlottingUtil.isArray(t)||(t=[t]),t&&null!=t)for(var o=0;o1e-12&&--f>0;){var h=Math.sin(g),S=Math.cos(g),A=Math.sqrt(P*h*(P*h)+(u*c-p*P*S)*(u*c-p*P*S));if(0==A)return 0;var M=p*c+u*P*S,d=Math.atan2(A,M),b=Math.asin(u*P*h/A),v=Math.cos(b)*Math.cos(b),m=M-2*p*c/v,O=s/16*v*(4+s*(4-3*v));y=g,g=o+(1-O)*s*Math.sin(b)*(d+O*A*(m+O*M*(2*m*m-1)))}if(0==f)return NaN;var T=v*(i*i-a*a)/(a*a),w=T/1024*(256+T*(T*(74-47*T)-128));return(a*(1+T/16384*(4096+T*(T*(320-175*T)-768)))*(d-w*A*(m+w/4*(M*(2*m*m-1)-w/6*m*(4*A*A-3)*(4*m*m-3))))).toFixed(3)/1e3},SuperMapAlgoPlot.PlottingUtil.destinationVincenty=function(t,e,o){var l,n,r=SuperMapAlgoPlot.PlottingUtil,i=r.VincentyConstants,a=i.a,s=i.b,p=i.f;"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng?(l=t.lng,n=t.lat):(l=t.lon,n=t.lat);for(var u=o,c=r.rad(e),P=Math.sin(c),g=Math.cos(c),y=(1-p)*Math.tan(r.rad(n)),f=1/Math.sqrt(1+y*y),h=y*f,S=Math.atan2(y,g),A=f*P,M=1-A*A,d=M*(a*a-s*s)/(s*s),b=1+d/16384*(4096+d*(d*(320-175*d)-768)),v=d/1024*(256+d*(d*(74-47*d)-128)),m=u/(s*b),O=2*Math.PI;Math.abs(m-O)>1e-12;){var T=Math.cos(2*S+m),w=Math.sin(m),x=Math.cos(m);O=m,m=u/(s*b)+v*w*(T+v/4*(x*(2*T*T-1)-v/6*T*(4*w*w-3)*(4*T*T-3)))}var R=h*w-f*x*g,U=Math.atan2(h*x+f*w*g,(1-p)*Math.sqrt(A*A+R*R)),E=p/16*M*(4+p*(4-3*M)),I=Math.atan2(w*P,f*x-h*w*g)-(1-E)*p*A*(m+E*w*(T+E*x*(2*T*T-1)));return"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng?L.latLng(r.deg(U),l+r.deg(I)):new SuperMap.LonLat(l+r.deg(I),r.deg(U))},SuperMapAlgoPlot.PlottingUtil.midPoint=function(t,e){var o=new SuperMapAlgoPlot.Point(0,0);return o.x=.5*(t.x+e.x),o.y=.5*(t.y+e.y),o},SuperMapAlgoPlot.PlottingUtil.makeDottedLine=function(t,e){for(var o,l,n=[],r=e,i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),a=e,s=t[0].clone(),p=1,u=0,c=!0,P=!0;u=3){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);SuperMapAlgoPlot.PlottingUtil.isRight(t[0],t[1],t[2])&&(e=-e);for(var o=[],l=1;l=3){var e=t[0].x+(t[2].x-t[1].x),o=t[0].y+(t[2].y-t[1].y),l=new SuperMapAlgoPlot.Point(e,o),n=[];return n.push.apply(n,t),n.push(l),n.push(n[0]),n}},polygon:function(t){if(t&&t.length>2)return t},circle:function(t){if(t&&2===t.length){for(var e=t[0],o=t[1],l=[],n=Math.sqrt((o.x-e.x)*(o.x-e.x)+(o.y-e.y)*(o.y-e.y)),r=360/this.nSegmentCount,i=0;i=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var o=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,l=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(l.push(e.pntCenter),0!==l.length)return l}},lune:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var o=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,l=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(0!==l.length)return l}},arc:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var o=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,l=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(0!==l.length)return l}},ellipse:function(t,e,o,l,n){if(!0===o){if((!l||null==l)&&t&&t.length>=3&&(l=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])),(!n||null==n)&&t&&t.length>=3){var r=SuperMapAlgoPlot.PlottingUtil.projectPoint(t[2],t[0],t[1]);n=SuperMapAlgoPlot.PlottingUtil.distance(r,t[2])}}else n=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[2]),l=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(e&&null!=e?e*=Math.PI/180:e=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1]),t&&t.length>0){var i=2*Math.PI,a=i/this.nSegmentCount,s=this.getArcSpatialData(t[0],l,n,e,0,i,a);if(!0===o){var p=Math.sin(e),u=Math.cos(e);t[2].x>t[1].x?(t[2].x=t[0].x-n*p,t[2].y=t[0].y+n*u):(t[2].x=t[0].x+n*p,t[2].y=t[0].y-n*u)}return s}},getArcSpatialData:function(t,e,o,l,n,r,i){var a=[];if(Math.abs(i)<1e-9)return a;for(;rn+2*Math.PI;)n+=2*Math.PI;var s=Math.cos(l)*e,p=Math.sin(l)*e,u=Math.cos(l)*o,c=Math.sin(l)*o,P=this.calcEllipseRadian(n,e,o),g=this.calcEllipseRadian(r,e,o);g-P<1e-5&&(g+=2*Math.PI);var y=Math.round(Math.abs((g-P)/i)+1);if(y<2)return a;for(var f=0;fa.length&&(a[a.length-1].x=t.x+s*Math.cos(g)-c*Math.sin(g),a[a.length-1].y=t.y+p*Math.cos(g)+u*Math.sin(g)),a},getArcCircleSpatialData:function(t,e,o,l){for(var n=[];lo+2*Math.PI;)o+=2*Math.PI;l-o<1e-10&&(l+=2*Math.PI);for(var r=(l-o)/50,i=o;i=1e-9&&(s=(o.y-e.y)/(o.x-e.x)),l.pntCenter.y=i.y,Math.abs(s)<1e-9?l.pntCenter.x=a.x:l.pntCenter.x=a.x-s*(i.y-a.y)}else{var p={},u={};p.x=(e.x+t.x)/2,p.y=(e.y+t.y)/2,u.x=(e.x+o.x)/2,u.y=(e.y+o.y)/2;var c=r/n,P=1;Math.abs(c)<1e-9?(l.pntCenter.x=p.x,Math.abs(o.x-e.x<1e-9)?l.pntCenter.y=u.y:l.pntCenter.y=-(o.x-e.x)/(o.y-e.y)*(l.pntCenter.x-u.x)+u.y):Math.abs(o.x-e.x)<1e-9?(l.pntCenter.y=u.y,l.pntCenter.x=-c*(l.pntCenter.y-p.y)+p.x):(P=(o.y-e.y)/(o.x-e.x),l.pntCenter.x=(c*P*(p.y-u.y)+P*p.x-c*u.x)/(P-c),l.pntCenter.y=(u.x-p.x+P*u.y-c*p.y)/(P-c))}var g=Math.atan2(t.y-l.pntCenter.y,t.x-l.pntCenter.x),y=Math.atan2(o.y-l.pntCenter.y,o.x-l.pntCenter.x);if(SuperMapAlgoPlot.PlottingUtil.isCounterClockwise(t,e,o)){for(;g>=2*Math.PI;)g-=2*Math.PI;for(;g<0;)g+=2*Math.PI;for(;y>2*Math.PI;)y-=2*Math.PI;for(;y=2*Math.PI;)y-=2*Math.PI;for(;y<0;)y+=2*Math.PI;for(;g>2*Math.PI;)g-=2*Math.PI;for(;y>g;)g+=2*Math.PI;var f=g;g=y,y=f}return l.dRadius=Math.sqrt((l.pntCenter.x-t.x)*(l.pntCenter.x-t.x)+(l.pntCenter.y-t.y)*(l.pntCenter.y-t.y)),l.dEndAngle=180*y/Math.PI,l.dStartAngle=180*g/Math.PI,l},calcEllipseRadian:function(t,e,o){var l=t,n=e*Math.sin(t),r=o*Math.cos(t),i=Math.atan2(n,r);if(t>Math.PI)for(;l>Math.PI;)l-=2*Math.PI,i+=2*Math.PI;else if(t<-Math.PI)for(;l<-Math.PI;)l+=2*Math.PI,i-=2*Math.PI;return i},getKendyShapePts:function(t){var e=[];if(2>(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length)return e;var o=this.calcShapePoints(t);if(12!=o.length)return e;o.push(o[0]),o.push(o[1]),o.splice(0,1);for(var l=0;l=l&&n>=r){var p=i.clone();i=s.clone(),s=p.clone()}else if(r>=l&&r>=n){var u=s.clone();s=a.clone(),a=u.clone()}if(!SuperMapAlgoPlot.PlottingUtil.isRight(s,i,a)){var c=i.clone();i=a.clone(),a=c.clone()}e[0]=i,e[1]=a,e[2]=s}return e},GetPtsByTriangle:function(t,e,o,l,n){var r=new SuperMapAlgoPlot.Point(0,0),i=0,a=0;return i=SuperMapAlgoPlot.PlottingUtil.distance(n,o),a=SuperMapAlgoPlot.PlottingUtil.distance(l,n),1==e&&(i*=2),2==e&&(a*=2),r.x=(i*l.x+a*o.x)/(i+a),r.y=(i*l.y+a*o.y)/(i+a),{pl:this.GetWhichPtOfNormal(t,o,r,n),pr:this.GetWhichPtOfNormal(t,l,r,n)}},GetWhichPtOfNormal:function(t,e,o,l){var n=0;n=SuperMapAlgoPlot.PlottingUtil.distance(l,e)/t;var r=this.GetPointsOfNormal(n,o,l);return SuperMapAlgoPlot.PlottingUtil.distance(e,r.pt4)>=(n=SuperMapAlgoPlot.PlottingUtil.distance(e,r.pt3))?r.pt3:r.pt4},getBezierPtsWithScalePts:function(t,e,o,l){var n=[],r=t.x,i=t.y,a=e.x,s=e.y,p=o.x,u=o.y,c=l.x,P=l.y;if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,a,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,s,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(p,c,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(u,P,1e-10))n.push(new SuperMapAlgoPlot.Point(r,i)),n.push(new SuperMapAlgoPlot.Point(p,u));else for(var g=0;g<=1;g+=.03125){var y,f,h,S,A=g*g,M=A*g;y=1-3*g+3*A-M,f=3*(g-2*A+M),h=3*(A-M),S=M;var d=new SuperMapAlgoPlot.Point(y*r+f*a+h*p+S*c,y*i+f*s+h*u+S*P);n.push(d)}return n},getSpatialData:function(t,e,o,l){switch(null==l&&(l=!0),t){case 24:return this.polyline(e);case 390:return this.kidney(e,l);case 590:return this.bezier(e,l);case 360:return this.loopbezier(e,l);case 28:return this.parallelogram(e);case 32:return this.polygon(e);case 29:return this.circle(e);case 26:return this.rectangle(e);case 380:return this.sector(e);case 370:return this.lune(e);case 44:return this.arc(e);case 31:return this.ellipse(e,o,l);case 48:return this.parallelline(e);default:return e}}};SuperMapAlgoPlot.RouteNodePrimitives=SuperMapAlgoPlot.RouteNodePrimitives||{};SuperMapAlgoPlot.RouteNodePrimitives={initialize:function(){},rendezvousPoint:function(){var t=[],e=new Object;e.type=SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),e.positionPoints.push(new SuperMapAlgoPlot.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMapAlgoPlot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),o.textContent="会",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},expandingPoint:function(){var t=[],e=new Object;e.type=SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),e.positionPoints.push(new SuperMapAlgoPlot.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMapAlgoPlot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),o.textContent="展",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},volleyPoint:function(){var t=[],e=new Object;e.type=SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),e.positionPoints.push(new SuperMapAlgoPlot.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMapAlgoPlot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),o.textContent="齐",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},standbyPoint_Outer:function(t,e){var o=[],l=new SuperMapAlgoPlot.Point(0,0),n=new SuperMapAlgoPlot.Point(0,30);t||(t=90);var r=new Object;r.type=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r.positionPoints=[];for(var i=t+10;i<170+t;i+=10){var a=SuperMapAlgoPlot.PlottingUtil.findPoint(l,n,30,i);r.positionPoints.push(a)}r.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(r);var s=r.positionPoints[r.positionPoints.length-1],p=r.positionPoints[r.positionPoints.length-2],u=SuperMapAlgoPlot.PlottingUtil.findPoint(s,p,9,22.5),c=SuperMapAlgoPlot.PlottingUtil.findPoint(s,p,9,-22.5),P=new Object;P.type=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P.positionPoints=[],P.positionPoints.push(u),P.positionPoints.push(s.clone()),P.positionPoints.push(c),P.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(P);var g=new Object;g.type=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g.positionPoints=[];for(var y=190+t;y<350+t;y+=10){var f=SuperMapAlgoPlot.PlottingUtil.findPoint(l,n,30,y);g.positionPoints.push(f)}g.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(g);var h=g.positionPoints[g.positionPoints.length-1],S=g.positionPoints[g.positionPoints.length-2],A=SuperMapAlgoPlot.PlottingUtil.findPoint(h,S,9,22.5),M=SuperMapAlgoPlot.PlottingUtil.findPoint(h,S,9,-22.5),d=new Object;d.type=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d.positionPoints=[],d.positionPoints.push(A),d.positionPoints.push(h.clone()),d.positionPoints.push(M),d.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(d);for(var b=0;b1&&t.push(n),n=[],e=a.GetX(),o=a.GetY(),n.push(new SuperMapAlgoPlot.Point(e,o));break;case 1:e=a.GetX(),o=a.GetY(),n.push(new SuperMapAlgoPlot.Point(e,o));break;case 2:if(3!=l.elements[i+1].GetType()||3!=l.elements[i+1].GetType())break;for(var s=l.elements[i-1].GetX(),p=l.elements[i-1].GetY(),u=a.GetX(),c=a.GetY(),P=l.elements[i+1].GetX(),g=l.elements[i+1].GetY(),y=l.elements[i+2].GetX(),f=l.elements[i+2].GetY(),h=0;h<=1;h+=.03125){var S=h*h,A=S*h,M=1-3*h+3*S-A,d=3*(h-2*S+A),b=3*(S-A),v=A;n.push(new SuperMapAlgoPlot.Point(M*s+d*u+b*P+v*y,M*p+d*c+b*g+v*f))}i+=2}}return n.length>1&&t.push(n),!0}},{key:"ensureData",value:function(){null==this.m_pData&&this.ensureData_helper()}},{key:"ensureData_helper",value:function(){var t=new SuperMapAlgoPlot.Path2DData,e=new SuperMapAlgoPlot.Element(0,0,0);t.elements.push(e),null==this.m_pData||this.mtDeRef(this.m_pData.ref)||(this.m_pData=null),this.m_pData=t}},{key:"detach",value:function(){1!=this.m_pData.ref&&this.detach_helper(),this.setBoundsDirty(!0)}},{key:"detach_helper",value:function(){var t=new SuperMapAlgoPlot.Path2DData;null==this.m_pData||this.mtDeRef(this.m_pData.ref)||(this.m_pData=null),this.m_pData=t}},{key:"setBoundsDirty",value:function(t){this.getDataPtr().isBoundsDirty=t}},{key:"getDataPtr",value:function(){return this.m_pData}},{key:"IsEmpty",value:function(){if(null==this.m_pData)return!0;var t=this.m_pData.elements.length;return 0==t||1==t&&0==this.m_pData.elements[0].GetType()}},{key:"GetElementCount",value:function(){return null!=this.m_pData?this.m_pData.elements.length:0}}])&&P(e.prototype,o),l&&P(e,l),Object.defineProperty(e,"prototype",{writable:!1}),t}();function y(t,e){for(var o=0;o2){var s=t.length;t.splice(2,s-2)}var p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);l.arrowTouLen=p*n;for(var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,p-l.arrowTouLen).pt,c=[],P=l.arrowTouLen*i,g=l.arrowTouLen*r,y=t.length-1,f=0;f-360&&i[p+1].x-i[0].x<-180&&a.push(p+1),i[p+1].x-i[0].x<360&&i[p+1].x-i[0].x>180&&s.push(p+1);if(s.length>a.length){for(var u=0;u180?r[i].x=r[i].x-360:r[i].x<-180&&(r[i].x=r[i].x+360);return r},SuperMapAlgoPlot.ArrowToolkit.eastCrossZone=function(t){var e=!1;if(void 0!==t[0].z&&(e=!0),!e)return t;for(var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),l=0;l-180&&(o[l].x=o[l].x+360);return o},SuperMapAlgoPlot.ArrowToolkit.westCrossZone=function(t){var e=!1;if(void 0!==t[0].z&&(e=!0),!e)return t;for(var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),l=0;l0&&o[l].x<180&&(o[l].x=o[l].x-360);return o},SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts=function(t,e,o,l,n){var r=[];switch(t=SuperMapAlgoPlot.ArrowToolkit.beforePtsCrossZone(t).pts,e=SuperMapAlgoPlot.ArrowToolkit.beforePtsCrossZone(e).pts,n){case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR:case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR:var i=o[0],a=o[1],s=0,p=0;3==o.length&&(s=o[2]),4==o.length&&(s=o[2],p=o[3]);var u=0;if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(s,0)&&!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(p,0)){var c=SuperMapAlgoPlot.PlottingUtil.clonePoints(t);c.splice(c.length-1,1),u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(c)*s*p}var P=new SuperMapAlgoPlot.Point((e[0].x+e[1].x)/2,(e[0].y+e[1].y)/2);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0)){var g=l*i,y=t[t.length-1];return y=SuperMapAlgoPlot.PlottingUtil.rotate(P,0,1,y),r.push(SuperMapAlgoPlot.PlottingUtil.findPointInLine(P,y,g)),r.push(t[t.length-1]),y=t[t.length-1],y=SuperMapAlgoPlot.PlottingUtil.rotate(P,0,-1,y),r.push(SuperMapAlgoPlot.PlottingUtil.findPointInLine(P,y,g)),t=SuperMapAlgoPlot.ArrowToolkit.afterPtsCrossZone(t),r=SuperMapAlgoPlot.ArrowToolkit.afterPtsCrossZone(r)}var f=l*a,h=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(f,P,t[t.length-1]);f=l*i,f+=u;var S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(f,t[t.length-1],h),A=S.pntLeft,M=S.pntRight,d=t[t.length-1];return r.push(M),r.push(d),r.push(A),t=SuperMapAlgoPlot.ArrowToolkit.afterPtsCrossZone(t),r=SuperMapAlgoPlot.ArrowToolkit.afterPtsCrossZone(r)}},SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine=function(t,e,o,l){var n=[];if(2>t.length)return n;t=SuperMapAlgoPlot.ArrowToolkit.beforePtsCrossZone(t).pts;var r,i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),a=SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e,0);switch(o){case SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE:n=n.concat(t),l&&!a&&SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,i-e),n.splice(n.length-1,1),n.push(r.pt));break;case SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER:if(2==t.length)n=n.concat(t),l&&!a&&SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,i-e),n.splice(n.length-1,1),n.push(r.pt));else{var s=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(s);if(a)n=n.concat(s);else{var u=s[s.length-1];if(!a&&(e1;c--){if(!(e>SuperMapAlgoPlot.PlottingUtil.distance(u,s[c]))){var P=SuperMapAlgoPlot.PlottingUtil.findPoint(u,s[c],e,0);s.push(P),n=s;break}s.splice(c,1)}l||n.push(u)}else n=n.concat(s)}}break;case SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL:var g=e;if(g>i)return n;for(var y,f,h=Math.ceil(i/(1.4*g)),S=0,A=[],M=0;Mt.length)return l;switch(t=SuperMapAlgoPlot.ArrowToolkit.beforePtsCrossZone(t).pts,o){case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE:var n=t[0],r=t[1],i=SuperMapAlgoPlot.PlottingUtil.distance(n,r);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,e,1e-7)||i>e){var a=SuperMapAlgoPlot.PlottingUtil.findPoint(n,r,e,0),s=e*Math.tan(.125*Math.PI),p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,t[0],a);l.push(p.pntLeft),l.push(t[0]),l.push(p.pntRight)}else{r=t[2];var u=SuperMapAlgoPlot.PlottingUtil.findPoint(n,r,e,0),c=e*Math.tan(.125*Math.PI),P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(c,t[0],u);l.push(P.pntLeft),l.push(t[0]),l.push(P.pntRight)}break;case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE:break;case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID:var g=t[0],y=t[1],f=SuperMapAlgoPlot.PlottingUtil.distance(g,y);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(f,e,1e-7)||f>e){var h=e*Math.tan(.125*Math.PI),S=SuperMapAlgoPlot.PlottingUtil.findPoint(g,y,e,0),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(h,t[0],S);l.push(A.pntLeft),l.push(g),l.push(A.pntRight),l.push(A.pntLeft)}else{y=t[2];var M=e*Math.tan(.125*Math.PI),d=SuperMapAlgoPlot.PlottingUtil.findPoint(g,y,e,0),b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,t[0],d);l.push(b.pntLeft),l.push(g),l.push(b.pntRight),l.push(b.pntLeft)}break;case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL:var v=t[0],m=2*Math.sqrt(e*e/3),O=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(m/2,O,1e-7)||O>m/2){var L=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],m,20),T=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],m,-20),w=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],m/2,0);l.push(v),l.push(L),l.push(w),l.push(T),l.push(v)}else{v=t[2];var x=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],m,20),R=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],m,-20),U=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],m/2,0);l.push(v),l.push(x),l.push(U),l.push(R),l.push(v)}break;case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW:var E=[],I=t[0],C=2*Math.sqrt(e*e/3),B=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(C/1.4,B,1e-7)||B>C/1.4){var _=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],C,20),D=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],C,-20),N=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],C/1.4,0);E.push(I),E.push(_),E.push(N),E.push(D),E.push(I);var k=new SuperMapAlgoPlot.Point((E[0].x+E[1].x)/2,(E[0].y+E[1].y)/2),V=new SuperMapAlgoPlot.Point((E[3].x+E[4].x)/2,(E[3].y+E[4].y)/2),j=new SuperMapAlgoPlot.Point((k.x+V.x)/2,(k.y+V.y)/2),Y=.75*SuperMapAlgoPlot.PlottingUtil.distance(k,V)/2,z=SuperMapAlgoPlot.PlottingUtil.findPointInLine(j,k,Y),F=SuperMapAlgoPlot.PlottingUtil.findPointInLine(j,V,Y);l.push(E[0]),l.push(z),l.push(E[1]),l.push(E[2]),l.push(E[3]),l.push(F),l.push(E[4])}else{I=t[0];var W=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],C,20),G=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],C,-20),H=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],C/1.4,0);E.push(I),E.push(W),E.push(H),E.push(G),E.push(I);k=new SuperMapAlgoPlot.Point((E[0].x+E[1].x)/2,(E[0].y+E[1].y)/2),V=new SuperMapAlgoPlot.Point((E[3].x+E[4].x)/2,(E[3].y+E[4].y)/2),j=new SuperMapAlgoPlot.Point((k.x+V.x)/2,(k.y+V.y)/2),Y=.75*SuperMapAlgoPlot.PlottingUtil.distance(k,V)/2,z=SuperMapAlgoPlot.PlottingUtil.findPointInLine(j,k,Y),F=SuperMapAlgoPlot.PlottingUtil.findPointInLine(j,V,Y);l.push(E[0]),l.push(z),l.push(E[1]),l.push(E[2]),l.push(E[3]),l.push(F),l.push(E[4])}}return l=SuperMapAlgoPlot.ArrowToolkit.afterPtsCrossZone(l)},SuperMapAlgoPlot.ArrowToolkit.generateArrowTailShapePts=function(t,e,o,l){var n=e.length,r=[],i=0;t=SuperMapAlgoPlot.ArrowToolkit.beforePtsCrossZone(t).pts;for(var a=0;a0&&h>0){var A=1/(g-t[2].x),M=-1/(y-t[2].y),d=1*t[2].y/(y-t[2].y)-1*t[2].x/(g-t[2].x);S=Math.abs(A*t[0].x+M*t[0].y+d)/Math.sqrt(A*A+M*M)}else h<=1e-4?S=Math.abs(y-t[1].y):f<=1e-4&&(S=Math.abs(g-t[1].x));var b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(S,t[2],new SuperMapAlgoPlot.Point(g,y)),v=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(t[1],t[2],t[0]);v?(r[1]=t[1],i[1]=t[0]):(r[1]=t[0],i[1]=t[1]),t[1]=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);var m=Math.sqrt((b.pntLeft.x-b.pntRight.x)*(b.pntLeft.x-b.pntRight.x)+(b.pntLeft.y-b.pntRight.y)*(b.pntLeft.y-b.pntRight.y))*SuperMapAlgoPlot.ArrowToolkit.ConstValue.sv_AtWidthDivAwWidth,O=(n=m*SuperMapAlgoPlot.ArrowToolkit.ConstValue.sv_AtLenDivAtWidth)*P;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(c,0)||(O=(n=l*c)*P);var L,T,w=SuperMapAlgoPlot.PlottingUtil.distance(t[e],t[e-1]),x=2*n;w0&&(t[e]=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(n,t[e],C)),E=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O,t[e+1],t[e]),(v=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(t[e],t[e+1],E.pntLeft))?(i[e]=new SuperMapAlgoPlot.Point(E.pntLeft.x,E.pntLeft.y),r[e]=new SuperMapAlgoPlot.Point(E.pntRight.x,E.pntRight.y)):(i[e]=new SuperMapAlgoPlot.Point(E.pntRight.x,E.pntRight.y),r[e]=new SuperMapAlgoPlot.Point(E.pntLeft.x,E.pntLeft.y)),R=2;R=2&&this.controlPoints.length=this.minEditPts){var e={textContent:this.textContent,type:this.symbolType,surroundLineFlag:!1,positionPoints:t,style:{}};if(e.type===SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL&&e.positionPoints.push(e.positionPoints[0]),this.symbolType===SuperMapAlgoPlot.SymbolType.PARALLELLINE){if(this.controlPoints&&this.controlPoints.length>=3){var o=!1;void 0!==this.controlPoints[0].z&&(o=!0);var l=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);SuperMapAlgoPlot.PlottingUtil.isRight(this.controlPoints[0],this.controlPoints[1],this.controlPoints[2])&&(l=-l);for(var n=[],r=1;ry)break;if(u>=g){var h=p.split("");p="";for(var S="",A=h.length,M=0;M=g){var d=h[M];if(h[M]="\n",i++,a.weight?f=parseFloat(a.fontSize)*i+i+2*a.weight+.2*parseFloat(a.fontSize):this.style.strokeWidth&&(f=parseFloat(a.fontSize)*i+i+2*a.strokeWidth+.2*parseFloat(a.fontSize)),!(f.5)return l.startIndex=0,l.startPt=t[0],l.endIndex=t.length-1,l.endPt=t[t.length-1],l;null==o&&(o=.5);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n*(o-e),t),i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n*(o+e),t);return l.startIndex=r.index,l.startPt=r.pts,l.endIndex=i.index,l.endPt=i.pts,l}},{key:"computeDashLine",value:function(t,e,o){var l=[],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(n<=0)return[];for(var r,i=o[0],a=1,s=0,p=!0,u=!0;s2){for(var s=-1,p=t.length-2;p>=0;p--)if(o1){SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>a&&(r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,[t[t.length-1],t[t.length-2]])).bfind&&(t.splice(t.length-1,1),t.push(r.pts)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var u=t[t.length-1],c=i,P=o;if(void 0===u)return t;var g=SuperMapAlgoPlot.PlottingUtil.radian(u,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,P,P,g+157.5),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,P,P,g+202.5),h={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[y,i,f],h)}else this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n)}},{key:"addArrowWithOutLine",value:function(t,e){if(t.length<2)return t;var o,l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);void 0===e&&(e=(this.isEdit,.5*this.getSubSymbolScaleValue()));var n=t.slice();o=l*e;var r,i=t[t.length-1],a=o*Math.cos(.125*Math.PI);if(t.length>2){for(var s=-1,p=t.length-2;p>=0;p--)if(o1){SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>a&&(r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,[t[t.length-1],t[t.length-2]])).bfind&&(t.splice(t.length-1,1),t.push(r.pts));var u=t[t.length-1],c=i,P=o;if(void 0===u)return t;var g=SuperMapAlgoPlot.PlottingUtil.radian(u,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,P,P,g+157.5),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,P,P,g+202.5),h={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[y,i,f],h)}else this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n)}},{key:"addDovetailArrow",value:function(t,e){if(t.length<2)return t;var o,l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);void 0===e&&(e=(this.isEdit,.5*this.getSubSymbolScaleValue())),o=l*e;var n=t[t.length-1];if(t.length>2){for(var r=-1,i=t.length-2;i>=0;i--)if(oe||l<=0)&&(l=e),l}},{key:"computeSubSymbol",value:function(t,e,o,l,n,r){if(null==t.symbolData||null==t.symbolData.innerCells)return null;void 0===n&&(n=0),void 0===r&&(r=0);for(var i=SuperMapAlgoPlot.AnalysisSymbol.analysisSymbolCells(t.symbolData,!0),a=0,s=0,p=0,u=0,c=0;cP[g].x&&(p=P[g].x),u>P[g].y&&(u=P[g].y)}var f=new SuperMapAlgoPlot.Point(a,s),h=new SuperMapAlgoPlot.Point(p,u),S=(f.y-h.y)/o,A=(f.x-h.x)/o,M=A>S?A:S,d=new SuperMapAlgoPlot.Point(.5*(f.x+h.x),.5*(f.y+h.y));d.x+=n*(f.x-h.x),d.y+=r*(f.y-h.y);for(var b=0,v=i.length;b=r)return o.z;if(a>=r)return e.z}return n.x!=e.x&&e.x!=o.x?e.z+(n.x-e.x)/(e.x-o.x)*(e.z-o.z):n.y!=e.y&&e.y!=o.y?e.z+(n.y-e.y)/(e.y-o.y)*(e.z-o.z):0==(i=SuperMapAlgoPlot.PlottingUtil.distance(e,n))?e.z:e.z-(e.z-o.z)*(i/r)}},{key:"ComputeBeizerZValueByDis",value:function(t,e,o){if(t.length<2)return!1;for(var l=[],n=0;n2?SuperMapAlgoPlot.PlottingUtil.radian(e[e.length-1],e[e.length-2]):SuperMapAlgoPlot.PlottingUtil.radian(e[1],e[0]))-r,a=e[e.length-1].x+n*Math.cos(i),s=e[e.length-1].y+n*Math.sin(i),p=new SuperMapAlgoPlot.Point(a,s),u=l+r,c=e[e.length-1].x+n*Math.cos(u),P=e[e.length-1].y+n*Math.sin(u),g=new SuperMapAlgoPlot.Point(c,P),y=[];y.push(p),y.push(e[e.length-1].clone()),y.push(g);var f={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},h=SuperMapAlgoPlot.PlottingUtil.radian(e[0],e[1]);i=h-r,a=e[0].x+n*Math.cos(i),s=e[0].y+n*Math.sin(i),p=new SuperMapAlgoPlot.Point(a,s),u=h+r,c=e[0].x+n*Math.cos(u),P=e[0].y+n*Math.sin(u),g=new SuperMapAlgoPlot.Point(c,P);var S=[];S.push(p),S.push(e[0].clone()),S.push(g);var A=this.scaleValues[1]===SuperMapAlgoPlot.ArrowLineType.DOUBLELINE?SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,M=this.scaleValues[2]===SuperMapAlgoPlot.ArrowLineType.DOUBLELINE?SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL;this.scaleValues[1]===SuperMapAlgoPlot.ArrowLineType.DOUBLELINE?this.addCell(A,S,f):this.scaleValues[1]===SuperMapAlgoPlot.ArrowLineType.TRIANGLESOLID&&this.addCell(A,S,f),this.scaleValues[2]===SuperMapAlgoPlot.ArrowLineType.DOUBLELINE?this.addCell(M,y,f):this.scaleValues[2]===SuperMapAlgoPlot.ArrowLineType.TRIANGLESOLID&&this.addCell(M,y,f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}])&&b(e.prototype,o),l&&b(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function w(t){"@babel/helpers - typeof";return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(t,e){for(var o=0;o0&&n<.4&&(this.scaleValues[0]=n)}else if(1==t){var r=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),i=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/l;0i&&(this.scaleValues[1]=i)}}this.calculateParts()}}])&&B(e.prototype,o),l&&B(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function V(t){"@babel/helpers - typeof";return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){for(var o=0;o=2&&t.lengtho.x&&a.xo.y&&a.yl.x||a.yl.y)&&(e[0]=r,e[3]=o),4==e.length&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e)}}},{key:"GetPointsByTrapezoid",value:function(t,e,o,l,n){var r=e.x,i=e.y,a=o.x,s=o.y,p=l.x,u=l.y,c=0,P=0,g=0,y=0;if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(Math.abs(i-s),0))c=r+a-p,P=u;else if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(Math.abs(r-a),0))c=p,P=i+s-u;else{var f=1*(i-s)/(r-a),h=u-f*p;P=f*(c=((s+i)/2+(r+a)/(2*f)-h)/(f+1/f))+h,c=2*c-p,P=2*P-u}var S=Math.sqrt(1*(r-a)*(r-a)+1*(i-s)*(i-s)),A=Math.sqrt(1*(r-c)*(r-c)+1*(i-P)*(i-P));S>0?(g=r+(a-r)*A/S,y=i+(s-i)*A/S):(g=r,y=i);var M=g+(c-g)*t,d=y+(P-y)*t;n.x=M,n.y=d}}])&&j(e.prototype,o),l&&j(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function G(t){"@babel/helpers - typeof";return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function H(t,e){for(var o=0;o1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,l,n,r,i;this.controlPoints[2]&&(this.controlPoints[2].isFixedPos=!0),this.controlPoints[0].xo?Math.abs((i-o)/(r-e))>s?2:1:is?4:1:r>l?i>o?Math.abs((i-o)/(r-l))>s?2:3:is?4:3:i>o?2:il?Math.abs((a-l)/(i-o))>p?2:1:ap?4:1:i>n?a>l?Math.abs((a-l)/(i-n))>p?2:3:ap?4:3:a>l?2:al&&(c=l),c<(l+r)/2&&(c=(l+r)/2),u=1-2*(l-c)/(l-r);break;case 2:case 4:var P=s.x+(e.x-s.x);P>n&&(P=n),P<(o+n)/2&&(P=(o+n)/2),u=1-2*(n-P)/(n-o)}u<0&&(u=0),u>1&&(u=1),this.scaleValues[0]=u}this.calculateParts()}}])&&H(e.prototype,o),l&&H(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function K(t){"@babel/helpers - typeof";return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $(t,e){for(var o=0;o=this.minEditPts){var e,o,l,n;t[0].xl?Math.abs((e-l)/(t-o))>i?2:1:ei?4:1:t>n?e>l?Math.abs((e-l)/(t-n))>i?2:3:ei?4:3:e>l?2:e1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,l,n;this.scalePoints=[];var r=[];this.controlPoints[0].x=2&&this.controlPoints.lengthl?Math.abs((a-l)/(i-o))>p?2:1:ap?4:1:i>n?a>l?Math.abs((a-l)/(i-n))>p?2:3:ap?4:3:a>l?2:al&&(c=l),c<(l+r)/2&&(c=(l+r)/2),u=1-2*(l-c)/(l-r);break;case 2:case 4:var P=s.x+(e.x-s.x);P>n&&(P=n),P<(o+n)/2&&(P=(o+n)/2),u=1-2*(n-P)/(n-o)}u<0&&(u=0),u>1&&(u=1),this.scaleValues[0]=u}this.calculateParts()}},{key:"calculateArc",value:function(t,e,o,l,n,r){(!n||1!=n&&-1!=n)&&(n=-1),r||(r=360);for(var i=Math.PI/r/2,a=i*n,s=Math.abs(l-o),p=[],u=o,c=0;c2*Math.PI?u-2*Math.PI:u}return p}},{key:"getAction",value:function(t,e,o,l,n,r){var i=(l-r)/(n-o);return tl?Math.abs((e-l)/(t-o))>i?2:1:ei?4:1:t>n?e>l?Math.abs((e-l)/(t-n))>i?2:3:ei?4:3:e>l?2:e360;)this.scaleValues[0]-=360;for(;this.scaleValues[0]<0;)this.scaleValues[0]+=360;for(;this.scaleValues[1]>360;)this.scaleValues[1]-=360;for(;this.scaleValues[1]<0;)this.scaleValues[1]+=360;for(;this.scaleValues[1]<=this.scaleValues[0];)this.scaleValues[1]+=360;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.scaleValues[1],this.scaleValues[0])&&(this.scaleValues[1]+=360);for(var e=[],o=0;o0){for(var u=[],c=0;c=0;P--)u.push(n[P]);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,u,{surroundLineFlag:!1,lineWidthLimit:!0,weight:0,strokeWidth:0})}e.length=0;for(var g=0;g360;)l-=360;for(;l<0;)l+=360;t%2==0?this.scaleValues[0]=l:t%2==1&&(this.scaleValues[1]=l)}this.calculateParts()}}])&>(e.prototype,o),l&>(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function At(t){"@babel/helpers - typeof";return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mt(t,e){for(var o=0;oMath.abs(this.scaleValues[l]-this.scaleValues[n]))for(var i=0;i<2;i++){var a,s,p;0==i?(p=l,a=SuperMapAlgoPlot.PlottingUtil.radian(o[l],o[n])*SuperMapAlgoPlot.PlottingUtil.RTOD,s=Math.acos((r*r+this.scaleValues[l]*this.scaleValues[l]-this.scaleValues[n]*this.scaleValues[n])/(2*r*this.scaleValues[l]))*SuperMapAlgoPlot.PlottingUtil.RTOD):(p=n,a=SuperMapAlgoPlot.PlottingUtil.radian(o[n],o[l])*SuperMapAlgoPlot.PlottingUtil.RTOD,s=Math.acos((r*r+this.scaleValues[n]*this.scaleValues[n]-this.scaleValues[l]*this.scaleValues[l])/(2*r*this.scaleValues[n]))*SuperMapAlgoPlot.PlottingUtil.RTOD);var u=a-s,c=a+s,P=u<0&&c>0||u>360||c>360;u=this.adjustAngle(u),c=this.adjustAngle(c);for(var g=this.angleRange[p].length-1;g>=0;g--)if(P){if(c>this.angleRange[p][g].End||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(c,this.angleRange[p][g].End)){this.angleRange[p].splice(g,1);continue}if(c>this.angleRange[p][g].Start&&(this.angleRange[p][g].Start=c),uthis.angleRange[p][g].End)this.angleRange[p].splice(g,1);else if(u>this.angleRange[p][g].Start&&cthis.angleRange[p][g].End)continue;if(u>this.angleRange[p][g].Start&&(this.angleRange[p][g].End=u),c=0;h--){for(var S=this.adjustAngle(this.angleRange[f][h].Start),A=this.adjustAngle(this.angleRange[f][h].End);A=0;w--)for(var x=0;x=0;r--)e.push(t[n][r]);if(t.splice(n,1),void 0!==(o=this.generatePolygon(t,e))&&0!==o.length)return o}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>=this.controlPoints.length)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMapAlgoPlot.PlottingUtil.distance(o[t],e);this.scaleValues[t]=l}this.calculateParts()}},{key:"adjustAngle",value:function(t){for(;t>360;)t-=360;for(;t<0;)t+=360;return t}},{key:"getCircleLonLat",value:function(t,e){return null===this.map?2*this.getDefaultSubSymbolSize():this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map?((o=this.map.latLngToLayerPoint(L.latLng(t.y,t.x))).x+=e,this.map.layerPointToLatLng(L.point(o.x,o.y)).lng-t.x):this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map?((o=this.map.getPixelFromLonLat(new SuperMap.LonLat(t.x,t.y))).x+=e,this.map.getLonLatFromPixel(new SuperMap.Pixel(o.x,o.y)).lon-t.x):void 0;var o}}])&&Mt(e.prototype,o),l&&Mt(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ot(t){"@babel/helpers - typeof";return(Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lt(t,e){for(var o=0;o2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(2>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=-1;n=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var r=(e.x-o[n].x)/l,i=(e.y-o[n].y)/l;this.scaleValues[2*t]=r,this.scaleValues[2*t+1]=i}this.calculateParts()}},{key:"reSample",value:function(t,e){var o=[];if(null==t||e<0)return o;var l=t.length;if(l>2){var n=new SuperMapAlgoPlot.Point(0,0),r=0,i=0,a=0,s=2*Math.PI;n=t[0],o.push(n);for(var p=!1,u=!1,c=!1,P=1;P0||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(0,y)?Math.acos(g):2*Math.PI-Math.acos(g),s>2*Math.PI&&r+2*Math.PIa&&(r-=2*Math.PI,s>2*Math.PI&&(s-=2*Math.PI)),r>a&&rr+f&&(s=r+f):(c=!0,s=r+f),p=!0}else n=t[P-1],P--,o.push(n),a=0,s=2*Math.PI,p=!1,u=!1,c=!1}return o.push(t[l-1]),o}return o}},{key:"reSampleByAngle",value:function(t,e){var o=[],l=t.length;if(null==t||l<=0||e<=0)return o;for(var n=t,r=l,i=!1;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n[0].x,n[r-1].x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n[0].y,n[r-1].y);){if((r-=1)<=0)return o;i=!0}var a,s,p=[];for(a=0;a1e-10&&SuperMapAlgoPlot.PlottingUtil.distance(n[s],n[a+1])>1e-10){var u=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(n[a],n[s],n[a+1])/Math.PI;u>e&&u<180-e&&(p[a]=1,s++)}var c=0;for(a=0;a0){for(i&&c++,o=[],s=0,a=0;a0)for(var n=0;n=this.minEditPts){for(var t=this.controlPoints[0],e=this.controlPoints[1],o=SuperMapAlgoPlot.PlottingUtil.distance(t,e),l=this.scaleValues[0]*o,n=SuperMapAlgoPlot.PlottingUtil.parallel(this.controlPoints,l/2),r=SuperMapAlgoPlot.PlottingUtil.parallel(this.controlPoints,-l/2),i=180*SuperMapAlgoPlot.PlottingUtil.radian(t,e)/Math.PI,a=[],s=i+90;s<=i+270;s+=10){var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,l/2,l/2,s);a.push(p)}for(var u=[],c=i-90;c<=i+90;c+=10){var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,l/2,l/2,c);u.push(P)}var g=[];(g=(g=(g=(g=g.concat(a)).concat(r)).concat(u)).concat(n)).push(g[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g);var y=new SuperMapAlgoPlot.Point(a[0].x,a[0].y);this.addScalePoint(y)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint&&0==t){var o=SuperMapAlgoPlot.PlottingUtil.distance(e,this.controlPoints[0]),l=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);this.scaleValues[0]=2*o/l}this.calculateParts()}}])&&kt(e.prototype,o),l&&kt(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Wt(t){"@babel/helpers - typeof";return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gt(t,e){for(var o=0;othis.controlPoints.length))if(2===this.controlPoints.length){var t=this.controlPoints[0].clone(),e=this.controlPoints[1].clone(),o=SuperMapAlgoPlot.PlottingUtil.distance(t,e)/2,l=180*SuperMapAlgoPlot.PlottingUtil.radian(t,e)/Math.PI,n=new SuperMapAlgoPlot.Point((t.x+e.x)/2,(t.y+e.y)/2),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,o,o,l+90),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,3*o,3*o,l+90);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[r,new SuperMapAlgoPlot.Point(r.x+o,r.y)]),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[i,new SuperMapAlgoPlot.Point(i.x+o,i.y)])}else{var a=this.controlPoints[0].clone(),s=this.controlPoints[1].clone(),p=this.controlPoints[2].clone(),u=0;u=SuperMapAlgoPlot.PlottingUtil.isRight(p,a,s)?180*SuperMapAlgoPlot.PlottingUtil.radian(s,a)/Math.PI+90:180*SuperMapAlgoPlot.PlottingUtil.radian(a,s)/Math.PI+90;var c=SuperMapAlgoPlot.PlottingUtil.distance(a,s)/2,P=new SuperMapAlgoPlot.Point((a.x+s.x)/2,(a.y+s.y)/2),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,c,c,u),y=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(p,a,s);if(y<=4*c){var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,3*c,3*c,u);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[g,new SuperMapAlgoPlot.Point(g.x+c,g.y)]),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[f,new SuperMapAlgoPlot.Point(f.x+c,f.y)])}else{for(var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,y-c,y-c,u),S=180*Math.acos(c/(y-2*c))/Math.PI,A=u-S,M=u-180+S,d=u-180-S+360,b=[],v=u+S-360;v<=A;v+=4){var m=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,c,c,v);b.push(m)}var O=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,c,c,A);b.push(O);for(var L=[],T=M;T=0;U--)R.push(L[U]);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,R)}}}}])&&Gt(e.prototype,o),l&&Gt(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qt(t){"@babel/helpers - typeof";return(Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Kt(t,e){for(var o=0;o1?this.computeText(l,this.textContent[1],t):this.computeText(l,this.textContent[0],t),this.relLineText=SuperMapAlgoPlot.RelLineText.ONBOTHLINE,this.showPathLine=o}else{var n=[];n=this.relLineText===SuperMapAlgoPlot.RelLineText.ONRIGHTLINE?this.getTextPathPts(t,!1):this.relLineText===SuperMapAlgoPlot.RelLineText.ONLEFTLINE?this.getTextPathPts(t,!0):t,this.computeText(n,this.textContent[0],t)}this.finish()}}},{key:"getTextPathPts",value:function(t,e){t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t);var o=this.getLonLatDistanceFromPixel(this.textToLineDistance);if(0>=o)return SuperMapAlgoPlot.PlottingUtil.clonePoints(t);var l=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,e);return SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)}},{key:"computeText",value:function(t,e,o){if(!(t.length<2)){for(var l=e.length,n=t,r=n.length,i=0,a=0;a180&&(L-=360),L<-180&&(L+=360),L>90&&L<=180?(b=-180,M=!0,d=!0):L>-180&&L<-90&&(b=180,M=!0,d=!0),!0,0!=b?this.relLineText===SuperMapAlgoPlot.RelLineText.ONLINE||(y=this.relLineText===SuperMapAlgoPlot.RelLineText.ONLEFTLINE?"lt":"lb"):this.relLineText===SuperMapAlgoPlot.RelLineText.ONLINE||(y=this.relLineText===SuperMapAlgoPlot.RelLineText.ONLEFTLINE?"lb":"lt");for(var T=0;Ti);T++){var w=T;for(d&&(w=l-T-1),v=(A=f[w]).getWidth(),M&&(p+=v);u<=p&&c=0){for(var I=[],C=0;C<=O.index;C++)I.push(o[C]);I.push(O.pt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,I)}if(E.index>=0){var B=[];B.push(E.pt);for(var _=E.index+1;_2){for(var l=-1,n=t.length-2;n>=0;n--)if(e1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,l,n;this.scalePoints=[];var r=[];this.controlPoints[0].x=2&&this.controlPoints.lengthl?Math.abs((e-l)/(t-o))>i?2:1:ei?4:1:t>n?e>l?Math.abs((e-l)/(t-n))>i?2:3:ei?4:3:e>l?2:e=this.minEditPts&&this.computeLine(e)}},{key:"computeLine",value:function(t){this.components.length=0;var e=t[0],o=t[t.length-1];this.subSectionCount<=1&&(this.subSectionCount=10);var l=SuperMapAlgoPlot.PlottingUtil.distance(e,o)/(2*this.subSectionCount-1);if(this.lineRelationType===SuperMapAlgoPlot.LineRelationType.SOLID)this.addCell(24,t,{surroundLineFlag:!1});else if(this.lineRelationType===SuperMapAlgoPlot.LineRelationType.DASH)for(var n=0;n=this.minEditPts){if(this.addCell(32,t,{surroundLineFlag:!1}),this.textContent&&null!=this.textContent&&this.textContent.length>0){var e=[];this.scaleValues[1]>t.length&&(this.scaleValues[1]=0);var o={labelRotation:0,surroundLineFlag:!1,labelAlign:"lt"};if(0===this.scaleValues[1])e=[SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t)];else{var l=null,n=null;this.scaleValues[1]===t.length?(l=t[t.length-1],n=t[0]):(l=t[this.scaleValues[1]-1],n=t[this.scaleValues[1]]),o.labelRotation=-SuperMapAlgoPlot.PlottingUtil.radian(l,n)/Math.PI*180;var r=this.scaleValues[0]*SuperMapAlgoPlot.PlottingUtil.distance(l,n);e=[SuperMapAlgoPlot.PlottingUtil.findPoint(l,n,r,0)]}this.addCell(34,e,o,this.textContent);var i=new SuperMapAlgoPlot.Point(e[0].x,e[0].y);i.isScalePoint=!0,i.tag=0,this.scalePoints=[],this.addScalePoint(i)}}else this.controlPoints.length>=2&&this.controlPoints.lengtho);a++){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(r,n+l*a);if(-1!==s.index){var p=new SuperMapAlgoPlot.Point(s.pt.x,s.pt.y),u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(l/2,e[s.index],p);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u.pntLeft,u.pntRight])}}this.finish()}}}])&&Le(e.prototype,o),l&&Le(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ue(t){"@babel/helpers - typeof";return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ee(t,e){for(var o=0;o1&&(this.scaleValues[2]=1)}}else if(2===t){var h=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,o[0],o[1]);if(h.isOnline){var S=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),A=this.getLonLatDistanceFromPixel(S),M=A*this.scaleValues[5],d=SuperMapAlgoPlot.PlottingUtil.findPointInLine(o[1],o[0],A),b=SuperMapAlgoPlot.PlottingUtil.findPointInLine(d,o[1],M);A=SuperMapAlgoPlot.PlottingUtil.distance(o[1],h.projectPoint),S=this.getPixelDistanceFromLonLat(A),this.scaleValues[3]=S/(this.style.weight||this.style.strokeWidth);var v=SuperMapAlgoPlot.PlottingUtil.distance(e,h.projectPoint),m=this.getPixelDistanceFromLonLat(v);this.scaleValues[4]=m/(this.style.weight||this.style.strokeWidth),M=SuperMapAlgoPlot.PlottingUtil.distance(b,h.projectPoint),this.scaleValues[5]=M/A}}else if(3===t){var O=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),L=this.getLonLatDistanceFromPixel(O),T=SuperMapAlgoPlot.PlottingUtil.findPointInLine(o[1],o[0],L),w=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,T,o[1]);if(w.isOnline){var x=SuperMapAlgoPlot.PlottingUtil.distance(T,w.projectPoint);this.scaleValues[5]=x/L,this.scaleValues[5]<0?this.scaleValues[5]=0:this.scaleValues[5]>1&&(this.scaleValues[5]=1)}}}this.calculateParts()}}])&&Ee(e.prototype,o),l&&Ee(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function De(t){"@babel/helpers - typeof";return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ne(t,e){for(var o=0;o2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0))return;var i=-1;i=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var a=(e.x-o[i].x)/n,s=(e.y-o[i].y)/n;this.scaleValues[2*t]=a,this.scaleValues[2*t+1]=s}}}])&&Ne(e.prototype,o),l&&Ne(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ze(t){"@babel/helpers - typeof";return(ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fe(t,e){for(var o=0;o=this.minEditPts){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[2]),l=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1]),n=[];n.push(t[0]),(n=n.concat(SuperMapAlgoPlot.Primitives.getArcCircleSpatialData(t[0],e,o,l))).push(t[0]),0!==n.length&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n)}}}])&&Fe(e.prototype,o),l&&Fe(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ze(t){"@babel/helpers - typeof";return(Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xe(t,e){for(var o=0;o=this.minEditPts){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[2]),l=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1]),n=SuperMapAlgoPlot.Primitives.getArcCircleSpatialData(t[0],e,o,l);0!==n.length&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n)}}}])&&Xe(e.prototype,o),l&&Xe(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function oo(t){"@babel/helpers - typeof";return(oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lo(t,e){for(var o=0;o=this.minEditPts){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[2]),l=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1]),n=[];n.push(t[1]),(n=n.concat(SuperMapAlgoPlot.Primitives.getArcCircleSpatialData(t[0],e,o,l))).push(t[1]),0!==n.length&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n)}}}])&&lo(e.prototype,o),l&&lo(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function po(t){"@babel/helpers - typeof";return(po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uo(t,e){for(var o=0;o=this.minEditPts){this.scalePoints=[];var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),l=!1;void 0!==o[0].z&&(l=!0);var n=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL),r=n.arrowTouLen,i=n.leftBodyPts,a=n.rightBodyPts,s=[];s.push(i[i.length-1]),s.push(a[a.length-1]);var p=[];p.push(this.scaleValues[3]),p.push(this.scaleValues[4]),p.push(this.scaleValues[0]),p.push(this.scaleValues[1]);var u=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts(t,s,p,r,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),c=[];if(l){for(var P=[],g=[],y=[],f=0;f=0;v--)c.push(y[v]);var m=new SuperMapAlgoPlot.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),O=new SuperMapAlgoPlot.Point(m.x,m.y);O.isScalePoint=!0,O.tag=0,this.addScalePoint(O);var L=new SuperMapAlgoPlot.Point(i[i.length-1].x,i[i.length-1].y);L.isScalePoint=!0,L.tag=1,this.addScalePoint(L);var T=new SuperMapAlgoPlot.Point(u[0].x,u[0].y);T.isScalePoint=!0,T.tag=2,this.addScalePoint(T);for(var w=0;w=0;R--)c.push(a[R]);var U=new SuperMapAlgoPlot.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),E=new SuperMapAlgoPlot.Point(U.x,U.y);E.isScalePoint=!0,E.tag=0,this.addScalePoint(E);var I=new SuperMapAlgoPlot.Point(i[i.length-1].x,i[i.length-1].y);I.isScalePoint=!0,I.tag=1,this.addScalePoint(I);var C=new SuperMapAlgoPlot.Point(u[0].x,u[0].y);C.isScalePoint=!0,C.tag=2,this.addScalePoint(C)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMapAlgoPlot.Point(this.scalePoints[0].x,this.scalePoints[0].y),l=new SuperMapAlgoPlot.Point(this.scalePoints[1].x,this.scalePoints[1].y),n=new SuperMapAlgoPlot.Point(this.scalePoints[2].x,this.scalePoints[2].y),r=this.scaleValues[0],i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints),a=i*r;if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[this.controlPoints.length-2],this.controlPoints[this.controlPoints.length-1]),p=s.projectPoint;if(s.isOnline){var u=SuperMapAlgoPlot.PlottingUtil.distance(p,this.controlPoints[this.controlPoints.length-1]);this.scaleValues[0]=u/i}}else if(1==t){var c=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,l,n).projectPoint,P=SuperMapAlgoPlot.PlottingUtil.distance(c,o);this.scaleValues[1]=P/a}else if(2==t){var g=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[1],n).projectPoint,y=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(g,o,this.controlPoints[1]),f=y.projectPoint,h=SuperMapAlgoPlot.PlottingUtil.distance(f,o);!0===y.inOnline?this.scaleValues[4]=-h/a:this.scaleValues[4]=h/a}}this.calculateParts()}}])&&uo(e.prototype,o),l&&uo(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function fo(t){"@babel/helpers - typeof";return(fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ho(t,e){for(var o=0;o=2&&t.length2*l-1){for(var a=0;af[v].length)){for(var m=P[v][P[v].length-1],O=g[v][0],L=new SuperMapAlgoPlot.Point(.5*(m.x+O.x),.5*(m.y+O.y)),T=f[v][f[v].length-1],w=f[v][f[v].length-2],x=this.ComputeZValue(L,T,w),R={x:L.x,y:L.y,z:x},U=[],E=[],I=0;I=0;_--)if(v==l-1)B.push(f[v][_]);else{var D={x:f[v][_].x,y:f[v][_].y,z:.5*(f[v][_].z+f[v+1][_].z)};B.push(D)}this.ComputeBeizerZValueByDis(B,g[v],U),d.push(U),U=[];for(var N=y[v],k=0;k0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,j,{surroundLineFlag:!1}),this.scalePoints=this.scalePoints.concat(this.m_scalePoints),!0}p.shapePts.length>0&&(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,p.shapePts,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p.shapePts,{surroundLineFlag:!1})),this.scalePoints=[];for(var z=0;zthis.MAX_SCALEVALUE?r=this.MAX_SCALEVALUE:r3)for(var i=l-1,a=0,s=i;a3)for(var r=l-1,i=0,a=r;i0)if(1==t)o.push(0);else{var l=SuperMapAlgoPlot.PlottingUtil.distance(e[0],e[this.MIN_PTCOUNT_PERARROW]);o.push(l);for(var n=1,r=this.MIN_PTCOUNT_PERARROW;nd&&(M=.5*d);var b=M*P;f.push(f[u].clone());var v,m=0;v=h-M;var O=[],L=0;for(L=2;L<=u;L++)m+=SuperMapAlgoPlot.PlottingUtil.distance(f[L-1],f[L-2]),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v,0,1e-14)?O[L]=0:SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v-m,0,1e-14)?O[L]=b:O[L]=b+(S-b)*Math.pow((v-m)/v,this.SV_ATScaleParameter);O[u+1]=b;var T=new SuperMapAlgoPlot.Point(0,0),w=new SuperMapAlgoPlot.Point(0,0),x=new SuperMapAlgoPlot.Point(0,0);for(L=2;L<=u;L++){SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,f[L-2],f[L-1],f[L],w,x),u==L&&SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,f[u],f[u-1],x,T);var R=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O[L],w,f[L-1]);r[L]=R.pntLeft,n[L]=R.pntRight}var U,E,I=T.clone();if(SuperMapAlgoPlot.PlottingUtil.distance(f[u],I)>0){var C=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(M,f[u],T);f[u]=C.clone()}for(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(b,f[u+1],f[u]),n[u+1]=A.pntLeft,r[u+1]=A.pntRight,L=2;L<=u;L++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,n[L-1],n[L],n[L+1],w,x),i[L]=w.clone(),a[L]=x.clone(),SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,r[L-1],r[L],r[L+1],w,x),s[L]=w.clone(),p[L]=x.clone();SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,n[1],n[2],i[2],T),a[1]=T.clone(),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,r[1],r[2],s[2],T),p[1]=T.clone();E=SuperMapAlgoPlot.PlottingUtil.distance(n[u+1],n[u])*(1/3),(U=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(E,f[u],f[u+1])).x+=n[u+1].x-f[u].x,U.y+=n[u+1].y-f[u].y,E=(S-b)*Math.pow(E/v,this.SV_ATScaleParameter+.3),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(E,n[u+1],U),i[u+1]=A.pntLeft.clone(),E=SuperMapAlgoPlot.PlottingUtil.distance(r[u+1],r[u])*(1/3),(U=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(E,f[u],f[u+1])).x+=r[u+1].x-f[u].x,U.y+=r[u+1].y-f[u].y,E=(S-b)*Math.pow(E/v,this.SV_ATScaleParameter+.3),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(E,r[u+1],U),s[u+1]=A.pntRight.clone();var B=[],_=M*y,D=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(_,f[u],f[u+1]);this.m_scalePoints.push(D.clone()),_=M*g,A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(_,f[u+1],D),B.push(A.pntRight),B.push(f[u+1]),B.push(A.pntLeft);var N=[];for(N.push(n[u+1]),L=u;L>=1;L--)N.push(i[L+1]),N.push(a[L]),N.push(n[L]);var k=[];for(L=1;L<=u;L++)k.push(r[L]),k.push(p[L]),k.push(s[L+1]);k.push(r[u+1]),l.push.apply(l,k),l.push.apply(l,B),l.push.apply(l,N),o=M/h;var V=[];for(L=N.length-1;L>=0;L--)V.push(N[L]);return{dATLenDivABLen:o,arrowBodyPts:l}}},{key:"generateAYPts",value:function(t,e,o,l,n){var r=new SuperMapAlgoPlot.Point(.5*(t[2].x+o[2].x),.5*(t[2].y+o[2].y)),i=new SuperMapAlgoPlot.Point(.5*(t[1].x+o[1].x),.5*(t[1].y+o[1].y)),a=new SuperMapAlgoPlot.Point(.5*(t[0].x+o[0].x),.5*(t[0].y+o[0].y)),s=SuperMapAlgoPlot.PlottingUtil.distance(r,i),p=SuperMapAlgoPlot.PlottingUtil.distance(a,i),u=n*(s+p),c=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0),g=new SuperMapAlgoPlot.Point(0,0);if(u>s){u=s+p-u,c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(u,a,i);var y=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),f=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[0]);y=y*u/p,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(y,t[0],t[1]),f=f*u/p,g=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(f,o[0],o[1])}else{c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(u,r,i);var h=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[2]),S=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[2]);h=h*u/s,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(h,t[2],t[1]),S=S*u/s,g=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(S,o[2],o[1])}this.m_scalePoints.push(c.clone());var A=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(c,P),M=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(c,g),d=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(A,c,P),b=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(M,c,g),v=e[11].clone(),m=e[10].clone(),O=l[5].clone(),L=l[6].clone(),T=SuperMapAlgoPlot.PlottingUtil.intersectLines(m,v,c,P),w=SuperMapAlgoPlot.PlottingUtil.distance(T.intersectPoint,m),x=SuperMapAlgoPlot.PlottingUtil.distance(m,c);w=w>x?this.SV_AJCtrl*x:this.SV_AJCtrl*w;var R=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(w,m,v);v=R.clone(),e[11]=R.clone(),T=SuperMapAlgoPlot.PlottingUtil.intersectLines(L,O,c,g),w=(w=SuperMapAlgoPlot.PlottingUtil.distance(T.intersectPoint,L))>(x=SuperMapAlgoPlot.PlottingUtil.distance(L,c))?this.SV_AJCtrl*x:this.SV_AJCtrl*w,O=(R=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(w,L,O)).clone(),l[5]=R.clone();var U=[];U.push(m),U.push(v),U.push(d),U.push(c);var E=[];return E.push(c),E.push(b),E.push(O),E.push(L),{arrowLeftYaoPts:U,arrowRightYaoPts:E}}}])&&ho(e.prototype,o),l&&ho(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function vo(t){"@babel/helpers - typeof";return(vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mo(t,e){for(var o=0;o=this.minEditPts){if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.controlPoints[0].x,this.controlPoints[1].x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.controlPoints[0].y,this.controlPoints[1].y))return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),l=!1;void 0!==o[0].z&&(l=!0);var n=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_TRAPEZOID),r=n.arrowTouLen,i=n.leftBodyPts,a=n.rightBodyPts,s=[];s.push(i[i.length-1]),s.push(a[a.length-1]);var p=[];p.push(this.scaleValues[3]),p.push(this.scaleValues[4]),p.push(0),p.push(0);var u=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts(t,s,p,r,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),c=[];c=(c=c.concat(i)).concat(u);for(var P=a.length-1;P>=0;P--)c.push(a[P]);if(c.push(i[0]),l){for(var g=[],y={x:o[1].x,y:o[1].y,z:o[1].z},f={x:o[0].x,y:o[0].y,z:o[0].z},h=0;h=2&&t.length=2;d--)P.push(o[d]);P.push({x:g.x,y:g.y,z:S});var b=[];this.ComputeBeizerZValueByDis(P,i,b);for(var v=[],m=0;m0&&b.length>0&&v.length>0){p=(p=(p=(p=[]).concat(M)).concat(v)).concat(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{surroundLineFlag:!1});for(var L=[],T=0;T=0;f--)e.push(p[f]),l.push(p[f])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:n}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(l,0)){var n=this.operateCtrlPts(t);e=n.length,e--;for(var r=[],i=0;i0&&A>0){var d=1/(f-y[2].x),b=-1/(h-y[2].y),v=1*y[2].y/(h-y[2].y)-1*y[2].x/(f-y[2].x);M=Math.abs(d*y[0].x+b*y[0].y+v)/Math.sqrt(d*d+b*b)}else A<=1e-4?M=Math.abs(h-y[1].y):S<=1e-4&&(M=Math.abs(f-y[1].x));var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,y[2],new SuperMapAlgoPlot.Point(f,h)),O=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(y[1],y[2],y[0]);O?(i[1]=y[1],a[1]=y[0]):(i[1]=y[0],a[1]=y[1]),y[1]=new SuperMapAlgoPlot.Point((y[0].x+y[1].x)/2,(y[0].y+y[1].y)/2);var L=Math.sqrt((m.pntLeft.x-m.pntRight.x)*(m.pntLeft.x-m.pntRight.x)+(m.pntLeft.y-m.pntRight.y)*(m.pntLeft.y-m.pntRight.y))*this.sv_AtWidthDivAwWidth,T=(l=L*this.sv_AtLenDivAtWidth)*r;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0)||(T=(l=t*n)*r);var w,x,R=SuperMapAlgoPlot.PlottingUtil.distance(y[P],y[P-1]),U=2*l;R0&&(y[P]=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(l,y[P],_)),C=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(T,y[P+1],y[P]),(O=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(y[P],y[P+1],C.pntLeft))?(a[P]=new SuperMapAlgoPlot.Point(C.pntLeft.x,C.pntLeft.y),i[P]=new SuperMapAlgoPlot.Point(C.pntRight.x,C.pntRight.y)):(a[P]=new SuperMapAlgoPlot.Point(C.pntRight.x,C.pntRight.y),i[P]=new SuperMapAlgoPlot.Point(C.pntLeft.x,C.pntLeft.y)),E=2;E2)for(var n=0;n0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{surroundLineLimit:!0,lineTypeLimit:!0})}}}])&&_o(e.prototype,o),l&&_o(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function jo(t){"@babel/helpers - typeof";return(jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yo(t,e){for(var o=0;o=2&&t.length0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{surroundLineFlag:!1}),this.m_scalePoints.length>0&&(this.m_scalePoints[0]={x:this.m_scalePoints[0].x,y:this.m_scalePoints[0].y,z:v});for(var U=0;U0&&(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,E,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,E,{surroundLineFlag:!1})),this.scalePoints=[];for(var I=0;Ithis.SV1_MaxValue&&(o=this.SV1_MaxValue)}else o=SuperMapAlgoPlot.PlottingUtil.distance(a.projectPoint,r)0&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,surroundLineLimit:!0,lineTypeLimit:!0})}else{this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l);r.length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,r,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0})}}}}])&&qo(e.prototype,o),l&&qo(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ko(t){"@babel/helpers - typeof";return(Ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $o(t,e){for(var o=0;o0&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,r,{surroundLineFlag:!1,fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0})}}}])&&$o(e.prototype,o),l&&$o(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function nl(t){"@babel/helpers - typeof";return(nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rl(t,e){for(var o=0;o=2&&t.length=0;d--)e.push(c[d]),l.push(c[d]);for(var b=1;b=0;f--)e.push(p[f]),l.push(p[f])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:n}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(l,0)){var n=this.operateCtrlPts(t);e=n.length,e--;for(var r=[],i=0;i0&&A>0){var d=1/(f-y[2].x),b=-1/(h-y[2].y),v=1*y[2].y/(h-y[2].y)-1*y[2].x/(f-y[2].x);M=Math.abs(d*y[0].x+b*y[0].y+v)/Math.sqrt(d*d+b*b)}else A<=1e-4?M=Math.abs(h-y[1].y):S<=1e-4&&(M=Math.abs(f-y[1].x));var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,y[2],new SuperMapAlgoPlot.Point(f,h)),O=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(y[1],y[2],y[0]);O?(i[1]=y[1],a[1]=y[0]):(i[1]=y[0],a[1]=y[1]),y[1]=new SuperMapAlgoPlot.Point((y[0].x+y[1].x)/2,(y[0].y+y[1].y)/2);var L=Math.sqrt((m.pntLeft.x-m.pntRight.x)*(m.pntLeft.x-m.pntRight.x)+(m.pntLeft.y-m.pntRight.y)*(m.pntLeft.y-m.pntRight.y))*this.sv_AtWidthDivAwWidth,T=(l=L*this.sv_AtLenDivAtWidth)*r;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0)||(T=(l=t*n)*r);var w,x,R=SuperMapAlgoPlot.PlottingUtil.distance(y[P],y[P-1]),U=2*l;R0&&(y[P]=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(l,y[P],_)),C=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(T,y[P+1],y[P]),(O=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(y[P],y[P+1],C.pntLeft))?(a[P]=new SuperMapAlgoPlot.Point(C.pntLeft.x,C.pntLeft.y),i[P]=new SuperMapAlgoPlot.Point(C.pntRight.x,C.pntRight.y)):(a[P]=new SuperMapAlgoPlot.Point(C.pntRight.x,C.pntRight.y),i[P]=new SuperMapAlgoPlot.Point(C.pntLeft.x,C.pntLeft.y)),E=2;E1)if(this.arrowBodyType!==SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o);else for(var u=0,c=o.length-1;u1&&this.addCell(M,p,e),s.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s)}}}])&&ql(e.prototype,o),l&&ql(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Kl(t){"@babel/helpers - typeof";return(Kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $l(t,e){for(var o=0;o=this.minEditPts){this.scalePoints=[];var e=SuperMapAlgoPlot.PlottingUtil.clonePoints(t);this.isEdit||(this.scaleValues[0]=1.5*this.getSubSymbolScaleValue());var o=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts(e,this.scaleValues,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL),l=o.arrowTouLen,n=o.leftBodyPts,r=o.rightBodyPts,i=[];i.push(n[n.length-1]),i.push(r[r.length-1]);var a=[];a.push(this.scaleValues[3]),a.push(this.scaleValues[4]),a.push(this.scaleValues[0]),a.push(this.scaleValues[1]);var s=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts(e,i,a,l,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),p=[];p=(p=p.concat(n)).concat(s);for(var u=r.length-1;u>=0;u--)p.push(r[u]);p.push(p[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,p,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1});for(var c=SuperMapAlgoPlot.PlottingUtil.clonePoints(n),P=[],g=r.length-1;g>=0;g--)P.push(r[g]);P=P.concat(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var y=SuperMapAlgoPlot.PlottingUtil.clonePoints(s);y.push(r[r.length-1]),y.splice(0,0,n[n.length-1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0});var f=new SuperMapAlgoPlot.Point((i[0].x+i[1].x)/2,(i[0].y+i[1].y)/2),h=new SuperMapAlgoPlot.Point(f.x,f.y);h.isScalePoint=!0,h.tag=0,this.scalePoints.push(h);var S=new SuperMapAlgoPlot.Point(n[n.length-1].x,n[n.length-1].y);S.isScalePoint=!0,S.tag=1,this.scalePoints.push(S);var A=new SuperMapAlgoPlot.Point(s[0].x,s[0].y);A.isScalePoint=!0,A.tag=2,this.scalePoints.push(A),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMapAlgoPlot.Point(this.scalePoints[0].x,this.scalePoints[0].y),l=new SuperMapAlgoPlot.Point(this.scalePoints[1].x,this.scalePoints[1].y),n=new SuperMapAlgoPlot.Point(this.scalePoints[2].x,this.scalePoints[2].y),r=this.scaleValues[0],i=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);i=SuperMapAlgoPlot.PlottingUtil.clearSamePts(i);var a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i),s=a*r;if(0==t){var p=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,i[i.length-2],i[i.length-1]),u=p.projectPoint;if(p.isOnline){var c=SuperMapAlgoPlot.PlottingUtil.distance(u,i[i.length-1]);this.scaleValues[0]=c/a}}else if(1==t){var P=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,l,n).projectPoint,g=SuperMapAlgoPlot.PlottingUtil.distance(P,o);this.scaleValues[1]=g/s}else if(2==t){var y=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,i[1],n).projectPoint,f=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(y,o,i[1]),h=f.projectPoint,S=SuperMapAlgoPlot.PlottingUtil.distance(h,o);!1===f.isOnline&&(this.scaleValues[4]=S/s)}}this.calculateParts()}}])&&$l(e.prototype,o),l&&$l(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function nn(t){"@babel/helpers - typeof";return(nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rn(t,e){for(var o=0;o=2&&t.length=0;f--)e.push(p[f]),l.push(p[f])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:n}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(l,0)){var n=this.operateCtrlPts(t);e=n.length,e--;for(var r=[],i=0;i0&&A>0){var d=1/(f-y[2].x),b=-1/(h-y[2].y),v=1*y[2].y/(h-y[2].y)-1*y[2].x/(f-y[2].x);M=Math.abs(d*y[0].x+b*y[0].y+v)/Math.sqrt(d*d+b*b)}else A<=1e-4?M=Math.abs(h-y[1].y):S<=1e-4&&(M=Math.abs(f-y[1].x));var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,y[2],new SuperMapAlgoPlot.Point(f,h)),O=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(y[1],y[2],y[0]);O?(i[1]=y[1],a[1]=y[0]):(i[1]=y[0],a[1]=y[1]),y[1]=new SuperMapAlgoPlot.Point((y[0].x+y[1].x)/2,(y[0].y+y[1].y)/2);var L=Math.sqrt((m.pntLeft.x-m.pntRight.x)*(m.pntLeft.x-m.pntRight.x)+(m.pntLeft.y-m.pntRight.y)*(m.pntLeft.y-m.pntRight.y))*this.sv_AtWidthDivAwWidth,T=(l=L*this.sv_AtLenDivAtWidth)*r;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0)||(T=(l=t*n)*r);var w,x,R=SuperMapAlgoPlot.PlottingUtil.distance(y[P],y[P-1]),U=2*l;R0&&(y[P]=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(l,y[P],_)),C=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(T,y[P+1],y[P]),(O=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(y[P],y[P+1],C.pntLeft))?(a[P]=new SuperMapAlgoPlot.Point(C.pntLeft.x,C.pntLeft.y),i[P]=new SuperMapAlgoPlot.Point(C.pntRight.x,C.pntRight.y)):(a[P]=new SuperMapAlgoPlot.Point(C.pntRight.x,C.pntRight.y),i[P]=new SuperMapAlgoPlot.Point(C.pntLeft.x,C.pntLeft.y)),E=2;E=0;--v)b.push(A[v]);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[b[2],b[1],b[7],b[6]],{surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[b[6],b[5],b[4],b[3],b[2]],{lineTypeLimit:!0,surroundLineFlag:!1}),this.scalePoints=[];var m=A[0].clone();m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m);var O=A[1].clone();O.isScalePoint=!0,O.tag=1,this.scalePoints.push(O);var L=A[2].clone();L.isScalePoint=!0,L.tag=2,this.scalePoints.push(L),this.scalePoints=SuperMapAlgoPlot.ArrowToolkit.afterPtsCrossZone(this.scalePoints),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),o=SuperMapAlgoPlot.ArrowToolkit.beforePtsCrossZone(o).pts;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),n=o[0].clone(),r=o[1].clone(),i=e.clone();if(0==t){var a=SuperMapAlgoPlot.PlottingUtil.distance(i,n)/l;this.scaleValues[0]=a}else if(1==t){var s=SuperMapAlgoPlot.PlottingUtil.projectPoint(i,n,r),p=SuperMapAlgoPlot.PlottingUtil.distance(s,i)/l;this.scaleValues[1]=p;var u=SuperMapAlgoPlot.PlottingUtil.distance(s,r)/l;this.scaleValues[3]=u}else if(2==t){var c=SuperMapAlgoPlot.PlottingUtil.projectPoint(i,n,r),P=SuperMapAlgoPlot.PlottingUtil.distance(c,i)/l;this.scaleValues[2]=P;var g=SuperMapAlgoPlot.PlottingUtil.distance(c,r)/l;this.scaleValues[4]=g}}this.calculateParts()}}])&&Pn(e.prototype,o),l&&Pn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Sn(t){"@babel/helpers - typeof";return(Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function An(t,e){for(var o=0;o=0;--x)w.push(O[x]);var R=SuperMapAlgoPlot.PlottingUtil.clonePoints(w);R.push(R[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,R,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[w[0],w[1]]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[w[2],w[3]]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[w[3],w[4],w[5],w[6],w[7]],{lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[w[7],w[8]]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[w[9],w[10]]),this.scalePoints=[];var U=O[0].clone();U.isScalePoint=!0,U.tag=0,this.scalePoints.push(U);var E=O[3].clone();E.isScalePoint=!0,E.tag=1,this.scalePoints.push(E);var I=O[4].clone();I.isScalePoint=!0,I.tag=2,this.scalePoints.push(I),this.scalePoints=SuperMapAlgoPlot.ArrowToolkit.afterPtsCrossZone(this.scalePoints),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),o=SuperMapAlgoPlot.ArrowToolkit.beforePtsCrossZone(o).pts;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),n=o[0].clone(),r=o[1].clone(),i=e.clone();if(0==t){var a=SuperMapAlgoPlot.PlottingUtil.distance(i,n)/l;this.scaleValues[0]=a}else if(1==t){var s=SuperMapAlgoPlot.PlottingUtil.projectPoint(i,n,r),p=SuperMapAlgoPlot.PlottingUtil.distance(s,i)/l;this.scaleValues[1]=p;var u=SuperMapAlgoPlot.PlottingUtil.distance(s,r)/l;this.scaleValues[3]=u}else if(2==t){var c=SuperMapAlgoPlot.PlottingUtil.projectPoint(i,n,r),P=SuperMapAlgoPlot.PlottingUtil.distance(c,i)/l;this.scaleValues[2]=P;var g=SuperMapAlgoPlot.PlottingUtil.distance(c,r)/l;this.scaleValues[4]=g}}this.calculateParts()}}])&&An(e.prototype,o),l&&An(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function mn(t){"@babel/helpers - typeof";return(mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function On(t,e){for(var o=0;o=2&&t.length0&&(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.shapePts,{strokeWidth:0,weight:0,lineWidthLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.LeftArowHead,{lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.LeftArowRightBody),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.RightArowHead,{lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d)),this.scalePoints=[];for(var O=0;Othis.SV1_MaxValue&&(l=this.SV1_MaxValue)}else l=SuperMapAlgoPlot.PlottingUtil.distance(a.projectPoint,r)=2&&t.length.7&&(b=.7),this.scaleValues[2]=b}}}}])&&Fn(e.prototype,o),l&&Fn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Jn(t){"@babel/helpers - typeof";return(Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zn(t,e){for(var o=0;ot[n].x&&(o=t[n].x),l0&&(p=!0),S=[];for(var m=new SuperMapAlgoPlot.Point(c,i.y),O=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,5,5,45),L=0;L0&&(p=!0),u-=s,c+=s}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),o=0;ot[l+1].y&&(e=t[l],t[l]=t[l+1],t[l+1]=e):t[l].x>t[l+1].x&&(e=t[l],t[l]=t[l+1],t[l+1]=e);return t}}])&&Zn(e.prototype,o),l&&Zn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function tr(t){"@babel/helpers - typeof";return(tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function er(t,e){for(var o=0;o.3&&(S=.3),this.scaleValues[1]=S}}}}])&&gr(e.prototype,o),l&&gr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ar(t){"@babel/helpers - typeof";return(Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mr(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[1]=.5*this.getSubSymbolScaleValue()}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.addSubSymbols(r,a,i);for(var s=[],p=[],u=0;u<=n.startIndex;u++)s.push(e[u]);if(s.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),n.endIndex<=e.length){p.push(n.endPt);for(var c=n.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p,this.scaleValues[1])}var P=o*this.scaleValues[0]*.5,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,P,P,i+90);this.addScalePoint(g,0),this.finish()}}},{key:"addSubSymbols",value:function(t,e,o){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,e,o-180)}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length2&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P)}g.push(r.endPt);for(var h=r.endIndex+1;h=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var l=0;l<4;l++){var n=Math.floor(l*o.length/4),r=new SuperMapAlgoPlot.Point(o[n].x,o[n].y),i=new SuperMapAlgoPlot.Point(o[n+1].x,o[n+1].y),a=new SuperMapAlgoPlot.Point((r.x+i.x)/2,(r.y+i.y)/2),s=SuperMapAlgoPlot.PlottingUtil.radian(i,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,s),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,4*p,4*p,s+270),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,s+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,c,P])}this.finish()}}}])&&Zr(e.prototype,o),l&&Zr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ti(t){"@babel/helpers - typeof";return(ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ei(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o=20*this.getSubSymbolScaleValue(),l=.1*this.getSubSymbolScaleValue(),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);o>.05*n?l=.01*(o=.05*n):o<.005*n&&(o=.005*n);for(var r=SuperMapAlgoPlot.PlottingUtil.makeDottedLine(e,o),i=0;i0){var a=r[i-1][r[i-1].length-1],s=r[i][0],p=SuperMapAlgoPlot.PlottingUtil.midPoint(a,s);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[p,new SuperMapAlgoPlot.Point(p.x+l,p.y)],{lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fillColorLimit:!1,fill:!0})}this.finish()}}}])&&ei(e.prototype,o),l&&ei(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();SuperMapAlgoPlot.AlgoSymbol329=ri;SuperMapAlgoPlot.BasicAlgoSymbolFactory=SuperMapAlgoPlot.BasicAlgoSymbolFactory||{};SuperMapAlgoPlot.BasicAlgoSymbolFactory.getAlgoSymbol=function(t,e,o){if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOL:return new SuperMapAlgoPlot.GeoTooltipBox(o);case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOLM:return new SuperMapAlgoPlot.GeoTooltipBoxM(o);case SuperMapAlgoPlot.SymbolType.PATHTEXT:return new SuperMapAlgoPlot.PathText(o);case SuperMapAlgoPlot.SymbolType.ARROWLINE:return new SuperMapAlgoPlot.ArrowLine(o);case SuperMapAlgoPlot.SymbolType.CURVEEIGHT:return new SuperMapAlgoPlot.CurveEight(o);case SuperMapAlgoPlot.SymbolType.RUNWAY:return new SuperMapAlgoPlot.Runway(o);case SuperMapAlgoPlot.SymbolType.CONCENTRICCIRCLE:return new SuperMapAlgoPlot.ConcentricCircle(o);case SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE:return new SuperMapAlgoPlot.CombinationalCircle(o);case SuperMapAlgoPlot.SymbolType.FREECURVE:return new SuperMapAlgoPlot.FreeCurve(o);case SuperMapAlgoPlot.SymbolType.REGULARPOLYGON:return new SuperMapAlgoPlot.RegularPolygon(o);case SuperMapAlgoPlot.SymbolType.BRACESYMBOL:return new SuperMapAlgoPlot.Brace(o);case SuperMapAlgoPlot.SymbolType.TRAPEZOIDSYMBOL:return new SuperMapAlgoPlot.Trapezoid(o);case SuperMapAlgoPlot.SymbolType.SYMBOLTEXTBOX:return new SuperMapAlgoPlot.SymbolTextBox(o);case SuperMapAlgoPlot.SymbolType.NODECHAIN:return new SuperMapAlgoPlot.NodeChain(o);case SuperMapAlgoPlot.SymbolType.LINERELATION:return new SuperMapAlgoPlot.LineRelation(o);case SuperMapAlgoPlot.SymbolType.LINEMARKING:return new SuperMapAlgoPlot.LineMarking(o);case SuperMapAlgoPlot.SymbolType.POLYGONREGION:return new SuperMapAlgoPlot.PolygonRegion(o);case SuperMapAlgoPlot.SymbolType.WIRE:return new SuperMapAlgoPlot.Wire(o);case SuperMapAlgoPlot.SymbolType.LINEARARROW:return new SuperMapAlgoPlot.LinearArrow(o);case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:return new SuperMapAlgoPlot.Polybezier(o);case SuperMapAlgoPlot.SymbolType.NEWPIESYMBOL:return new SuperMapAlgoPlot.NewPie(o);case SuperMapAlgoPlot.SymbolType.NEWARCSYMBOL:return new SuperMapAlgoPlot.NewArc(o);case SuperMapAlgoPlot.SymbolType.NEWCHORDSYMBOL:return new SuperMapAlgoPlot.NewChord(o);default:return new SuperMapAlgoPlot.AlgoSymbol(o)}else if(22===t)switch(e){case 1001:return new SuperMapAlgoPlot.AlgoSymbol1001(o);case 1002:return new SuperMapAlgoPlot.AlgoSymbol1002(o);case 1003:return new SuperMapAlgoPlot.AlgoSymbol1003(o);case 1004:return new SuperMapAlgoPlot.AlgoSymbol1004(o);case 1005:return new SuperMapAlgoPlot.AlgoSymbol1005(o);case 1006:return new SuperMapAlgoPlot.AlgoSymbol1006(o);case 1007:return new SuperMapAlgoPlot.AlgoSymbol1007(o);case 1008:return new SuperMapAlgoPlot.AlgoSymbol1008(o);case 1009:return new SuperMapAlgoPlot.AlgoSymbol1009(o);case 1010:return new SuperMapAlgoPlot.AlgoSymbol1010(o);case 1011:return new SuperMapAlgoPlot.AlgoSymbol1011(o);case 1012:return new SuperMapAlgoPlot.AlgoSymbol1012(o);case 1013:return new SuperMapAlgoPlot.AlgoSymbol1013(o);case 1014:return new SuperMapAlgoPlot.AlgoSymbol1014(o);case 1015:return new SuperMapAlgoPlot.AlgoSymbol1015(o);case 1016:return new SuperMapAlgoPlot.AlgoSymbol1016(o);case 1017:return new SuperMapAlgoPlot.AlgoSymbol1017(o);case 1018:return new SuperMapAlgoPlot.AlgoSymbol1018(o);case 1019:return new SuperMapAlgoPlot.AlgoSymbol1019(o);case 1020:return new SuperMapAlgoPlot.AlgoSymbol1020(o);case 1021:return new SuperMapAlgoPlot.AlgoSymbol1021(o);case 1022:return new SuperMapAlgoPlot.AlgoSymbol1022(o);default:return null}else{if(421!==t)return null;switch(e){case 311:return new SuperMapAlgoPlot.AlgoSymbol1004(o);case 315:return new SuperMapAlgoPlot.AlgoSymbol315(o);case 317:return new SuperMapAlgoPlot.AlgoSymbol1006(o);case 318:return new SuperMapAlgoPlot.AlgoSymbol1002(o);case 319:return new SuperMapAlgoPlot.AlgoSymbol15200(o);case 320:return new SuperMapAlgoPlot.AlgoSymbol320(o);case 321:return new SuperMapAlgoPlot.AlgoSymbol321(o);case 322:return new SuperMapAlgoPlot.AlgoSymbol322(o);case 323:return new SuperMapAlgoPlot.AlgoSymbol25701(o);case 324:return new SuperMapAlgoPlot.AlgoSymbol3010106(o);case 325:return new SuperMapAlgoPlot.AlgoSymbol15200(o);case 326:return new SuperMapAlgoPlot.AlgoSymbol326(o);case 327:return new SuperMapAlgoPlot.AlgoSymbol327(o);case 328:return new SuperMapAlgoPlot.AlgoSymbol328(o);case 329:return new SuperMapAlgoPlot.AlgoSymbol329(o);case 330:return new SuperMapAlgoPlot.AlgoSymbol330(o);case 331:return new SuperMapAlgoPlot.AlgoSymbol29101(o);default:return null}}},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:case SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:case SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}else if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:case 1017:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}},SuperMapAlgoPlot.BasicAlgoSymbolFactory.isAccessServer=function(t,e){if(0===t||22===t)return!1;if(421!==t)return!0;switch(e){case 311:case 317:case 318:case 315:case 319:case 320:case 321:case 322:case 323:case 324:case 325:case 326:case 327:case 328:case 329:case 330:case 331:return!1;default:return!0}},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getDefaultSubSymbols=function(){return[]},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getMinEditPts=function(t,e){if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.TEXTSYMBOL:case SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE:return 1;case SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL:case SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL:case SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:case SuperMapAlgoPlot.SymbolType.KIDNEY:case SuperMapAlgoPlot.SymbolType.ARROWLINE:case SuperMapAlgoPlot.SymbolType.BRACESYMBOL:case SuperMapAlgoPlot.SymbolType.CURVEEIGHT:case SuperMapAlgoPlot.SymbolType.FREECURVE:case SuperMapAlgoPlot.SymbolType.LINEMARKING:case SuperMapAlgoPlot.SymbolType.LINERELATION:case SuperMapAlgoPlot.SymbolType.NODECHAIN:case SuperMapAlgoPlot.SymbolType.PATHTEXT:case SuperMapAlgoPlot.SymbolType.REGULARPOLYGON:case SuperMapAlgoPlot.SymbolType.RUNWAY:case SuperMapAlgoPlot.SymbolType.SYMBOLTEXTBOX:case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOLM:case SuperMapAlgoPlot.SymbolType.CONCENTRICCIRCLE:case SuperMapAlgoPlot.SymbolType.WIRE:case SuperMapAlgoPlot.SymbolType.LINEARARROW:return 2;case SuperMapAlgoPlot.SymbolType.ARCSYMBOL:case SuperMapAlgoPlot.SymbolType.CHORDSYMBOL:case SuperMapAlgoPlot.SymbolType.PIESYMBOL:case SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL:case SuperMapAlgoPlot.SymbolType.PARALLELOGRAM:case SuperMapAlgoPlot.SymbolType.PARALLELLINE:case SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMapAlgoPlot.SymbolType.POLYGONREGION:case SuperMapAlgoPlot.SymbolType.TRAPEZOIDSYMBOL:case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOL:case SuperMapAlgoPlot.SymbolType.NEWARCSYMBOL:case SuperMapAlgoPlot.SymbolType.NEWPIESYMBOL:case SuperMapAlgoPlot.SymbolType.NEWCHORDSYMBOL:return 3}else if(22===t)switch(e){case 1001:case 1003:case 1005:case 1007:case 1008:case 1009:case 1011:case 1012:case 1013:case 1014:case 1015:case 1016:case 1017:case 1019:case 1020:case 1022:return 2;case 1002:case 1004:case 1006:case 1010:case 1018:case 1021:return 3}else if(421===t)switch(e){case 319:case 320:case 321:case 324:case 325:case 326:case 327:case 328:case 329:case 330:case 331:return 2;case 311:case 315:case 317:case 318:case 322:case 323:return 3}},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getMaxEditPts=function(t,e){if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.TEXTSYMBOL:return 1;case SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL:case SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL:case SuperMapAlgoPlot.SymbolType.BRACESYMBOL:case SuperMapAlgoPlot.SymbolType.LINEMARKING:case SuperMapAlgoPlot.SymbolType.LINERELATION:case SuperMapAlgoPlot.SymbolType.RUNWAY:case SuperMapAlgoPlot.SymbolType.SYMBOLTEXTBOX:case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOLM:case SuperMapAlgoPlot.SymbolType.LINEARARROW:return 2;case SuperMapAlgoPlot.SymbolType.ARCSYMBOL:case SuperMapAlgoPlot.SymbolType.CHORDSYMBOL:case SuperMapAlgoPlot.SymbolType.PIESYMBOL:case SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL:case SuperMapAlgoPlot.SymbolType.PARALLELOGRAM:case SuperMapAlgoPlot.SymbolType.KIDNEY:case SuperMapAlgoPlot.SymbolType.CURVEEIGHT:case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOL:case SuperMapAlgoPlot.SymbolType.TRAPEZOIDSYMBOL:case SuperMapAlgoPlot.SymbolType.NEWARCSYMBOL:case SuperMapAlgoPlot.SymbolType.NEWPIESYMBOL:case SuperMapAlgoPlot.SymbolType.NEWCHORDSYMBOL:return 3;case SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:case SuperMapAlgoPlot.SymbolType.PARALLELLINE:case SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMapAlgoPlot.SymbolType.ARROWLINE:case SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE:case SuperMapAlgoPlot.SymbolType.FREECURVE:case SuperMapAlgoPlot.SymbolType.NODECHAIN:case SuperMapAlgoPlot.SymbolType.PATHTEXT:case SuperMapAlgoPlot.SymbolType.POLYGONREGION:case SuperMapAlgoPlot.SymbolType.REGULARPOLYGON:case SuperMapAlgoPlot.SymbolType.WIRE:case SuperMapAlgoPlot.SymbolType.CONCENTRICCIRCLE:return 9999}else if(22===t)switch(e){case 1003:case 1019:case 1020:case 1022:return 2;case 1006:case 1021:return 4;case 1001:case 1002:case 1004:case 1005:case 1007:case 1008:case 1009:case 1010:case 1011:case 1012:case 1013:case 1014:case 1015:case 1016:case 1017:case 1018:return 99999}else if(421===t)switch(e){case 320:return 2;case 329:case 330:case 331:return 3;case 317:return 4;case 323:return 1e3;case 311:case 315:case 318:case 319:case 321:case 322:case 324:case 325:case 326:case 327:case 328:return 99999}},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getDefaultStyle=function(t,e){var o={};if(421===t)switch(e){case 320:case 321:o.color=o.strokeColor="#000000";break;case 322:o.color=o.strokeColor="#bc744d"}return o},SuperMapAlgoPlot.BasicAlgoSymbolFactory.zoomInCalSymbol=function(){if(22!==libID)return!1;switch(code){case 1012:case 1013:case 1014:case 1015:return!0;default:return!1}},SuperMapAlgoPlot.BasicAlgoSymbolFactory.zoomCalSymbol=function(){return!1},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getSymbolName=function(t,e){var o="";if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.TEXTSYMBOL:o="文本";break;case SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL:o="圆";break;case SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL:o="矩形";break;case SuperMapAlgoPlot.SymbolType.ARCSYMBOL:o="弧线";break;case SuperMapAlgoPlot.SymbolType.CHORDSYMBOL:o="弓形";break;case SuperMapAlgoPlot.SymbolType.PIESYMBOL:o="扇形";break;case SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL:o="椭圆";break;case SuperMapAlgoPlot.SymbolType.PARALLELOGRAM:o="平行四边形";break;case SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL:o="多边形";break;case SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:o="折线";break;case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:o="贝赛尔曲线";break;case SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL:o="闭合贝塞尔曲线";break;case SuperMapAlgoPlot.SymbolType.PARALLELLINE:o="平行线";break;case SuperMapAlgoPlot.SymbolType.KIDNEY:o="集结地";break;case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOL:o="注记指示框";break;case SuperMapAlgoPlot.SymbolType.ARROWLINE:o="箭头线";break;case SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE:o="组合圆";break;case SuperMapAlgoPlot.SymbolType.CONCENTRICCIRCLE:o="同心圆";break;case SuperMapAlgoPlot.SymbolType.CURVEEIGHT:o="八字形";break;case SuperMapAlgoPlot.SymbolType.FREECURVE:o="自由线";break;case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOLM:o="多角标注框";break;case SuperMapAlgoPlot.SymbolType.LINEMARKING:o="线型标注";break;case SuperMapAlgoPlot.SymbolType.LINERELATION:o="对象间连线";break;case SuperMapAlgoPlot.SymbolType.NODECHAIN:o="节点链";break;case SuperMapAlgoPlot.SymbolType.PATHTEXT:o="沿线注记";break;case SuperMapAlgoPlot.SymbolType.POLYGONREGION:o="多边形区域管理";break;case SuperMapAlgoPlot.SymbolType.RUNWAY:o="跑道线";break;case SuperMapAlgoPlot.SymbolType.SYMBOLTEXTBOX:o="标注框";break;case SuperMapAlgoPlot.SymbolType.REGULARPOLYGON:o="正多边形";break;case SuperMapAlgoPlot.SymbolType.BRACESYMBOL:o="大括号";break;case SuperMapAlgoPlot.SymbolType.TRAPEZOIDSYMBOL:o="梯形";break;case SuperMapAlgoPlot.SymbolType.WIRE:o="铁丝网";break;case SuperMapAlgoPlot.SymbolType.LINEARARROW:o="直线箭头";break;case SuperMapAlgoPlot.SymbolType.NEWPIESYMBOL:o="扇形";break;case SuperMapAlgoPlot.SymbolType.NEWARCSYMBOL:o="弧线";break;case SuperMapAlgoPlot.SymbolType.NEWCHORDSYMBOL:o="弓形"}return o};SuperMapAlgoPlot.AlgoSymbolFactory=SuperMapAlgoPlot.AlgoSymbolFactory||{};SuperMapAlgoPlot.AlgoSymbolFactory.getAlgoSymbol=function(t){var e=t.libID,o=t.code;return 0!==e&&22!==e&&421!==e||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===e&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.getAlgoSymbol(e,o,t):123===e&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.getAlgoSymbol(e,o,t):999===e&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.getAlgoSymbol(e,o,t):null:SuperMapAlgoPlot.BasicAlgoSymbolFactory.getAlgoSymbol(e,o,t)},SuperMapAlgoPlot.AlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:case SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:case SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}if(100===t)switch(e){case 15200:case 15201:case 16203:case 17703:case 17704:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21900:case 22e3:case 22103:case 23800:case 24700:case 25201:case 25400:case 25601:case 25801:case 25901:case 26500:case 26501:case 26502:case 26503:case 26600:case 28900:case 29e3:case 29003:case 29903:case 3e4:case 30001:case 30002:case 30100:case 30102:case 30200:case 30201:case 30800:case 31803:case 33400:case 34900:case 34901:case 34902:case 35e3:case 36400:case 44200:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 16500:case 17400:case 17401:case 17500:case 17501:case 23400:case 23500:case 23600:case 23700:case 27300:case 28200:case 28300:case 28400:case 37600:case 37601:case 37700:case 39e3:case 40100:case 40101:case 42400:case 2350001:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022100:case 4022101:case 4022102:case 39101:case 44300:case 22200:case 27701:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;case 12500:case 12502:case 16100:case 20300:case 25501:case 25502:case 25503:case 32900:case 34700:case 35200:case 36401:case 41200:case 41201:case 41202:case 42700:case 44400:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}if(123===t)switch(e){case 21003:case 21207:case 2120701:case 2121503:case 21218:case 30008:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 30009:case 5021803:case 5022001:case 5022002:case 40301:case 4030101:case 4030102:case 4030103:case 4030104:case 40303:case 4030301:case 4030302:case 4030303:case 50101:case 5010101:case 50102:case 5010201:case 5010202:case 5010203:case 5010204:case 50103:case 5010301:case 5010302:case 5010303:case 5010304:case 50107:case 5010701:case 50210:case 50220:case 50221:case 50225:case 5030102:case 50303:case 5030301:case 50309:case 50320:case 5032001:case 5032002:case 5032003:case 50321:case 5032101:case 5032102:case 50322:case 5032201:case 50330:case 5033001:case 5034203:case 5035201:case 5035204:case 60205:case 90105:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;case 20915:case 2091502:case 2092101:case 2120702:case 21216:case 2121601:case 2121602:case 21605:case 30010:case 30011:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30012:case 30020:case 3002001:case 3002002:case 3002005:case 30025:case 3002501:case 30026:case 40104:case 40302:case 4030201:case 4030202:case 4030203:case 4030204:case 50227:case 5035205:case 60301:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 70202:case 7020201:case 7020202:case 90107:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}},SuperMapAlgoPlot.AlgoSymbolFactory.isAccessServer=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.isAccessServer(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.isAccessServer(t,e):999!==t||void 0===SuperMapAlgoPlot.YJAlgoSymbolFactory||SuperMapAlgoPlot.YJAlgoSymbolFactory.isAccessServer(t,e):SuperMapAlgoPlot.BasicAlgoSymbolFactory.isAccessServer(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.getDefaultSubSymbols=function(t,e){return 100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.getDefaultSubSymbols(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.getDefaultSubSymbols(t,e):999===t&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.getDefaultSubSymbols(t,e):[]},SuperMapAlgoPlot.AlgoSymbolFactory.getMinEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.getMinEditPts(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.getMinEditPts(t,e):999===t&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.getMinEditPts(t,e):0:SuperMapAlgoPlot.BasicAlgoSymbolFactory.getMinEditPts(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.getMaxEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.getMaxEditPts(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.getMaxEditPts(t,e):999===t&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.getMaxEditPts(t,e):0:SuperMapAlgoPlot.BasicAlgoSymbolFactory.getMaxEditPts(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.getDefaultStyle=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.getDefaultStyle(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.getDefaultStyle(t,e):999===t&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.getDefaultStyle(t,e):{}:SuperMapAlgoPlot.BasicAlgoSymbolFactory.getDefaultStyle(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.getSymbolName=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?"":SuperMapAlgoPlot.BasicAlgoSymbolFactory.getSymbolName(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.canPolylineConnect=function(t,e){if(100!==t)return!1;switch(e){case 16500:case 17400:case 17401:case 17500:case 17501:case 23400:case 23500:case 23600:case 23700:case 27300:case 28200:case 28300:case 28400:case 37600:case 37601:case 37700:case 39e3:case 40100:case 40101:case 42200:case 42400:case 2350001:case 2730101:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022100:case 4022101:case 4022102:return!0;default:return!1}},SuperMapAlgoPlot.AlgoSymbolFactory.zoomInCalSymbol=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.zoomInCalSymbol(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.zoomInCalSymbol(t,e):999===t&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.zoomInCalSymbol(t,e):0:SuperMapAlgoPlot.BasicAlgoSymbolFactory.zoomInCalSymbol(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.zoomCalSymbol=function(t,e){if((0===t||22===t||421===t)&&void 0!==SuperMapAlgoPlot.BasicAlgoSymbolFactory)return SuperMapAlgoPlot.BasicAlgoSymbolFactory.zoomCalSymbol(t,e);if(100===t)switch(e){case 28e3:case 28100:case 28200:case 28201:case 32300:return!0;default:return!1}else{if(123!==t||void 0===SuperMapAlgoPlot.WJAlgoSymbolFactory)return!1;switch(e){case 50312:case 50313:case 50314:case 50348:return!0;default:return!1}}},SuperMapAlgoPlot.AlgoSymbolFactory.calSurroundLineDir=function(t,e){if(22===t)switch(e){case 1018:case 1020:case 1021:return!1}return SuperMapAlgoPlot.AlgoSymbolFactory.getAlgoWayType(t,e)===SuperMapAlgoPlot.AddPoint_WayType.POLYLINE_CLOSE||SuperMapAlgoPlot.AlgoSymbolFactory.getAlgoWayType(t,e)===SuperMapAlgoPlot.AddPoint_WayType.CURVE_CLOSE},SuperMapAlgoPlot.AlgoSymbolFactory.getAlgoWayType=function(t,e){if(100===t)switch(e){case 24:case 40304:case 1e3:case 1007:case 1009:case 1016:case 12502:case 20300:case 26400:case 41100:case 50308:case 2092101:case 60301:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 1013:case 1015:case 520100:case 520200:case 21216:case 2121601:case 2121602:case 30020:case 3002001:case 3002002:case 3002005:case 30025:case 3002501:case 30026:case 3002601:case 30027:case 3002701:case 3002702:case 3002703:case 3002704:case 3002705:case 40104:case 36401:case 34700:case 32900:case 6020404:case 30013:case 3001302:case 30014:case 1001:case 1017:case 16e3:case 16001:case 25202:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;case 32:case 3020901:case 25501:case 25502:case 25503:case 25601:case 25701:case 2570201:case 2570301:case 2570401:case 2570501:case 25801:case 25901:case 44400:case 41200:case 41201:case 41202:case 30010:case 30011:case 30012:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 5035205:case 16100:case 35304:case 35200:case 50225:case 5020801:case 42700:case 25500:case 25600:case 25700:case 25800:case 25900:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE_CLOSE;case 40301:case 4030301:case 4030302:case 4030303:case 5010301:case 5010303:case 5010304:case 1005:case 1008:case 15200:case 15201:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21900:case 21600:case 26500:case 26501:case 26502:case 26503:case 26600:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 5034203:case 50355:case 5035501:case 60205:case 1012:case 1014:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 50102:case 4021101:case 510100:case 520300:case 530100:case 530200:case 16203:case 22e3:case 22103:case 25201:case 24700:case 25400:case 44200:case 31803:case 30800:case 30201:case 30200:case 5022002:case 3002004:case 5030301:case 50328:case 5033001:case 5022001:case 4021102:case 29003:case 30009:case 5035201:case 520500:case 23800:case 36400:case 35e3:case 33400:case 30100:case 30102:case 30002:case 30001:case 3e4:case 29903:case 5021803:case 50321:case 5032003:case 4020303:case 4020400:case 4020401:case 4020402:case 34902:case 34901:case 34900:case 12501:case 15800:case 15801:case 15802:case 15803:case 15804:case 15805:case 15806:case 15900:case 2091503:case 28900:case 16201:case 39600:case 38600:case 36700:case 26601:case 16200:case 17700:case 90213:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;case 50342:case 5034201:case 5034202:case 610100:case 29103:case 28300:case 28200:case 17400:case 17401:case 17402:case 17500:case 17501:case 22200:case 23400:case 23500:case 2350001:case 23600:case 23700:case 27300:case 2730101:case 27701:case 28400:case 44300:case 42400:case 42200:case 40100:case 40101:case 39101:case 39e3:case 37700:case 37601:case 37600:case 5020802:case 50223:case 5022301:case 50226:case 21221:case 2122101:case 50108:case 3032e3:case 4011100:case 4011101:case 4022101:case 4022102:case 4022100:case 16500:case 80203:case 8020301:return SuperMapAlgoPlot.AddPoint_WayType.CURVE_CLOSE;case 17703:case 17704:case 39801:case 39802:case 39800:case 40900:case 4e4:return SuperMapAlgoPlot.AddPoint_WayType.CURVE_WITHCONTROLPT;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}}(); /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(4); __webpack_require__(1); __webpack_require__(2); __webpack_require__(3); __webpack_require__(0); /***/ }) /******/ ]);