mxdraw 0.1.30 → 0.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/lib/MxModule/MxDbCloudLine/MxDbCloudLine.js +1 -1
  2. package/dist/lib/MxModule/MxDbEntity/MxDbEntity.js +1 -1
  3. package/dist/lib/MxModule/MxDbRectBoxLeadComment/MxDbRectBoxLeadComment.js +1 -1
  4. package/dist/lib/MxModule/loadCoreCode/mxfun.es5.js +1 -1
  5. package/dist/lib/doc.js +1 -1
  6. package/dist/mxdraw.es5.js +1 -1
  7. package/dist/mxdraw.umd.js +1 -1
  8. package/dist/types/MxModule/McEdGetPointWorldDrawObject/McEdGetPointWorldDrawObjectClass.d.ts +1 -2
  9. package/dist/types/MxModule/McGeTool/McGeTool.d.ts +3 -2
  10. package/dist/types/MxModule/McGiWorldDraw/McGiWorldDraw.d.ts +1 -2
  11. package/dist/types/MxModule/Mx3PointArc/Mx3PointArc.d.ts +1 -0
  12. package/dist/types/MxModule/MxDb2LineAngularDimension/MxDb2LineAngularDimension.d.ts +2 -1
  13. package/dist/types/MxModule/MxDbAlignedDimension/MxDbAlignedDimension.d.ts +9 -1
  14. package/dist/types/MxModule/MxDbAnyLine/MxDbAnyLine.d.ts +4 -1
  15. package/dist/types/MxModule/MxDbArea/MxDbArea.d.ts +17 -0
  16. package/dist/types/MxModule/MxDbCloudLine/MxDbCloudLine.d.ts +22 -2
  17. package/dist/types/MxModule/MxDbCoord/MxDbCoord.d.ts +3 -1
  18. package/dist/types/MxModule/MxDbEllipse/MxDbEllipse.d.ts +3 -1
  19. package/dist/types/MxModule/MxDbEntity/MxDbEntity.d.ts +60 -103
  20. package/dist/types/MxModule/MxDbImage/MxDbImage.d.ts +15 -0
  21. package/dist/types/MxModule/MxDbLeadComment/MxDbLeadComment.d.ts +7 -0
  22. package/dist/types/MxModule/MxDbLine/MxDbLine.d.ts +4 -0
  23. package/dist/types/MxModule/MxDbPolyline/MxDbPolyline.d.ts +8 -1
  24. package/dist/types/MxModule/MxDbRect/MxDbRect.d.ts +6 -0
  25. package/dist/types/MxModule/MxDbRectBoxLeadComment/MxDbRectBoxLeadComment.d.ts +9 -0
  26. package/dist/types/MxModule/MxDbRegularPolygon/MxDbRegularPolygon.d.ts +4 -1
  27. package/dist/types/MxModule/MxDbSVG/MxDbSVG.d.ts +39 -3
  28. package/dist/types/MxModule/MxDbSVGText/MxDbSVGText.d.ts +10 -2
  29. package/dist/types/MxModule/MxDbText/MxDbText.d.ts +5 -1
  30. package/dist/types/MxModule/MxDrawObject/MxDrawObject.d.ts +1 -1
  31. package/dist/types/MxModule/MxFun/MxFun.d.ts +1 -2
  32. package/dist/types/MxModule/MxThreeJS/MxThreeJS.d.ts +7 -9
  33. package/dist/types/MxModule/MxType/MxType.d.ts +0 -1
  34. package/dist/types/doc.d.ts +36 -22
  35. package/dist/types/tools/three/index.d.ts +2 -3
  36. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";var __extends=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0});var three_1=require("three"),MxDbEntity_1=require("../MxDbEntity"),McGiWorldDrawType_1=require("../McGiWorldDrawType"),MxDbCloudLine=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.points=[],e.radius=16,e.drawGeometry=null,e}return __extends(e,t),e.prototype.getTypeName=function(){return"MxDbCloudLine"},e.prototype.create=function(){return new e},e.prototype.setRadius=function(t){this.radius=t,this.drawGeometry=null},e.prototype.getRadius=function(){return this.radius},e.prototype.clacNewArcDiameterPoint=function(t){if(0==this.points.length)return t;var e=this.points[this.points.length-1],r=2*this.radius,n=e.distanceTo(t);if(n<.5*r)return null;var o=r*(t.x-e.x)/n+e.x,i=r*(t.y-e.y)/n+e.y;return new three_1.Vector3(o,i,e.z)},e.prototype.createCloudArcCurvePoints=function(t,e,r){var n=new three_1.Vector3((t.x+e.x)/2,(t.y+e.y)/2,0);r||(r=n.distanceTo(t));var o,i,s,a,u=(o=n,i=t,s=e,a=2*Math.PI/360,{startAngle:180*Math.atan2(i.y-o.y,i.x-o.x)/Math.PI*a,endAngle:180*Math.atan2(s.y-o.y,s.x-o.x)/Math.PI*a}),h=u.startAngle,y=u.endAngle;return new three_1.ArcCurve(n.x,n.y,r,h,y,!0).getPoints(10)},e.prototype.addPoint=function(t,e){var r=this.clacNewArcDiameterPoint(t);if(r)if(this.points.push(r),e){if(this.points.length<2)return;var n=this.points[this.points.length-2],o=this.createCloudArcCurvePoints(n,r),i=this.drawGeometry;i||(i=new three_1.Geometry),o.forEach(function(t){null===i||void 0===i||i.vertices.push(new three_1.Vector3(t.x,t.y,0))}),this.drawGeometry=new three_1.Geometry,this.drawGeometry.vertices=i.vertices}else this.drawGeometry=null},e.prototype.addLine=function(t,e){this.addPoint(t);for(var r=2*this.radius,n=this.points[this.points.length-1],o=n.distanceTo(e),i=Math.round(o/r),s=0;s<i;s++){o=n.distanceTo(e);var a=r*(e.x-n.x)/o+n.x,u=r*(e.y-n.y)/o+n.y,h=new three_1.Vector3(a,u,e.z);this.addPoint(h),n=h}},e.prototype.reCalculateDrawGeometry=function(){var t=this;if(this.drawGeometry=new three_1.Geometry,!(this.points.length<2))for(var e=this.points[0],r=this.points.length,n=1;n<r;n++){var o=this.points[n];this.createCloudArcCurvePoints(e,o).forEach(function(e){var r;null===(r=t.drawGeometry)||void 0===r||r.vertices.push(new three_1.Vector3(e.x,e.y,0))}),e=o}},e.prototype.worldDraw=function(t){var e;if(t.getType()===McGiWorldDrawType_1.default.kSelectDraw){if(!this.drawGeometry)return;this.drawGeometry.computeBoundingBox();var r=new three_1.Vector3;this.drawGeometry.boundingBox.getSize(r);var n=new three_1.Vector3;this.drawGeometry.boundingBox.getCenter(n);var o=r.x/2,i=r.y/2,s={x:n.x-o,y:n.y-i},a={x:n.x+o,y:n.y-i},u={x:n.x+o,y:n.y+i},h={x:n.x-o,y:n.y+i};t.drawLine(s.x,s.y,a.x,a.y),t.drawLine(a.x,a.y,u.x,u.y),t.drawLine(u.x,u.y,h.x,h.y),t.drawLine(h.x,h.y,s.x,s.y)}else{if(this.drawGeometry||this.reCalculateDrawGeometry(),0==(null===(e=this.drawGeometry)||void 0===e?void 0:e.vertices.length))return;var y=t.getColor(),c=new three_1.LineBasicMaterial({color:y,transparent:!0,depthTest:!1}),p=new three_1.Line(this.drawGeometry,c);t.drawEntity(p)}},e.prototype.getCenter=function(){var t=new three_1.Geometry;t.vertices=this.points;var e=new three_1.Vector3;return t.computeBoundingBox(),t.boundingBox.getCenter(e),e},e.prototype.getGripPoints=function(){return[this.getCenter()]},e.prototype.moveGripPointsAt=function(t,e){return this.points.forEach(function(t){t.add(e)}),this.drawGeometry=null,!0},e.prototype.dwgIn=function(t){var e=this;this.onDwgIn(t);var r=t.points;return this.points=[],r.forEach(function(t){e.points.push(new three_1.Vector3(t.x,t.y,t.z))}),this.drawGeometry=null,this.radius=t.radius,!0},e.prototype.dwgOut=function(t){return this.onDwgOut(t),t.points=this.points,t.radius=this.radius,t},e}(MxDbEntity_1.default);exports.default=MxDbCloudLine;
