@mlightcad/graphic-interface 3.1.0 → 3.1.2

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 s, AcGeBox2d as h } from "@mlightcad/geometry-engine";
2
- var e = /* @__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", _))(e || {}), O = /* @__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", _))(O || {}), 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", _))(E || {}), H = /* @__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", _))(H || {}), u = /* @__PURE__ */ ((_) => (_[_.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", _[_.TOP = 1] = "TOP", _[_.BOTTOM = 2] = "BOTTOM", _[_.FRONT = 3] = "FRONT", _[_.BACK = 4] = "BACK", _[_.LEFT = 5] = "LEFT", _[_.RIGHT = 6] = "RIGHT", _))(u || {}), L = /* @__PURE__ */ ((_) => (_[_.ONE_DISTANT_LIGHT = 0] = "ONE_DISTANT_LIGHT", _[_.TWO_DISTANT_LIGHTS = 1] = "TWO_DISTANT_LIGHTS", _))(L || {});
3
- class I {
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 {
4
4
  constructor() {
5
- this._number = -1, this._id = "", this._groupId = "", this._centerPoint = new s(), this._height = 0, this._width = 0, this._viewCenter = new s(), this._viewHeight = 0;
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;
6
6
  }
7
7
  /**
8
8
  * The viewport ID number. If the viewport is inactive, -1 is returned.
@@ -10,8 +10,8 @@ class I {
10
10
  get number() {
11
11
  return this._number;
12
12
  }
13
- set number(t) {
14
- this._number = t;
13
+ set number(s) {
14
+ this._number = s;
15
15
  }
16
16
  /**
17
17
  * The id of the viewport.
@@ -19,8 +19,8 @@ class I {
19
19
  get id() {
20
20
  return this._id;
21
21
  }
22
- set id(t) {
23
- this._id = t;
22
+ set id(s) {
23
+ this._id = s;
24
24
  }
25
25
  /**
26
26
  * The id of the group which this viewport belongs to.
@@ -28,8 +28,8 @@ class I {
28
28
  get groupId() {
29
29
  return this._groupId;
30
30
  }
31
- set groupId(t) {
32
- this._groupId = t;
31
+ set groupId(s) {
32
+ this._groupId = s;
33
33
  }
34
34
  /**
35
35
  * The center point of the viewport entity in WCS coordinates (within Paper Space).
@@ -37,8 +37,8 @@ class I {
37
37
  get centerPoint() {
38
38
  return this._centerPoint;
39
39
  }
40
- set centerPoint(t) {
41
- this._centerPoint.copy(t);
40
+ set centerPoint(s) {
41
+ this._centerPoint.copy(s);
42
42
  }
43
43
  /**
44
44
  * The height of the viewport entity's window in drawing units.
@@ -46,8 +46,8 @@ class I {
46
46
  get height() {
47
47
  return this._height;
48
48
  }
49
- set height(t) {
50
- this._height = t;
49
+ set height(s) {
50
+ this._height = s;
51
51
  }
52
52
  /**
53
53
  * The width of the viewport entity's window in drawing units. This is the width in Paper Space
@@ -56,18 +56,18 @@ class I {
56
56
  get width() {
57
57
  return this._width;
58
58
  }
59
- set width(t) {
60
- this._width = t;
59
+ set width(s) {
60
+ this._width = s;
61
61
  }
62
62
  /**
63
63
  * The bounding box (in world coordinate system coordinates) of the viewport.
64
64
  */
65
65
  get box() {
66
- const t = new h();
67
- return t.setFromCenterAndSize(this.centerPoint, {
66
+ const s = new I();
67
+ return s.setFromCenterAndSize(this.centerPoint, {
68
68
  x: this.width,
69
69
  y: this.height
70
- }), t;
70
+ }), s;
71
71
  }
72
72
  /**
73
73
  * The view center (in display coordinate system coordinates) of the view in the viewport.
@@ -75,8 +75,8 @@ class I {
75
75
  get viewCenter() {
76
76
  return this._viewCenter;
77
77
  }
78
- set viewCenter(t) {
79
- this._viewCenter.copy(t);
78
+ set viewCenter(s) {
79
+ this._viewCenter.copy(s);
80
80
  }
81
81
  /**
82
82
  * The height (in display coordinate system coordinates) of the Model Space view within the viewport.
@@ -85,8 +85,8 @@ class I {
85
85
  get viewHeight() {
86
86
  return this._viewHeight;
87
87
  }
88
- set viewHeight(t) {
89
- this._viewHeight = t;
88
+ set viewHeight(s) {
89
+ this._viewHeight = s;
90
90
  }
91
91
  /**
92
92
  * The width (in display coordinate system coordinates) of the Model Space view within the viewport.
@@ -99,35 +99,36 @@ class I {
99
99
  * The bounding box (in display coordinate system coordinates) of the Model Space view within the viewport.
100
100
  */
101
101
  get viewBox() {
102
- const t = new h();
103
- return t.setFromCenterAndSize(this.viewCenter, {
102
+ const s = new I();
103
+ return s.setFromCenterAndSize(this.viewCenter, {
104
104
  x: this.viewWidth,
105
105
  y: this.viewHeight
106
- }), t;
106
+ }), s;
107
107
  }
108
108
  /**
109
109
  * Clone this viewport
110
110
  * @returns Return the cloned instance of this viewport
111
111
  */
112
112
  clone() {
113
- const t = new I();
114
- return t.id = this.id, t.groupId = this.groupId, t.number = this.number, t.centerPoint.copy(this.centerPoint), t.height = this.height, t.width = this.width, t.viewCenter.copy(this.viewCenter), t.viewHeight = this.viewHeight, t;
113
+ const s = new h();
114
+ 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;
115
115
  }
116
116
  /**
117
117
  * Copy the property values of the passed viewport to this viewport.
118
118
  * @param viewport Input one viewport instance
119
119
  * @returns Return this viewport
120
120
  */
121
- copy(t) {
122
- return this.id = t.id, this.groupId = t.groupId, this.number = t.number, this.centerPoint.copy(t.centerPoint), this.height = t.height, this.width = t.width, this.viewCenter.copy(t.viewCenter), this.viewHeight = t.viewHeight, this;
121
+ copy(s) {
122
+ return this.id = s.id, this.groupId = s.groupId, this.number = s.number, this.centerPoint.copy(s.centerPoint), this.height = s.height, this.width = s.width, this.viewCenter.copy(s.viewCenter), this.viewHeight = s.viewHeight, this;
123
123
  }
124
124
  }
125
125
  export {
126
- e as AcGiArrowType,
127
- L as AcGiDefaultLightingType,
128
- E as AcGiMTextAttachmentPoint,
129
- O as AcGiMTextFlowDirection,
130
- u as AcGiOrthographicType,
131
- H as AcGiRenderMode,
132
- I as AcGiViewport
126
+ O as AcGiArrowType,
127
+ D as AcGiDefaultLightingType,
128
+ e as AcGiLineWeight,
129
+ u as AcGiMTextAttachmentPoint,
130
+ E as AcGiMTextFlowDirection,
131
+ H as AcGiOrthographicType,
132
+ B as AcGiRenderMode,
133
+ h as AcGiViewport
133
134
  };
@@ -1 +1 @@
1
- (function(_,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("@mlightcad/geometry-engine")):typeof define=="function"&&define.amd?define(["exports","@mlightcad/geometry-engine"],s):(_=typeof globalThis<"u"?globalThis:_||self,s(_["graphic-interface"]={},_.geometryEngine))})(this,function(_,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.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))(O||{}),i=(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))(i||{}),n=(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))(n||{}),u=(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))(u||{}),d=(t=>(t[t.ONE_DISTANT_LIGHT=0]="ONE_DISTANT_LIGHT",t[t.TWO_DISTANT_LIGHTS=1]="TWO_DISTANT_LIGHTS",t))(d||{});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(e){this._number=e}get id(){return this._id}set id(e){this._id=e}get groupId(){return this._groupId}set groupId(e){this._groupId=e}get centerPoint(){return this._centerPoint}set centerPoint(e){this._centerPoint.copy(e)}get height(){return this._height}set height(e){this._height=e}get width(){return this._width}set width(e){this._width=e}get box(){const e=new s.AcGeBox2d;return e.setFromCenterAndSize(this.centerPoint,{x:this.width,y:this.height}),e}get viewCenter(){return this._viewCenter}set viewCenter(e){this._viewCenter.copy(e)}get viewHeight(){return this._viewHeight}set viewHeight(e){this._viewHeight=e}get viewWidth(){return this.viewHeight*(this.width/this.height)}get viewBox(){const e=new s.AcGeBox2d;return e.setFromCenterAndSize(this.viewCenter,{x:this.viewWidth,y:this.viewHeight}),e}clone(){const e=new h;return e.id=this.id,e.groupId=this.groupId,e.number=this.number,e.centerPoint.copy(this.centerPoint),e.height=this.height,e.width=this.width,e.viewCenter.copy(this.viewCenter),e.viewHeight=this.viewHeight,e}copy(e){return this.id=e.id,this.groupId=e.groupId,this.number=e.number,this.centerPoint.copy(e.centerPoint),this.height=e.height,this.width=e.width,this.viewCenter.copy(e.viewCenter),this.viewHeight=e.viewHeight,this}}_.AcGiArrowType=I,_.AcGiDefaultLightingType=d,_.AcGiMTextAttachmentPoint=i,_.AcGiMTextFlowDirection=O,_.AcGiOrthographicType=u,_.AcGiRenderMode=n,_.AcGiViewport=h,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
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"})});
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This enumerated type provides the line weight (thickness) values used to specify how
3
+ * lines will be displayed and plotted. The lineweights are in 100ths of a millimeter,
4
+ * except for the negative values. The negative values denote the default indicated by
5
+ * their constant's name.
6
+ */
7
+ export declare enum AcGiLineWeight {
8
+ ByBlock = -2,
9
+ ByDIPs = -4,
10
+ ByLayer = -1,
11
+ ByLineWeightDefault = -3,
12
+ LineWeight000 = 0,
13
+ LineWeight005 = 5,
14
+ LineWeight009 = 9,
15
+ LineWeight013 = 13,
16
+ LineWeight015 = 15,
17
+ LineWeight018 = 18,
18
+ LineWeight020 = 20,
19
+ LineWeight025 = 25,
20
+ LineWeight030 = 30,
21
+ LineWeight035 = 35,
22
+ LineWeight040 = 40,
23
+ LineWeight050 = 50,
24
+ LineWeight053 = 53,
25
+ LineWeight060 = 60,
26
+ LineWeight070 = 70,
27
+ LineWeight080 = 80,
28
+ LineWeight090 = 90,
29
+ LineWeight100 = 100,
30
+ LineWeight106 = 106,
31
+ LineWeight120 = 120,
32
+ LineWeight140 = 140,
33
+ LineWeight158 = 158,
34
+ LineWeight200 = 200,
35
+ LineWeight211 = 211
36
+ }
37
+ //# sourceMappingURL=AcGiLineWeight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcGiLineWeight.d.ts","sourceRoot":"","sources":["../src/AcGiLineWeight.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oBAAY,cAAc;IACxB,OAAO,KAAK;IACZ,MAAM,KAAK;IACX,OAAO,KAAK;IACZ,mBAAmB,KAAK;IACxB,aAAa,IAAI;IACjB,aAAa,IAAI;IACjB,aAAa,IAAI;IACjB,aAAa,KAAK;IAClB,aAAa,KAAK;IAClB,aAAa,KAAO;IACpB,aAAa,KAAK;IAClB,aAAa,KAAO;IACpB,aAAa,KAAK;IAClB,aAAa,KAAO;IACpB,aAAa,KAAK;IAClB,aAAa,KAAK;IAClB,aAAa,KAAO;IACpB,aAAa,KAAK;IAClB,aAAa,KAAK;IAClB,aAAa,KAAK;IAClB,aAAa,KAAK;IAClB,aAAa,MAAM;IACnB,aAAa,MAAO;IACpB,aAAa,MAAM;IACnB,aAAa,MAAM;IACnB,aAAa,MAAO;IACpB,aAAa,MAAM;IACnB,aAAa,MAAO;CACrB"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * This enumerated type provides the line weight (thickness) values used to specify how
3
+ * lines will be displayed and plotted. The lineweights are in 100ths of a millimeter,
4
+ * except for the negative values. The negative values denote the default indicated by
5
+ * their constant's name.
6
+ */
7
+ export var AcGiLineWeight;
8
+ (function (AcGiLineWeight) {
9
+ AcGiLineWeight[AcGiLineWeight["ByBlock"] = -2] = "ByBlock";
10
+ AcGiLineWeight[AcGiLineWeight["ByDIPs"] = -4] = "ByDIPs";
11
+ AcGiLineWeight[AcGiLineWeight["ByLayer"] = -1] = "ByLayer";
12
+ AcGiLineWeight[AcGiLineWeight["ByLineWeightDefault"] = -3] = "ByLineWeightDefault";
13
+ AcGiLineWeight[AcGiLineWeight["LineWeight000"] = 0] = "LineWeight000";
14
+ AcGiLineWeight[AcGiLineWeight["LineWeight005"] = 5] = "LineWeight005";
15
+ AcGiLineWeight[AcGiLineWeight["LineWeight009"] = 9] = "LineWeight009";
16
+ AcGiLineWeight[AcGiLineWeight["LineWeight013"] = 13] = "LineWeight013";
17
+ AcGiLineWeight[AcGiLineWeight["LineWeight015"] = 15] = "LineWeight015";
18
+ AcGiLineWeight[AcGiLineWeight["LineWeight018"] = 18] = "LineWeight018";
19
+ AcGiLineWeight[AcGiLineWeight["LineWeight020"] = 20] = "LineWeight020";
20
+ AcGiLineWeight[AcGiLineWeight["LineWeight025"] = 25] = "LineWeight025";
21
+ AcGiLineWeight[AcGiLineWeight["LineWeight030"] = 30] = "LineWeight030";
22
+ AcGiLineWeight[AcGiLineWeight["LineWeight035"] = 35] = "LineWeight035";
23
+ AcGiLineWeight[AcGiLineWeight["LineWeight040"] = 40] = "LineWeight040";
24
+ AcGiLineWeight[AcGiLineWeight["LineWeight050"] = 50] = "LineWeight050";
25
+ AcGiLineWeight[AcGiLineWeight["LineWeight053"] = 53] = "LineWeight053";
26
+ AcGiLineWeight[AcGiLineWeight["LineWeight060"] = 60] = "LineWeight060";
27
+ AcGiLineWeight[AcGiLineWeight["LineWeight070"] = 70] = "LineWeight070";
28
+ AcGiLineWeight[AcGiLineWeight["LineWeight080"] = 80] = "LineWeight080";
29
+ AcGiLineWeight[AcGiLineWeight["LineWeight090"] = 90] = "LineWeight090";
30
+ AcGiLineWeight[AcGiLineWeight["LineWeight100"] = 100] = "LineWeight100";
31
+ AcGiLineWeight[AcGiLineWeight["LineWeight106"] = 106] = "LineWeight106";
32
+ AcGiLineWeight[AcGiLineWeight["LineWeight120"] = 120] = "LineWeight120";
33
+ AcGiLineWeight[AcGiLineWeight["LineWeight140"] = 140] = "LineWeight140";
34
+ AcGiLineWeight[AcGiLineWeight["LineWeight158"] = 158] = "LineWeight158";
35
+ AcGiLineWeight[AcGiLineWeight["LineWeight200"] = 200] = "LineWeight200";
36
+ AcGiLineWeight[AcGiLineWeight["LineWeight211"] = 211] = "LineWeight211";
37
+ })(AcGiLineWeight || (AcGiLineWeight = {}));
38
+ //# sourceMappingURL=AcGiLineWeight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcGiLineWeight.js","sourceRoot":"","sources":["../src/AcGiLineWeight.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,cA6BX;AA7BD,WAAY,cAAc;IACxB,0DAAY,CAAA;IACZ,wDAAW,CAAA;IACX,0DAAY,CAAA;IACZ,kFAAwB,CAAA;IACxB,qEAAiB,CAAA;IACjB,qEAAiB,CAAA;IACjB,qEAAiB,CAAA;IACjB,sEAAkB,CAAA;IAClB,sEAAkB,CAAA;IAClB,sEAAoB,CAAA;IACpB,sEAAkB,CAAA;IAClB,sEAAoB,CAAA;IACpB,sEAAkB,CAAA;IAClB,sEAAoB,CAAA;IACpB,sEAAkB,CAAA;IAClB,sEAAkB,CAAA;IAClB,sEAAoB,CAAA;IACpB,sEAAkB,CAAA;IAClB,sEAAkB,CAAA;IAClB,sEAAkB,CAAA;IAClB,sEAAkB,CAAA;IAClB,uEAAmB,CAAA;IACnB,uEAAoB,CAAA;IACpB,uEAAmB,CAAA;IACnB,uEAAmB,CAAA;IACnB,uEAAoB,CAAA;IACpB,uEAAmB,CAAA;IACnB,uEAAoB,CAAA;AACtB,CAAC,EA7BW,cAAc,KAAd,cAAc,QA6BzB"}
@@ -1,6 +1,7 @@
1
1
  import { AcCmColor, AcCmTransparency } from '@mlightcad/common';
