@mlightcad/graphic-interface 3.3.31 → 3.3.33

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.
@@ -1,8 +1,8 @@
1
- import { AcGePoint3d as t, AcGeBox2d as I } from "@mlightcad/geometry-engine";
2
- var O = /* @__PURE__ */ ((_) => (_.ClosedFilled = "", _.Dot = "_DOT", _.DotSmall = "_DOTSMALL", _.DotBlank = "_DOTBLANK", _.Origin = "_ORIGIN", _.Origin2 = "_ORIGIN2", _.Open = "_OPEN", _.Open90 = "_OPEN90", _.Open30 = "_OPEN30", _.Closed = "_CLOSED", _.Small = "_SMALL", _.None = "_NONE", _.Oblique = "_OBLIQUE", _.BoxFilled = "_BOXFILLED", _.Box = "_BOXBLANK", _.ClosedBlank = "_CLOSEDBLANK", _.DatumBlank = "_DATUMBLANK", _.DatumFilled = "_DATUMFILLED", _.Integral = "_INTEGRAL", _.ArchTick = "_ARCHTICK", _))(O || {}), e = /* @__PURE__ */ ((_) => (_[_.ByBlock = -2] = "ByBlock", _[_.ByDIPs = -4] = "ByDIPs", _[_.ByLayer = -1] = "ByLayer", _[_.ByLineWeightDefault = -3] = "ByLineWeightDefault", _[_.LineWeight000 = 0] = "LineWeight000", _[_.LineWeight005 = 5] = "LineWeight005", _[_.LineWeight009 = 9] = "LineWeight009", _[_.LineWeight013 = 13] = "LineWeight013", _[_.LineWeight015 = 15] = "LineWeight015", _[_.LineWeight018 = 18] = "LineWeight018", _[_.LineWeight020 = 20] = "LineWeight020", _[_.LineWeight025 = 25] = "LineWeight025", _[_.LineWeight030 = 30] = "LineWeight030", _[_.LineWeight035 = 35] = "LineWeight035", _[_.LineWeight040 = 40] = "LineWeight040", _[_.LineWeight050 = 50] = "LineWeight050", _[_.LineWeight053 = 53] = "LineWeight053", _[_.LineWeight060 = 60] = "LineWeight060", _[_.LineWeight070 = 70] = "LineWeight070", _[_.LineWeight080 = 80] = "LineWeight080", _[_.LineWeight090 = 90] = "LineWeight090", _[_.LineWeight100 = 100] = "LineWeight100", _[_.LineWeight106 = 106] = "LineWeight106", _[_.LineWeight120 = 120] = "LineWeight120", _[_.LineWeight140 = 140] = "LineWeight140", _[_.LineWeight158 = 158] = "LineWeight158", _[_.LineWeight200 = 200] = "LineWeight200", _[_.LineWeight211 = 211] = "LineWeight211", _))(e || {}), E = /* @__PURE__ */ ((_) => (_[_.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", _[_.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", _[_.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", _[_.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", _[_.BY_STYLE = 5] = "BY_STYLE", _))(E || {}), u = /* @__PURE__ */ ((_) => (_[_.TopLeft = 1] = "TopLeft", _[_.TopCenter = 2] = "TopCenter", _[_.TopRight = 3] = "TopRight", _[_.MiddleLeft = 4] = "MiddleLeft", _[_.MiddleCenter = 5] = "MiddleCenter", _[_.MiddleRight = 6] = "MiddleRight", _[_.BottomLeft = 7] = "BottomLeft", _[_.BottomCenter = 8] = "BottomCenter", _[_.BottomRight = 9] = "BottomRight", _))(u || {}), B = /* @__PURE__ */ ((_) => (_[_.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", _[_.WIREFRAME = 1] = "WIREFRAME", _[_.HIDDEN_LINE = 2] = "HIDDEN_LINE", _[_.FLAT_SHADED = 3] = "FLAT_SHADED", _[_.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", _[_.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", _[_.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME", _))(B || {}), H = /* @__PURE__ */ ((_) => (_[_.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", _[_.TOP = 1] = "TOP", _[_.BOTTOM = 2] = "BOTTOM", _[_.FRONT = 3] = "FRONT", _[_.BACK = 4] = "BACK", _[_.LEFT = 5] = "LEFT", _[_.RIGHT = 6] = "RIGHT", _))(H || {}), D = /* @__PURE__ */ ((_) => (_[_.ONE_DISTANT_LIGHT = 0] = "ONE_DISTANT_LIGHT", _[_.TWO_DISTANT_LIGHTS = 1] = "TWO_DISTANT_LIGHTS", _))(D || {});
3
- class h {
1
+ import { AcGePoint3d as I, AcGeBox2d as e } from "@mlightcad/geometry-engine";
2
+ var h = /* @__PURE__ */ ((_) => (_.ClosedFilled = "", _.Dot = "_DOT", _.DotSmall = "_DOTSMALL", _.DotBlank = "_DOTBLANK", _.Origin = "_ORIGIN", _.Origin2 = "_ORIGIN2", _.Open = "_OPEN", _.Open90 = "_OPEN90", _.Open30 = "_OPEN30", _.Closed = "_CLOSED", _.Small = "_SMALL", _.None = "_NONE", _.Oblique = "_OBLIQUE", _.BoxFilled = "_BOXFILLED", _.Box = "_BOXBLANK", _.ClosedBlank = "_CLOSEDBLANK", _.DatumBlank = "_DATUMBLANK", _.DatumFilled = "_DATUMFILLED", _.Integral = "_INTEGRAL", _.ArchTick = "_ARCHTICK", _))(h || {}), t = /* @__PURE__ */ ((_) => (_[_.ByBlock = -2] = "ByBlock", _[_.ByDIPs = -4] = "ByDIPs", _[_.ByLayer = -1] = "ByLayer", _[_.ByLineWeightDefault = -3] = "ByLineWeightDefault", _[_.LineWeight000 = 0] = "LineWeight000", _[_.LineWeight005 = 5] = "LineWeight005", _[_.LineWeight009 = 9] = "LineWeight009", _[_.LineWeight013 = 13] = "LineWeight013", _[_.LineWeight015 = 15] = "LineWeight015", _[_.LineWeight018 = 18] = "LineWeight018", _[_.LineWeight020 = 20] = "LineWeight020", _[_.LineWeight025 = 25] = "LineWeight025", _[_.LineWeight030 = 30] = "LineWeight030", _[_.LineWeight035 = 35] = "LineWeight035", _[_.LineWeight040 = 40] = "LineWeight040", _[_.LineWeight050 = 50] = "LineWeight050", _[_.LineWeight053 = 53] = "LineWeight053", _[_.LineWeight060 = 60] = "LineWeight060", _[_.LineWeight070 = 70] = "LineWeight070", _[_.LineWeight080 = 80] = "LineWeight080", _[_.LineWeight090 = 90] = "LineWeight090", _[_.LineWeight100 = 100] = "LineWeight100", _[_.LineWeight106 = 106] = "LineWeight106", _[_.LineWeight120 = 120] = "LineWeight120", _[_.LineWeight140 = 140] = "LineWeight140", _[_.LineWeight158 = 158] = "LineWeight158", _[_.LineWeight200 = 200] = "LineWeight200", _[_.LineWeight211 = 211] = "LineWeight211", _))(t || {}), B = /* @__PURE__ */ ((_) => (_[_.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", _[_.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", _[_.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", _[_.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", _[_.BY_STYLE = 5] = "BY_STYLE", _))(B || {}), E = /* @__PURE__ */ ((_) => (_[_.TopLeft = 1] = "TopLeft", _[_.TopCenter = 2] = "TopCenter", _[_.TopRight = 3] = "TopRight", _[_.MiddleLeft = 4] = "MiddleLeft", _[_.MiddleCenter = 5] = "MiddleCenter", _[_.MiddleRight = 6] = "MiddleRight", _[_.BottomLeft = 7] = "BottomLeft", _[_.BottomCenter = 8] = "BottomCenter", _[_.BottomRight = 9] = "BottomRight", _[_.BaselineLeft = 10] = "BaselineLeft", _[_.BaselineCenter = 11] = "BaselineCenter", _[_.BaselineRight = 12] = "BaselineRight", _))(E || {}), u = /* @__PURE__ */ ((_) => (_[_.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", _[_.WIREFRAME = 1] = "WIREFRAME", _[_.HIDDEN_LINE = 2] = "HIDDEN_LINE", _[_.FLAT_SHADED = 3] = "FLAT_SHADED", _[_.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", _[_.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", _[_.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME", _))(u || {}), H = /* @__PURE__ */ ((_) => (_[_.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", _[_.TOP = 1] = "TOP", _[_.BOTTOM = 2] = "BOTTOM", _[_.FRONT = 3] = "FRONT", _[_.BACK = 4] = "BACK", _[_.LEFT = 5] = "LEFT", _[_.RIGHT = 6] = "RIGHT", _))(H || {}), D = /* @__PURE__ */ ((_) => (_[_.ONE_DISTANT_LIGHT = 0] = "ONE_DISTANT_LIGHT", _[_.TWO_DISTANT_LIGHTS = 1] = "TWO_DISTANT_LIGHTS", _))(D || {});
3
+ class O {
4
4
  constructor() {
5
- this._number = -1, this._id = "", this._groupId = "", this._centerPoint = new t(), this._height = 0, this._width = 0, this._viewCenter = new t(), this._viewHeight = 0;
5
+ this._number = -1, this._id = "", this._groupId = "", this._centerPoint = new I(), this._height = 0, this._width = 0, this._viewCenter = new I(), this._viewHeight = 0;
6
6
  }
7
7
  get number() {
8
8
  return this._number;
@@ -41,7 +41,7 @@ class h {
41
41
  this._width = s;
42
42
  }
43
43
  get box() {
44
- const s = new I();
44
+ const s = new e();
45
45
  return s.setFromCenterAndSize(this.centerPoint, {
46
46
  x: this.width,
47
47
  y: this.height
@@ -63,14 +63,14 @@ class h {
63
63
  return this.viewHeight * (this.width / this.height);
64
64
  }
65
65
  get viewBox() {
66
- const s = new I();
66
+ const s = new e();
67
67
  return s.setFromCenterAndSize(this.viewCenter, {
68
68
  x: this.viewWidth,
69
69
  y: this.viewHeight
70
70
  }), s;
71
71
  }
72
72
  clone() {
73
- const s = new h();
73
+ const s = new O();
74
74
  return s.id = this.id, s.groupId = this.groupId, s.number = this.number, s.centerPoint.copy(this.centerPoint), s.height = this.height, s.width = this.width, s.viewCenter.copy(this.viewCenter), s.viewHeight = this.viewHeight, s;
75
75
  }
76
76
  copy(s) {
@@ -78,12 +78,12 @@ class h {
78
78
  }
79
79
  }
80
80
  export {
81
- O as AcGiArrowType,
81
+ h as AcGiArrowType,
82
82
  D as AcGiDefaultLightingType,
83
- e as AcGiLineWeight,
84
- u as AcGiMTextAttachmentPoint,
85
- E as AcGiMTextFlowDirection,
83
+ t as AcGiLineWeight,
84
+ E as AcGiMTextAttachmentPoint,
85
+ B as AcGiMTextFlowDirection,
86
86
  H as AcGiOrthographicType,
87
- B as AcGiRenderMode,
88
- h as AcGiViewport
87
+ u as AcGiRenderMode,
88
+ O as AcGiViewport
89
89
  };
@@ -1 +1 @@
1
- (function(e,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("@mlightcad/geometry-engine")):typeof define=="function"&&define.amd?define(["exports","@mlightcad/geometry-engine"],s):(e=typeof globalThis<"u"?globalThis:e||self,s(e["graphic-interface"]={},e.geometryEngine))})(this,function(e,s){"use strict";var I=(t=>(t.ClosedFilled="",t.Dot="_DOT",t.DotSmall="_DOTSMALL",t.DotBlank="_DOTBLANK",t.Origin="_ORIGIN",t.Origin2="_ORIGIN2",t.Open="_OPEN",t.Open90="_OPEN90",t.Open30="_OPEN30",t.Closed="_CLOSED",t.Small="_SMALL",t.None="_NONE",t.Oblique="_OBLIQUE",t.BoxFilled="_BOXFILLED",t.Box="_BOXBLANK",t.ClosedBlank="_CLOSEDBLANK",t.DatumBlank="_DATUMBLANK",t.DatumFilled="_DATUMFILLED",t.Integral="_INTEGRAL",t.ArchTick="_ARCHTICK",t))(I||{}),O=(t=>(t[t.ByBlock=-2]="ByBlock",t[t.ByDIPs=-4]="ByDIPs",t[t.ByLayer=-1]="ByLayer",t[t.ByLineWeightDefault=-3]="ByLineWeightDefault",t[t.LineWeight000=0]="LineWeight000",t[t.LineWeight005=5]="LineWeight005",t[t.LineWeight009=9]="LineWeight009",t[t.LineWeight013=13]="LineWeight013",t[t.LineWeight015=15]="LineWeight015",t[t.LineWeight018=18]="LineWeight018",t[t.LineWeight020=20]="LineWeight020",t[t.LineWeight025=25]="LineWeight025",t[t.LineWeight030=30]="LineWeight030",t[t.LineWeight035=35]="LineWeight035",t[t.LineWeight040=40]="LineWeight040",t[t.LineWeight050=50]="LineWeight050",t[t.LineWeight053=53]="LineWeight053",t[t.LineWeight060=60]="LineWeight060",t[t.LineWeight070=70]="LineWeight070",t[t.LineWeight080=80]="LineWeight080",t[t.LineWeight090=90]="LineWeight090",t[t.LineWeight100=100]="LineWeight100",t[t.LineWeight106=106]="LineWeight106",t[t.LineWeight120=120]="LineWeight120",t[t.LineWeight140=140]="LineWeight140",t[t.LineWeight158=158]="LineWeight158",t[t.LineWeight200=200]="LineWeight200",t[t.LineWeight211=211]="LineWeight211",t))(O||{}),u=(t=>(t[t.LEFT_TO_RIGHT=1]="LEFT_TO_RIGHT",t[t.RIGHT_TO_LEFT=2]="RIGHT_TO_LEFT",t[t.TOP_TO_BOTTOM=3]="TOP_TO_BOTTOM",t[t.BOTTOM_TO_TOP=4]="BOTTOM_TO_TOP",t[t.BY_STYLE=5]="BY_STYLE",t))(u||{}),n=(t=>(t[t.TopLeft=1]="TopLeft",t[t.TopCenter=2]="TopCenter",t[t.TopRight=3]="TopRight",t[t.MiddleLeft=4]="MiddleLeft",t[t.MiddleCenter=5]="MiddleCenter",t[t.MiddleRight=6]="MiddleRight",t[t.BottomLeft=7]="BottomLeft",t[t.BottomCenter=8]="BottomCenter",t[t.BottomRight=9]="BottomRight",t))(n||{}),d=(t=>(t[t.OPTIMIZED_2D=0]="OPTIMIZED_2D",t[t.WIREFRAME=1]="WIREFRAME",t[t.HIDDEN_LINE=2]="HIDDEN_LINE",t[t.FLAT_SHADED=3]="FLAT_SHADED",t[t.GOURAUD_SHADED=4]="GOURAUD_SHADED",t[t.FLAT_SHADED_WITH_WIREFRAME=5]="FLAT_SHADED_WITH_WIREFRAME",t[t.GOURAUD_SHADED_WITH_WIREFRAME=6]="GOURAUD_SHADED_WITH_WIREFRAME",t))(d||{}),E=(t=>(t[t.NON_ORTHOGRAPHIC=0]="NON_ORTHOGRAPHIC",t[t.TOP=1]="TOP",t[t.BOTTOM=2]="BOTTOM",t[t.FRONT=3]="FRONT",t[t.BACK=4]="BACK",t[t.LEFT=5]="LEFT",t[t.RIGHT=6]="RIGHT",t))(E||{}),B=(t=>(t[t.ONE_DISTANT_LIGHT=0]="ONE_DISTANT_LIGHT",t[t.TWO_DISTANT_LIGHTS=1]="TWO_DISTANT_LIGHTS",t))(B||{});class h{constructor(){this._number=-1,this._id="",this._groupId="",this._centerPoint=new s.AcGePoint3d,this._height=0,this._width=0,this._viewCenter=new s.AcGePoint3d,this._viewHeight=0}get number(){return this._number}set number(_){this._number=_}get id(){return this._id}set id(_){this._id=_}get groupId(){return this._groupId}set groupId(_){this._groupId=_}get centerPoint(){return this._centerPoint}set centerPoint(_){this._centerPoint.copy(_)}get height(){return this._height}set height(_){this._height=_}get width(){return this._width}set width(_){this._width=_}get box(){const _=new s.AcGeBox2d;return _.setFromCenterAndSize(this.centerPoint,{x:this.width,y:this.height}),_}get viewCenter(){return this._viewCenter}set viewCenter(_){this._viewCenter.copy(_)}get viewHeight(){return this._viewHeight}set viewHeight(_){this._viewHeight=_}get viewWidth(){return this.viewHeight*(this.width/this.height)}get viewBox(){const _=new s.AcGeBox2d;return _.setFromCenterAndSize(this.viewCenter,{x:this.viewWidth,y:this.viewHeight}),_}clone(){const _=new h;return _.id=this.id,_.groupId=this.groupId,_.number=this.number,_.centerPoint.copy(this.centerPoint),_.height=this.height,_.width=this.width,_.viewCenter.copy(this.viewCenter),_.viewHeight=this.viewHeight,_}copy(_){return this.id=_.id,this.groupId=_.groupId,this.number=_.number,this.centerPoint.copy(_.centerPoint),this.height=_.height,this.width=_.width,this.viewCenter.copy(_.viewCenter),this.viewHeight=_.viewHeight,this}}e.AcGiArrowType=I,e.AcGiDefaultLightingType=B,e.AcGiLineWeight=O,e.AcGiMTextAttachmentPoint=n,e.AcGiMTextFlowDirection=u,e.AcGiOrthographicType=E,e.AcGiRenderMode=d,e.AcGiViewport=h,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(s,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("@mlightcad/geometry-engine")):typeof define=="function"&&define.amd?define(["exports","@mlightcad/geometry-engine"],t):(s=typeof globalThis<"u"?globalThis:s||self,t(s["graphic-interface"]={},s.geometryEngine))})(this,function(s,t){"use strict";var I=(e=>(e.ClosedFilled="",e.Dot="_DOT",e.DotSmall="_DOTSMALL",e.DotBlank="_DOTBLANK",e.Origin="_ORIGIN",e.Origin2="_ORIGIN2",e.Open="_OPEN",e.Open90="_OPEN90",e.Open30="_OPEN30",e.Closed="_CLOSED",e.Small="_SMALL",e.None="_NONE",e.Oblique="_OBLIQUE",e.BoxFilled="_BOXFILLED",e.Box="_BOXBLANK",e.ClosedBlank="_CLOSEDBLANK",e.DatumBlank="_DATUMBLANK",e.DatumFilled="_DATUMFILLED",e.Integral="_INTEGRAL",e.ArchTick="_ARCHTICK",e))(I||{}),O=(e=>(e[e.ByBlock=-2]="ByBlock",e[e.ByDIPs=-4]="ByDIPs",e[e.ByLayer=-1]="ByLayer",e[e.ByLineWeightDefault=-3]="ByLineWeightDefault",e[e.LineWeight000=0]="LineWeight000",e[e.LineWeight005=5]="LineWeight005",e[e.LineWeight009=9]="LineWeight009",e[e.LineWeight013=13]="LineWeight013",e[e.LineWeight015=15]="LineWeight015",e[e.LineWeight018=18]="LineWeight018",e[e.LineWeight020=20]="LineWeight020",e[e.LineWeight025=25]="LineWeight025",e[e.LineWeight030=30]="LineWeight030",e[e.LineWeight035=35]="LineWeight035",e[e.LineWeight040=40]="LineWeight040",e[e.LineWeight050=50]="LineWeight050",e[e.LineWeight053=53]="LineWeight053",e[e.LineWeight060=60]="LineWeight060",e[e.LineWeight070=70]="LineWeight070",e[e.LineWeight080=80]="LineWeight080",e[e.LineWeight090=90]="LineWeight090",e[e.LineWeight100=100]="LineWeight100",e[e.LineWeight106=106]="LineWeight106",e[e.LineWeight120=120]="LineWeight120",e[e.LineWeight140=140]="LineWeight140",e[e.LineWeight158=158]="LineWeight158",e[e.LineWeight200=200]="LineWeight200",e[e.LineWeight211=211]="LineWeight211",e))(O||{}),u=(e=>(e[e.LEFT_TO_RIGHT=1]="LEFT_TO_RIGHT",e[e.RIGHT_TO_LEFT=2]="RIGHT_TO_LEFT",e[e.TOP_TO_BOTTOM=3]="TOP_TO_BOTTOM",e[e.BOTTOM_TO_TOP=4]="BOTTOM_TO_TOP",e[e.BY_STYLE=5]="BY_STYLE",e))(u||{}),B=(e=>(e[e.TopLeft=1]="TopLeft",e[e.TopCenter=2]="TopCenter",e[e.TopRight=3]="TopRight",e[e.MiddleLeft=4]="MiddleLeft",e[e.MiddleCenter=5]="MiddleCenter",e[e.MiddleRight=6]="MiddleRight",e[e.BottomLeft=7]="BottomLeft",e[e.BottomCenter=8]="BottomCenter",e[e.BottomRight=9]="BottomRight",e[e.BaselineLeft=10]="BaselineLeft",e[e.BaselineCenter=11]="BaselineCenter",e[e.BaselineRight=12]="BaselineRight",e))(B||{}),n=(e=>(e[e.OPTIMIZED_2D=0]="OPTIMIZED_2D",e[e.WIREFRAME=1]="WIREFRAME",e[e.HIDDEN_LINE=2]="HIDDEN_LINE",e[e.FLAT_SHADED=3]="FLAT_SHADED",e[e.GOURAUD_SHADED=4]="GOURAUD_SHADED",e[e.FLAT_SHADED_WITH_WIREFRAME=5]="FLAT_SHADED_WITH_WIREFRAME",e[e.GOURAUD_SHADED_WITH_WIREFRAME=6]="GOURAUD_SHADED_WITH_WIREFRAME",e))(n||{}),d=(e=>(e[e.NON_ORTHOGRAPHIC=0]="NON_ORTHOGRAPHIC",e[e.TOP=1]="TOP",e[e.BOTTOM=2]="BOTTOM",e[e.FRONT=3]="FRONT",e[e.BACK=4]="BACK",e[e.LEFT=5]="LEFT",e[e.RIGHT=6]="RIGHT",e))(d||{}),E=(e=>(e[e.ONE_DISTANT_LIGHT=0]="ONE_DISTANT_LIGHT",e[e.TWO_DISTANT_LIGHTS=1]="TWO_DISTANT_LIGHTS",e))(E||{});class h{constructor(){this._number=-1,this._id="",this._groupId="",this._centerPoint=new t.AcGePoint3d,this._height=0,this._width=0,this._viewCenter=new t.AcGePoint3d,this._viewHeight=0}get number(){return this._number}set number(_){this._number=_}get id(){return this._id}set id(_){this._id=_}get groupId(){return this._groupId}set groupId(_){this._groupId=_}get centerPoint(){return this._centerPoint}set centerPoint(_){this._centerPoint.copy(_)}get height(){return this._height}set height(_){this._height=_}get width(){return this._width}set width(_){this._width=_}get box(){const _=new t.AcGeBox2d;return _.setFromCenterAndSize(this.centerPoint,{x:this.width,y:this.height}),_}get viewCenter(){return this._viewCenter}set viewCenter(_){this._viewCenter.copy(_)}get viewHeight(){return this._viewHeight}set viewHeight(_){this._viewHeight=_}get viewWidth(){return this.viewHeight*(this.width/this.height)}get viewBox(){const _=new t.AcGeBox2d;return _.setFromCenterAndSize(this.viewCenter,{x:this.viewWidth,y:this.viewHeight}),_}clone(){const _=new h;return _.id=this.id,_.groupId=this.groupId,_.number=this.number,_.centerPoint.copy(this.centerPoint),_.height=this.height,_.width=this.width,_.viewCenter.copy(this.viewCenter),_.viewHeight=this.viewHeight,_}copy(_){return this.id=_.id,this.groupId=_.groupId,this.number=_.number,this.centerPoint.copy(_.centerPoint),this.height=_.height,this.width=_.width,this.viewCenter.copy(_.viewCenter),this.viewHeight=_.viewHeight,this}}s.AcGiArrowType=I,s.AcGiDefaultLightingType=E,s.AcGiLineWeight=O,s.AcGiMTextAttachmentPoint=B,s.AcGiMTextFlowDirection=u,s.AcGiOrthographicType=d,s.AcGiRenderMode=n,s.AcGiViewport=h,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
@@ -6,6 +6,17 @@ export declare enum AcGiMTextFlowDirection {
6
6
  BOTTOM_TO_TOP = 4,
7
7
  BY_STYLE = 5
8
8
  }
9
+ /**
10
+ * Anchor position used to align rendered MText/Text relative to its
11
+ * insertion point.
12
+ *
13
+ * Values 1-9 mirror the DXF MText attachment point (group code 71).
14
+ * Values 10-12 are extensions used by AutoCAD TEXT/ATTRIB entities whose
15
+ * vertical alignment is the typographic baseline (DXF group 73 = 0). The
16
+ * baseline sits slightly above the bbox bottom by the descender height;
17
+ * for SHX fonts the descender is negligible, so renderers may treat
18
+ * `Baseline*` and `Bottom*` identically as a first approximation.
19
+ */
9
20
  export declare enum AcGiMTextAttachmentPoint {
10
21
  TopLeft = 1,
11
22
  TopCenter = 2,
@@ -15,7 +26,13 @@ export declare enum AcGiMTextAttachmentPoint {
15
26
  MiddleRight = 6,
16
27
  BottomLeft = 7,
17
28
  BottomCenter = 8,
18
- BottomRight = 9
29
+ BottomRight = 9,
30
+ /** Baseline-left point (for DXF TEXT/ATTRIB with valign=BASELINE). */
31
+ BaselineLeft = 10,
32
+ /** Baseline-center point. */
33
+ BaselineCenter = 11,
34
+ /** Baseline-right point. */
35
+ BaselineRight = 12
19
36
  }
20
37
  export interface AcGiMTextData {
21
38
  text: string;
@@ -1 +1 @@
1
- {"version":3,"file":"AcGiTextStyle.d.ts","sourceRoot":"","sources":["../src/AcGiTextStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAE9E,oBAAY,sBAAsB;IAChC,aAAa,IAAI;IACjB,aAAa,IAAI;IACjB,aAAa,IAAI;IACjB,aAAa,IAAI;IACjB,QAAQ,IAAI;CACb;AAED,oBAAY,wBAAwB;IAClC,OAAO,IAAI;IACX,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,UAAU,IAAI;IACd,YAAY,IAAI;IAChB,WAAW,IAAI;IACf,UAAU,IAAI;IACd,YAAY,IAAI;IAChB,WAAW,IAAI;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,eAAe,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE,gBAAgB,CAAA;IAClC,eAAe,CAAC,EAAE,wBAAwB,CAAA;IAC1C,gBAAgB,CAAC,EAAE,sBAAsB,CAAA;IACzC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB"}
1
+ {"version":3,"file":"AcGiTextStyle.d.ts","sourceRoot":"","sources":["../src/AcGiTextStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAE9E,oBAAY,sBAAsB;IAChC,aAAa,IAAI;IACjB,aAAa,IAAI;IACjB,aAAa,IAAI;IACjB,aAAa,IAAI;IACjB,QAAQ,IAAI;CACb;AAED;;;;;;;;;;GAUG;AACH,oBAAY,wBAAwB;IAClC,OAAO,IAAI;IACX,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,UAAU,IAAI;IACd,YAAY,IAAI;IAChB,WAAW,IAAI;IACf,UAAU,IAAI;IACd,YAAY,IAAI;IAChB,WAAW,IAAI;IACf,sEAAsE;IACtE,YAAY,KAAK;IACjB,6BAA6B;IAC7B,cAAc,KAAK;IACnB,4BAA4B;IAC5B,aAAa,KAAK;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,eAAe,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE,gBAAgB,CAAA;IAClC,eAAe,CAAC,EAAE,wBAAwB,CAAA;IAC1C,gBAAgB,CAAC,EAAE,sBAAsB,CAAA;IACzC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB"}
@@ -6,6 +6,17 @@ export var AcGiMTextFlowDirection;
6
6
  AcGiMTextFlowDirection[AcGiMTextFlowDirection["BOTTOM_TO_TOP"] = 4] = "BOTTOM_TO_TOP";
7
7
  AcGiMTextFlowDirection[AcGiMTextFlowDirection["BY_STYLE"] = 5] = "BY_STYLE";
8
8
  })(AcGiMTextFlowDirection || (AcGiMTextFlowDirection = {}));
9
+ /**
10
+ * Anchor position used to align rendered MText/Text relative to its
11
+ * insertion point.
12
+ *
13
+ * Values 1-9 mirror the DXF MText attachment point (group code 71).
14
+ * Values 10-12 are extensions used by AutoCAD TEXT/ATTRIB entities whose
15
+ * vertical alignment is the typographic baseline (DXF group 73 = 0). The
16
+ * baseline sits slightly above the bbox bottom by the descender height;
17
+ * for SHX fonts the descender is negligible, so renderers may treat
18
+ * `Baseline*` and `Bottom*` identically as a first approximation.
19
+ */
9
20
  export var AcGiMTextAttachmentPoint;
10
21
  (function (AcGiMTextAttachmentPoint) {
11
22
  AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["TopLeft"] = 1] = "TopLeft";
@@ -17,5 +28,11 @@ export var AcGiMTextAttachmentPoint;
17
28
  AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["BottomLeft"] = 7] = "BottomLeft";
18
29
  AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["BottomCenter"] = 8] = "BottomCenter";
19
30
  AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["BottomRight"] = 9] = "BottomRight";
31
+ /** Baseline-left point (for DXF TEXT/ATTRIB with valign=BASELINE). */
32
+ AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["BaselineLeft"] = 10] = "BaselineLeft";
33
+ /** Baseline-center point. */
34
+ AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["BaselineCenter"] = 11] = "BaselineCenter";
35
+ /** Baseline-right point. */
36
+ AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["BaselineRight"] = 12] = "BaselineRight";
20
37
  })(AcGiMTextAttachmentPoint || (AcGiMTextAttachmentPoint = {}));
21
38
  //# sourceMappingURL=AcGiTextStyle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AcGiTextStyle.js","sourceRoot":"","sources":["../src/AcGiTextStyle.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,sBAMX;AAND,WAAY,sBAAsB;IAChC,qFAAiB,CAAA;IACjB,qFAAiB,CAAA;IACjB,qFAAiB,CAAA;IACjB,qFAAiB,CAAA;IACjB,2EAAY,CAAA;AACd,CAAC,EANW,sBAAsB,KAAtB,sBAAsB,QAMjC;AAED,MAAM,CAAN,IAAY,wBAUX;AAVD,WAAY,wBAAwB;IAClC,6EAAW,CAAA;IACX,iFAAa,CAAA;IACb,+EAAY,CAAA;IACZ,mFAAc,CAAA;IACd,uFAAgB,CAAA;IAChB,qFAAe,CAAA;IACf,mFAAc,CAAA;IACd,uFAAgB,CAAA;IAChB,qFAAe,CAAA;AACjB,CAAC,EAVW,wBAAwB,KAAxB,wBAAwB,QAUnC"}
1
+ {"version":3,"file":"AcGiTextStyle.js","sourceRoot":"","sources":["../src/AcGiTextStyle.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,sBAMX;AAND,WAAY,sBAAsB;IAChC,qFAAiB,CAAA;IACjB,qFAAiB,CAAA;IACjB,qFAAiB,CAAA;IACjB,qFAAiB,CAAA;IACjB,2EAAY,CAAA;AACd,CAAC,EANW,sBAAsB,KAAtB,sBAAsB,QAMjC;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAN,IAAY,wBAgBX;AAhBD,WAAY,wBAAwB;IAClC,6EAAW,CAAA;IACX,iFAAa,CAAA;IACb,+EAAY,CAAA;IACZ,mFAAc,CAAA;IACd,uFAAgB,CAAA;IAChB,qFAAe,CAAA;IACf,mFAAc,CAAA;IACd,uFAAgB,CAAA;IAChB,qFAAe,CAAA;IACf,sEAAsE;IACtE,wFAAiB,CAAA;IACjB,6BAA6B;IAC7B,4FAAmB,CAAA;IACnB,4BAA4B;IAC5B,0FAAkB,CAAA;AACpB,CAAC,EAhBW,wBAAwB,KAAxB,wBAAwB,QAgBnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlightcad/graphic-interface",
3
- "version": "3.3.31",
3
+ "version": "3.3.33",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -32,8 +32,8 @@
32
32
  "require": "./dist/graphic-interface.umd.cjs"
33
33
  },
34
34
  "peerDependencies": {
35
- "@mlightcad/common": "1.4.31",
36
- "@mlightcad/geometry-engine": "3.2.31"
35
+ "@mlightcad/common": "1.4.33",
36
+ "@mlightcad/geometry-engine": "3.2.33"
37
37
  },
38
38
  "scripts": {
39
39
  "clean": "rimraf dist lib tsconfig.tsbuildinfo",