1
+ "use strict";var __extends=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0});var three_1=require("three"),MxDbEntity_1=require("../MxDbEntity"),McGiWorldDrawType_1=require("../McGiWorldDrawType"),MxDbCloudLine=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.points=[],e.radius=16,e.drawGeometry=null,e}return __extends(e,t),e.prototype.getTypeName=function(){return"MxDbCloudLine"},e.prototype.create=function(){return new e},e.prototype.setRadius=function(t){this.radius=t,this.drawGeometry=null},e.prototype.getRadius=function(){return this.radius},e.prototype.clacNewArcDiameterPoint=function(t){if(0==this.points.length)return t;var e=this.points[this.points.length-1],r=2*this.radius,n=e.distanceTo(t);if(n<r)return null;var o=r*(t.x-e.x)/n+e.x,i=r*(t.y-e.y)/n+e.y;return new three_1.Vector3(o,i,e.z)},e.prototype.createCloudArcCurvePoints=function(t,e,r){var n=new three_1.Vector3((t.x+e.x)/2,(t.y+e.y)/2,0);r||(r=n.distanceTo(t));var o,i,s,a,u=(o=n,i=t,s=e,a=2*Math.PI/360,{startAngle:180*Math.atan2(i.y-o.y,i.x-o.x)/Math.PI*a,endAngle:180*Math.atan2(s.y-o.y,s.x-o.x)/Math.PI*a}),h=u.startAngle,y=u.endAngle;return new three_1.ArcCurve(n.x,n.y,r,h,y,!0).getPoints(10)},e.prototype.addPoint=function(t,e){var r=this.clacNewArcDiameterPoint(t);if(r)if(this.points.push(r),e){if(this.points.length<2)return;var n=this.points[this.points.length-2],o=this.createCloudArcCurvePoints(n,r),i=this.drawGeometry;i||(i=new three_1.Geometry),o.forEach(function(t){null===i||void 0===i||i.vertices.push(new three_1.Vector3(t.x,t.y,0))}),this.drawGeometry=new three_1.Geometry,this.drawGeometry.vertices=i.vertices}else this.drawGeometry=null},e.prototype.addLine=function(t,e){this.addPoint(t);for(var r=2*this.radius,n=this.points[this.points.length-1],o=n.distanceTo(e),i=Math.round(o/r),s=0;s<i;s++){o=n.distanceTo(e);var a=r*(e.x-n.x)/o+n.x,u=r*(e.y-n.y)/o+n.y,h=new three_1.Vector3(a,u,e.z);this.addPoint(h),n=h}return this.points[this.points.length-1]},e.prototype.reCalculateDrawGeometry=function(){var t=this;if(this.drawGeometry=new three_1.Geometry,!(this.points.length<2))for(var e=this.points[0],r=this.points.length,n=1;n<r;n++){var o=this.points[n];this.createCloudArcCurvePoints(e,o).forEach(function(e){var r;null===(r=t.drawGeometry)||void 0===r||r.vertices.push(new three_1.Vector3(e.x,e.y,0))}),e=o}},e.prototype.worldDraw=function(t){var e;if(t.getType()===McGiWorldDrawType_1.default.kSelectDraw){if(!this.drawGeometry)return;this.drawGeometry.computeBoundingBox();var r=new three_1.Vector3;this.drawGeometry.boundingBox.getSize(r);var n=new three_1.Vector3;this.drawGeometry.boundingBox.getCenter(n);var o=r.x/2,i=r.y/2,s={x:n.x-o,y:n.y-i},a={x:n.x+o,y:n.y-i},u={x:n.x+o,y:n.y+i},h={x:n.x-o,y:n.y+i};t.drawLine(s.x,s.y,a.x,a.y),t.drawLine(a.x,a.y,u.x,u.y),t.drawLine(u.x,u.y,h.x,h.y),t.drawLine(h.x,h.y,s.x,s.y)}else{if(this.drawGeometry||this.reCalculateDrawGeometry(),0==(null===(e=this.drawGeometry)||void 0===e?void 0:e.vertices.length))return;var y=t.getColor(),c=new three_1.LineBasicMaterial({color:y,transparent:!0,depthTest:!1}),p=new three_1.Line(this.drawGeometry,c);t.drawEntity(p)}},e.prototype.getCenter=function(){var t=new three_1.Geometry;t.vertices=this.points;var e=new three_1.Vector3;return t.computeBoundingBox(),t.boundingBox.getCenter(e),e},e.prototype.getGripPoints=function(){return[this.getCenter()]},e.prototype.moveGripPointsAt=function(t,e){return this.points.forEach(function(t){t.add(e)}),this.drawGeometry=null,!0},e.prototype.dwgIn=function(t){var e=this;this.onDwgIn(t);var r=t.points;return this.points=[],r.forEach(function(t){e.points.push(new three_1.Vector3(t.x,t.y,t.z))}),this.drawGeometry=null,this.radius=t.radius,!0},e.prototype.dwgOut=function(t){return this.onDwgOut(t),t.points=this.points,t.radius=this.radius,t},e}(MxDbEntity_1.default);exports.default=MxDbCloudLine;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var MxType_1=require("../MxType"),store_1=require("../store/store"),MxDbEntity=function(){function t(){this.color=16777215,this.renderOrder=30,this.opacity=1,this.visible=!0,this.userData={}}return t.prototype.transformBy=function(t){},t.prototype.getImp=function(){return this.MxDbEntityImp},t.prototype.setNeedUpdateDisplay=function(t){var e=this.getImp();return!!e&&(t?e.upDisplay():e.setDirtyDisplay(!0),!0)},t.prototype.getMxObject=function(){var t=this.getImp();return t?t.getMxObject():null},t.prototype.onViewChange=function(){return!1},t.prototype.objectId=function(){var t=this.getImp();return t?t.objectId():0},t.prototype.erase=function(){var t=this.getImp();return!!t&&t.erase()},t.prototype.setColor=function(t){this.color=t},t.prototype.getColor=function(){return this.color},t.prototype.clone=function(t){var e=this.create(),r={type:t||MxType_1.default.MxCloneType.kClone};return this.dwgOut(r),e.dwgIn(r),e},t.prototype.onDwgIn=function(t){this.color=t.color,this.renderOrder=t.renderOrder,this.opacity=t.opacity,this.visible=t.visible,t.userData?this.userData=JSON.parse(JSON.stringify(t.userData)):this.userData={}},t.prototype.onDwgOut=function(t){t.color=this.color,t.renderOrder=this.renderOrder,t.opacity=this.opacity,t.visible=this.visible,Object.keys(this.userData).length>0&&(t.userData=this.userData)},t.prototype.rxInit=function(){store_1.default.state.MxFun.initMxDbEntityType(this)},t.prototype.setRenderOrder=function(t){this.renderOrder=t},t.prototype.getRenderOrder=function(){return this.renderOrder},t}();exports.default=MxDbEntity;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var MxType_1=require("../MxType"),store_1=require("../store/store"),MxDbEntity=function(){function t(){this.color=16777215,this.renderOrder=30,this.opacity=1,this.visible=!0,this.userData={}}return t.prototype.dwgInHelp=function(t,e){var r=function(t,e){for(var n=0;n++;n<t.length)t[n]instanceof Array?r(t[n],e[n]):"object"==typeof t[n]?o(t[n],e[n]):e[n]=t[n]},o=function(t,o){for(var n in e)t[n]&&(t[n].isVector3||t[n].isVector2||t[n].isVector4?o[n]=t[n].clone():t[n]instanceof Array?r(t[n],o[n]):o[n]=t[n])};return o(t,this),!0},t.prototype.dwgOutHelp=function(t,e){for(var r in e)"function"!=typeof this[r]&&"MxDbEntityImp"!==r&&(t[r]=this[r]);return t},t.prototype.getTypeName=function(){return this.constructor.name},t.prototype.create=function(){return this.constructor()},t.prototype.transformBy=function(t){},t.prototype.getImp=function(){return this.MxDbEntityImp},t.prototype.setNeedUpdateDisplay=function(t){var e=this.getImp();return!!e&&(t?e.upDisplay():e.setDirtyDisplay(!0),!0)},t.prototype.getMxObject=function(){var t=this.getImp();return t?t.getMxObject():null},t.prototype.onViewChange=function(){return!1},t.prototype.objectId=function(){var t=this.getImp();return t?t.objectId():0},t.prototype.erase=function(){var t=this.getImp();return!!t&&t.erase()},t.prototype.setColor=function(t){this.color=t},t.prototype.getColor=function(){return this.color},t.prototype.clone=function(t){var e=this.create(),r={type:t||MxType_1.default.MxCloneType.kClone};return this.dwgOut(r),e.dwgIn(r),e},t.prototype.onDwgIn=function(t){this.color=t.color,this.renderOrder=t.renderOrder,this.opacity=t.opacity,this.visible=t.visible,t.userData?this.userData=JSON.parse(JSON.stringify(t.userData)):this.userData={}},t.prototype.onDwgOut=function(t){t.color=this.color,t.renderOrder=this.renderOrder,t.opacity=this.opacity,t.visible=this.visible,Object.keys(this.userData).length>0&&(t.userData=this.userData)},t.prototype.rxInit=function(){store_1.default.state.MxFun.initMxDbEntityType(this)},t.prototype.setRenderOrder=function(t){this.renderOrder=t},t.prototype.getRenderOrder=function(){return this.renderOrder},t}();exports.default=MxDbEntity;
@@ -1 +1 @@
1
- "use strict";var __extends=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0});var THREE=require("three"),MxDbLeadComment_1=require("../MxDbLeadComment"),MxDbCloudLine_1=require("../MxDbCloudLine"),MxDbEntity_1=require("../MxDbEntity"),MxDbRectBoxLeadComment=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.point1=new THREE.Vector3,e.point2=new THREE.Vector3,e.point3=new THREE.Vector3,e.text="",e.textHeight=20,e.radius=16,e}return __extends(e,t),e.prototype.getTypeName=function(){return"MxDbRectBoxLeadComment"},e.prototype.create=function(){return new e},e.prototype.worldDraw=function(t){var e=new MxDbCloudLine_1.default;e.setRadius(this.radius);var i=this.point1.clone(),n=this.point2.clone();if(i.x>n.x){var o=i.x;i.x=n.x,n.x=o}if(i.y>n.y){o=i.y;i.y=n.y,n.y=o}var r=new THREE.Vector3(i.x,n.y,i.z),s=new THREE.Vector3(n.x,i.y,i.z);if(e.addLine(i,r),e.addLine(r,n),e.addLine(n,s),e.addLine(s,i),e.worldDraw(t),this.text.length>0){var p=i,u=i.distanceTo(this.point3);u>r.distanceTo(this.point3)&&(p=r,u=r.distanceTo(this.point3)),u>n.distanceTo(this.point3)&&(p=n,u=n.distanceTo(this.point3)),u>s.distanceTo(this.point3)&&(p=s,u=s.distanceTo(this.point3));var a=new MxDbLeadComment_1.default;a.point1=p,a.point2=this.point3,a.text=this.text,a.textHeight=this.textHeight,a.worldDraw(t)}},e.prototype.getGripPoints=function(){var t=[];return t.push(this.point1),t.push(this.point2),t.push(this.point3),t},e.prototype.moveGripPointsAt=function(t,e){return 0==t?this.point1.add(e):1==t?this.point2.add(e):2==t&&this.point3.add(e),!0},e.prototype.dwgIn=function(t){return this.onDwgIn(t),this.point1.copy(t.point1),this.point2.copy(t.point2),this.point3.copy(t.point3),this.text=t.text.substr(0),this.textHeight=t.textHeight,this.radius=t.radius,!0},e.prototype.dwgOut=function(t){return this.onDwgOut(t),t.point1=this.point1,t.point2=this.point2,t.point3=this.point3,t.textHeight=this.textHeight,t.text=this.text,t.radius=this.radius,t},e}(MxDbEntity_1.default);exports.default=MxDbRectBoxLeadComment;
1
+ "use strict";var __extends=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0});var THREE=require("three"),MxDbLeadComment_1=require("../MxDbLeadComment"),MxDbCloudLine_1=require("../MxDbCloudLine"),MxDbEntity_1=require("../MxDbEntity"),MxDbRectBoxLeadComment=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.point1=new THREE.Vector3,e.point2=new THREE.Vector3,e.point3=new THREE.Vector3,e.text="",e.textHeight=20,e.radius=16,e}return __extends(e,t),e.prototype.getTypeName=function(){return"MxDbRectBoxLeadComment"},e.prototype.create=function(){return new e},e.prototype.worldDraw=function(t){var e=new MxDbCloudLine_1.default;e.setRadius(this.radius);var i=this.point1.clone(),n=this.point2.clone();if(i.x>n.x){var o=i.x;i.x=n.x,n.x=o}if(i.y>n.y){o=i.y;i.y=n.y,n.y=o}var r=new THREE.Vector3(i.x,n.y,i.z);r=e.addLine(i,r),n=new THREE.Vector3(n.x,r.y,n.z),n=e.addLine(r,n);var s=new THREE.Vector3(n.x,i.y,i.z);if(s=e.addLine(n,s),i=e.addLine(s,i),e.worldDraw(t),this.text.length>0){var p=i,u=i.distanceTo(this.point3);u>r.distanceTo(this.point3)&&(p=r,u=r.distanceTo(this.point3)),u>n.distanceTo(this.point3)&&(p=n,u=n.distanceTo(this.point3)),u>s.distanceTo(this.point3)&&(p=s,u=s.distanceTo(this.point3));var a=new MxDbLeadComment_1.default;a.point1=p,a.point2=this.point3,a.text=this.text,a.textHeight=this.textHeight,a.worldDraw(t)}},e.prototype.getGripPoints=function(){var t=[];return t.push(this.point1),t.push(this.point2),t.push(this.point3),t},e.prototype.moveGripPointsAt=function(t,e){return 0==t?this.point1.add(e):1==t?this.point2.add(e):2==t&&this.point3.add(e),!0},e.prototype.dwgIn=function(t){return this.onDwgIn(t),this.point1.copy(t.point1),this.point2.copy(t.point2),this.point3.copy(t.point3),this.text=t.text.substr(0),this.textHeight=t.textHeight,this.radius=t.radius,!0},e.prototype.dwgOut=function(t){return this.onDwgOut(t),t.point1=this.point1,t.point2=this.point2,t.point3=this.point3,t.textHeight=this.textHeight,t.text=this.text,t.radius=this.radius,t},e}(MxDbEntity_1.default);exports.default=MxDbRectBoxLeadComment;