2
2
  import { AcGiHatchStyle } from './AcGiHatchStyle';
3
3
  import { AcGiLineStyle } from './AcGiLineStyle';
4
+ import { AcGiLineWeight } from './AcGiLineWeight';
4
5
  /**
5
6
  * Trait settings for a sub‑entity in AutoCAD graphics (corresponding to AcGiSubEntityTraits).
6
7
  * These properties define visual attributes like color, line style, layer, thickness, etc.
@@ -29,10 +30,9 @@ export interface AcGiSubEntityTraits {
29
30
  lineTypeScale: number;
30
31
  /**
31
32
  * Lineweight for the entity’s drawing (i.e. the visual thickness of lines).
32
- * Typically corresponds to one of AutoCAD’s predefined lineweights (e.g.
33
- * “0.13 mm”, “0.30 mm”, etc.) or “ByLayer/ByBlock”.
33
+ * Typically corresponds to one of AutoCAD’s predefined lineweights.
34
34
  */
35
- lineWeight: number;
35
+ lineWeight: AcGiLineWeight;
36
36
  /**
37
37
  * Fill type / hatch style for the entity (if applicable).
38
38
  * Corresponds to AutoCAD’s `AcGiHatchStyle`. For example, controlling whether
@@ -1 +1 @@
1
- {"version":3,"file":"AcGiSubEntityTraits.d.ts","sourceRoot":"","sources":["../src/AcGiSubEntityTraits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,KAAK,EAAE,SAAS,CAAA;IAEhB;;;OAGG;IACH,QAAQ,EAAE,aAAa,CAAA;IAEvB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,QAAQ,EAAE,cAAc,CAAA;IAExB;;;OAGG;IACH,YAAY,EAAE,gBAAgB,CAAA;IAE9B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;CACd"}
1
+ {"version":3,"file":"AcGiSubEntityTraits.d.ts","sourceRoot":"","sources":["../src/AcGiSubEntityTraits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,KAAK,EAAE,SAAS,CAAA;IAEhB;;;OAGG;IACH,QAAQ,EAAE,aAAa,CAAA;IAEvB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;;OAGG;IACH,UAAU,EAAE,cAAc,CAAA;IAE1B;;;;OAIG;IACH,QAAQ,EAAE,cAAc,CAAA;IAExB;;;OAGG;IACH,YAAY,EAAE,gBAAgB,CAAA;IAE9B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;CACd"}
package/lib/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './AcGiEntity';
3
3
  export * from './AcGiHatchStyle';
4
4
  export * from './AcGiImageStyle';
5
5
  export * from './AcGiLineStyle';
6
+ export * from './AcGiLineWeight';
6
7
  export * from './AcGiPointStyle';
7
8
  export * from './AcGiRenderer';
8
9
  export * from './AcGiStyleType';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
package/lib/index.js CHANGED
@@ -3,6 +3,7 @@ export * from './AcGiEntity';
3
3
  export * from './AcGiHatchStyle';
4
4
  export * from './AcGiImageStyle';
5
5
  export * from './AcGiLineStyle';
6
+ export * from './AcGiLineWeight';
6
7
  export * from './AcGiPointStyle';
7
8
  export * from './AcGiRenderer';
8
9
  export * from './AcGiStyleType';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlightcad/graphic-interface",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@mlightcad/common": "1.3.0",
36
- "@mlightcad/geometry-engine": "3.1.0"
36
+ "@mlightcad/geometry-engine": "3.1.1"
37
37
  },
38
38
  "scripts": {
39
39
  "clean": "rimraf dist lib tsconfig.tsbuildinfo",