@mlightcad/graphic-interface 3.11.2 → 3.11.3

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 +1 @@
1
- (function(n,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("@mlightcad/geometry-engine")):typeof define=="function"&&define.amd?define(["exports","@mlightcad/geometry-engine"],_):(n=typeof globalThis<"u"?globalThis:n||self,_(n["graphic-interface"]={},n.geometryEngine))})(this,(function(n,_){"use strict";var d=(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))(d||{}),h=(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))(h||{});class s{constructor(e={}){this.database=e.database,this.foregroundOnDark=e.foregroundOnDark??u,this.foregroundOnLight=e.foregroundOnLight??g,this.backgroundIsDark=e.backgroundIsDark??!0,this.fallbackRgb=e.fallbackRgb??16777215}resolveSubEntityTraitsRgb(e){const r=e.color;return r.isForeground?this.backgroundIsDark?this.foregroundOnDark:this.foregroundOnLight:r.isByLayer||r.isByBlock?this.fallbackRgb??16777215:r.RGB??this.fallbackRgb??16777215}static fromBackgroundColor(e=I,r){return new s({database:r,foregroundOnDark:u,foregroundOnLight:g,backgroundIsDark:!o(e),fallbackRgb:16777215})}}const I=0,u=16777215,g=0,l=16777215,R=128,L=new s({database:void 0,foregroundOnDark:u,foregroundOnLight:g,backgroundIsDark:!0,fallbackRgb:16777215});function o(t){const e=t>>16&255,r=t>>8&255,T=t&255;return .299*e+.587*r+.114*T>R}function H(t){const e=s.fromBackgroundColor(t);return e.backgroundIsDark?e.foregroundOnDark:e.foregroundOnLight}function b(t){return t?g:u}function f(t,e){return s.fromBackgroundColor(e).resolveSubEntityTraitsRgb(t)}var E=(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))(E||{}),D=(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[t.BaselineLeft=10]="BaselineLeft",t[t.BaselineCenter=11]="BaselineCenter",t[t.BaselineRight=12]="BaselineRight",t))(D||{}),B=(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))(B||{}),a=(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))(a||{}),C=(t=>(t[t.ONE_DISTANT_LIGHT=0]="ONE_DISTANT_LIGHT",t[t.TWO_DISTANT_LIGHTS=1]="TWO_DISTANT_LIGHTS",t))(C||{});class O{constructor(){this._number=-1,this._id="",this._groupId="",this._centerPoint=new _.AcGePoint3d,this._height=0,this._width=0,this._viewCenter=new _.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 _.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 _.AcGeBox2d;return e.setFromCenterAndSize(this.viewCenter,{x:this.viewWidth,y:this.viewHeight}),e}clone(){const e=new O;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}}n.ACGI_DARK_THEME_FOREGROUND=u,n.ACGI_LIGHT_THEME_FOREGROUND=g,n.ACGI_MODEL_SPACE_BACKGROUND=I,n.ACGI_PAPER_SPACE_BACKGROUND=l,n.AcGiArrowType=d,n.AcGiContext=s,n.AcGiDefaultLightingType=C,n.AcGiLineWeight=h,n.AcGiMTextAttachmentPoint=D,n.AcGiMTextFlowDirection=E,n.AcGiOrthographicType=a,n.AcGiRenderMode=B,n.AcGiViewport=O,n.DEFAULT_ACGI_CONTEXT=L,n.acgiContrastingForegroundColor=b,n.acgiForegroundColorForBackground=H,n.acgiIsLightBackground=o,n.acgiResolveSubEntityTraitsRgbFromBackground=f,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(s,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("@mlightcad/geometry-engine")):typeof define=="function"&&define.amd?define(["exports","@mlightcad/geometry-engine"],r):(s=typeof globalThis<"u"?globalThis:s||self,r(s["graphic-interface"]={},s.geometryEngine))})(this,(function(s,r){"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||{}),I=(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))(I||{});class _{constructor(t={}){this.database=t.database,this.foregroundOnDark=t.foregroundOnDark??u,this.foregroundOnLight=t.foregroundOnLight??h,this.backgroundIsDark=t.backgroundIsDark??!0,this.fallbackRgb=t.fallbackRgb??16777215}resolveSubEntityTraitsRgb(t){const n=t.color;return n.isForeground?this.backgroundIsDark?this.foregroundOnDark:this.foregroundOnLight:n.isByLayer||n.isByBlock?this.fallbackRgb??16777215:n.RGB??this.fallbackRgb??16777215}static fromBackgroundColor(t=a,n){return new _({database:n,foregroundOnDark:u,foregroundOnLight:h,backgroundIsDark:!l(t),fallbackRgb:16777215})}}const a=0,u=16777215,h=0,b=16777215,f=128,v=new _({database:void 0,foregroundOnDark:u,foregroundOnLight:h,backgroundIsDark:!0,fallbackRgb:16777215});function l(e){const t=e>>16&255,n=e>>8&255,g=e&255;return .299*t+.587*n+.114*g>f}function H(e){const t=_.fromBackgroundColor(e);return t.backgroundIsDark?t.foregroundOnDark:t.foregroundOnLight}function N(e){return e?h:u}function k(e,t){return _.fromBackgroundColor(t).resolveSubEntityTraitsRgb(e)}var E=(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))(E||{}),C=(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))(C||{}),D=(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))(D||{}),B=(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))(B||{}),T=(e=>(e[e.ONE_DISTANT_LIGHT=0]="ONE_DISTANT_LIGHT",e[e.TWO_DISTANT_LIGHTS=1]="TWO_DISTANT_LIGHTS",e))(T||{});class d{constructor(){this._number=-1,this._id="",this._groupId="",this._centerPoint=new r.AcGePoint3d,this._height=0,this._width=0,this._viewCenter=new r.AcGePoint3d,this._viewTarget=new r.AcGePoint3d,this._viewTwistAngle=0,this._viewHeight=0}get number(){return this._number}set number(t){this._number=t}get id(){return this._id}set id(t){this._id=t}get groupId(){return this._groupId}set groupId(t){this._groupId=t}get centerPoint(){return this._centerPoint}set centerPoint(t){this._centerPoint.copy(t)}get height(){return this._height}set height(t){this._height=t}get width(){return this._width}set width(t){this._width=t}get box(){const t=new r.AcGeBox2d;return t.setFromCenterAndSize(this.centerPoint,{x:this.width,y:this.height}),t}get viewCenter(){return this._viewCenter}set viewCenter(t){this._viewCenter.copy(t)}get viewTarget(){return this._viewTarget}set viewTarget(t){this._viewTarget.copy(t)}get viewTwistAngle(){return this._viewTwistAngle}set viewTwistAngle(t){this._viewTwistAngle=t}get viewHeight(){return this._viewHeight}set viewHeight(t){this._viewHeight=t}get viewWidth(){return this.viewHeight*(this.width/this.height)}get viewBox(){const t=d.dcsCenterToWcs(this.viewCenter,this.viewTarget,this.viewTwistAngle),n=new r.AcGeBox2d;return n.setFromCenterAndSize(t,{x:this.viewWidth,y:this.viewHeight}),n}static dcsCenterToWcs(t,n,g){let O=t.x,o=t.y;if(Number.isFinite(g)&&g!==0){const R=Math.cos(g),L=Math.sin(g);O=t.x*R-t.y*L,o=t.x*L+t.y*R}return n&&Number.isFinite(n.x)&&Number.isFinite(n.y)&&(O+=n.x,o+=n.y),new r.AcGePoint3d(O,o,0)}clone(){const t=new d;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.viewTarget.copy(this.viewTarget),t.viewTwistAngle=this.viewTwistAngle,t.viewHeight=this.viewHeight,t}copy(t){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.viewTarget.copy(t.viewTarget),this.viewTwistAngle=t.viewTwistAngle,this.viewHeight=t.viewHeight,this}}s.ACGI_DARK_THEME_FOREGROUND=u,s.ACGI_LIGHT_THEME_FOREGROUND=h,s.ACGI_MODEL_SPACE_BACKGROUND=a,s.ACGI_PAPER_SPACE_BACKGROUND=b,s.AcGiArrowType=i,s.AcGiContext=_,s.AcGiDefaultLightingType=T,s.AcGiLineWeight=I,s.AcGiMTextAttachmentPoint=C,s.AcGiMTextFlowDirection=E,s.AcGiOrthographicType=B,s.AcGiRenderMode=D,s.AcGiViewport=d,s.DEFAULT_ACGI_CONTEXT=v,s.acgiContrastingForegroundColor=N,s.acgiForegroundColorForBackground=H,s.acgiIsLightBackground=l,s.acgiResolveSubEntityTraitsRgbFromBackground=k,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}));
@@ -8,6 +8,8 @@ export declare class AcGiViewport {
8
8
  private _height;
9
9
  private _width;
10
10
  private _viewCenter;
11
+ private _viewTarget;
12
+ private _viewTwistAngle;
11
13
  private _viewHeight;
12
14
  private _number;
13
15
  private _id;
@@ -53,6 +55,19 @@ export declare class AcGiViewport {
53
55
  */
54
56
  get viewCenter(): AcGePoint3d;
55
57
  set viewCenter(value: AcGePoint3d);
58
+ /**
59
+ * The view target in WCS coordinates (DXF group 17).
60
+ *
61
+ * Paper-space viewports store the model view center in DCS (`viewCenter`);
62
+ * the WCS center is `viewTarget + rotate(viewCenter, viewTwistAngle)`.
63
+ */
64
+ get viewTarget(): AcGePoint3d;
65
+ set viewTarget(value: AcGePoint3d);
66
+ /**
67
+ * The view twist angle in radians (DXF group 51).
68
+ */
69
+ get viewTwistAngle(): number;
70
+ set viewTwistAngle(value: number);
56
71
  /**
57
72
  * The height (in display coordinate system coordinates) of the Model Space view within the viewport.
58
73
  * Zooming the view out within the viewport increases this value and zooming in decreases this value.
@@ -65,9 +80,18 @@ export declare class AcGiViewport {
65
80
  */
66
81
  get viewWidth(): number;
67
82
  /**
68
- * The bounding box (in display coordinate system coordinates) of the Model Space view within the viewport.
83
+ * The bounding box of the Model Space view shown through this viewport,
84
+ * expressed in WCS coordinates.
85
+ *
86
+ * `viewCenter` is stored in DCS; AutoCAD maps it to WCS by rotating by
87
+ * `viewTwistAngle` and translating by `viewTarget` (same rule as
88
+ * `AcDbViewportTableRecord.modelViewBox` for the *ACTIVE VPORT).
69
89
  */
70
90
  get viewBox(): AcGeBox2d;
91
+ /**
92
+ * Maps a DCS view center to WCS using the viewport target and twist.
93
+ */
94
+ static dcsCenterToWcs(center: AcGePoint3d, target: AcGePoint3d, twistAngle: number): AcGePoint3d;
71
95
  /**
72
96
  * Clone this viewport
73
97
  * @returns Return the cloned instance of this viewport
@@ -1 +1 @@
1
- {"version":3,"file":"AcGiViewport.d.ts","sourceRoot":"","sources":["../src/AcGiViewport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAEnE;;;GAGG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,YAAY,CAAa;IACjC,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,WAAW,CAAa;IAChC,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,GAAG,CAAQ;IACnB,OAAO,CAAC,QAAQ,CAAQ;;IAaxB;;OAEG;IACH,IAAI,MAAM,IAGQ,MAAM,CADvB;IACD,IAAI,MAAM,CAAC,KAAK,EAAE,MAAM,EAEvB;IAED;;OAEG;IACH,IAAI,EAAE,IAGQ,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ACnB,MAAM,EAAE,WAAW,EACnB,UAAU,EAAE,MAAM,GACjB,WAAW;IAoBd;;;OAGG;IACH,KAAK;IAeL;;;;OAIG;IACH,IAAI,CAAC,QAAQ,EAAE,YAAY;CAa5B"}
@@ -12,6 +12,8 @@ var AcGiViewport = /** @class */ (function () {
12
12
  this._height = 0;
13
13
  this._width = 0;
14
14
  this._viewCenter = new AcGePoint3d();
15
+ this._viewTarget = new AcGePoint3d();
16
+ this._viewTwistAngle = 0;
15
17
  this._viewHeight = 0;
16
18
  }
17
19
  Object.defineProperty(AcGiViewport.prototype, "number", {
@@ -121,6 +123,35 @@ var AcGiViewport = /** @class */ (function () {
121
123
  enumerable: false,
122
124
  configurable: true
123
125
  });
126
+ Object.defineProperty(AcGiViewport.prototype, "viewTarget", {
127
+ /**
128
+ * The view target in WCS coordinates (DXF group 17).
129
+ *
130
+ * Paper-space viewports store the model view center in DCS (`viewCenter`);
131
+ * the WCS center is `viewTarget + rotate(viewCenter, viewTwistAngle)`.
132
+ */
133
+ get: function () {
134
+ return this._viewTarget;
135
+ },
136
+ set: function (value) {
137
+ this._viewTarget.copy(value);
138
+ },
139
+ enumerable: false,
140
+ configurable: true
141
+ });
142
+ Object.defineProperty(AcGiViewport.prototype, "viewTwistAngle", {
143
+ /**
144
+ * The view twist angle in radians (DXF group 51).
145
+ */
146
+ get: function () {
147
+ return this._viewTwistAngle;
148
+ },
149
+ set: function (value) {
150
+ this._viewTwistAngle = value;
151
+ },
152
+ enumerable: false,
153
+ configurable: true
154
+ });
124
155
  Object.defineProperty(AcGiViewport.prototype, "viewHeight", {
125
156
  /**
126
157
  * The height (in display coordinate system coordinates) of the Model Space view within the viewport.
@@ -148,11 +179,17 @@ var AcGiViewport = /** @class */ (function () {
148
179
  });
149
180
  Object.defineProperty(AcGiViewport.prototype, "viewBox", {
150
181
  /**
151
- * The bounding box (in display coordinate system coordinates) of the Model Space view within the viewport.
182
+ * The bounding box of the Model Space view shown through this viewport,
183
+ * expressed in WCS coordinates.
184
+ *
185
+ * `viewCenter` is stored in DCS; AutoCAD maps it to WCS by rotating by
186
+ * `viewTwistAngle` and translating by `viewTarget` (same rule as
187
+ * `AcDbViewportTableRecord.modelViewBox` for the *ACTIVE VPORT).
152
188
  */
153
189
  get: function () {
190
+ var wcsCenter = AcGiViewport.dcsCenterToWcs(this.viewCenter, this.viewTarget, this.viewTwistAngle);
154
191
  var box = new AcGeBox2d();
155
- box.setFromCenterAndSize(this.viewCenter, {
192
+ box.setFromCenterAndSize(wcsCenter, {
156
193
  x: this.viewWidth,
157
194
  y: this.viewHeight
158
195
  });
@@ -161,6 +198,26 @@ var AcGiViewport = /** @class */ (function () {
161
198
  enumerable: false,
162
199
  configurable: true
163
200
  });
201
+ /**
202
+ * Maps a DCS view center to WCS using the viewport target and twist.
203
+ */
204
+ AcGiViewport.dcsCenterToWcs = function (center, target, twistAngle) {
205
+ var wcsCenterX = center.x;
206
+ var wcsCenterY = center.y;
207
+ if (Number.isFinite(twistAngle) && twistAngle !== 0) {
208
+ var cos = Math.cos(twistAngle);
209
+ var sin = Math.sin(twistAngle);
210
+ wcsCenterX = center.x * cos - center.y * sin;
211
+ wcsCenterY = center.x * sin + center.y * cos;
212
+ }
213
+ if (target &&
214
+ Number.isFinite(target.x) &&
215
+ Number.isFinite(target.y)) {
216
+ wcsCenterX += target.x;
217
+ wcsCenterY += target.y;
218
+ }
219
+ return new AcGePoint3d(wcsCenterX, wcsCenterY, 0);
220
+ };
164
221
  /**
165
222
  * Clone this viewport
166
223
  * @returns Return the cloned instance of this viewport
@@ -174,6 +231,8 @@ var AcGiViewport = /** @class */ (function () {
174
231
  viewport.height = this.height;
175
232
  viewport.width = this.width;
176
233
  viewport.viewCenter.copy(this.viewCenter);
234
+ viewport.viewTarget.copy(this.viewTarget);
235
+ viewport.viewTwistAngle = this.viewTwistAngle;
177
236
  viewport.viewHeight = this.viewHeight;
178
237
  return viewport;
179
238
  };
@@ -190,6 +249,8 @@ var AcGiViewport = /** @class */ (function () {
190
249
  this.height = viewport.height;
191
250
  this.width = viewport.width;
192
251
  this.viewCenter.copy(viewport.viewCenter);
252
+ this.viewTarget.copy(viewport.viewTarget);
253
+ this.viewTwistAngle = viewport.viewTwistAngle;
193
254
  this.viewHeight = viewport.viewHeight;
194
255
  return this;
195
256
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AcGiViewport.js","sourceRoot":"","sources":["../src/AcGiViewport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAEnE;;;GAGG;AACH;IAUE;QACE,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAA;QACjB,IAAI,CAAC,GAAG,GAAG,EAAE,CAAA;QACb,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAA;QAClB,IAAI,CAAC,YAAY,GAAG,IAAI,WAAW,EAAE,CAAA;QACrC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAA;QAChB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAA;QACf,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,EAAE,CAAA;QACpC,IAAI,CAAC,WAAW,GAAG,CAAC,CAAA;IACtB,CAAC;IAKD,sBAAI,gCAAM;QAHV;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,OAAO,CAAA;QACrB,CAAC;aACD,UAAW,KAAa;YACtB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAA;QACtB,CAAC;;;OAHA;IAQD,sBAAI,4BAAE;QAHN;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,GAAG,CAAA;QACjB,CAAC;aACD,UAAO,KAAa;YAClB,IAAI,CAAC,GAAG,GAAG,KAAK,CAAA;QAClB,CAAC;;;OAHA;IAQD,sBAAI,iCAAO;QAHX;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,QAAQ,CAAA;QACtB,CAAC;aACD,UAAY,KAAa;YACvB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAA;QACvB,CAAC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;QACzC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QACzC,QAAQ,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAA;QAC7C,QAAQ,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAA;QACrC,OAAO,QAAQ,CAAA;IACjB,CAAC;IAED;;;;OAIG;IACH,2BAAI,GAAJ,UAAK,QAAsB;QACzB,IAAI,CAAC,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAA;QACrB,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAA;QAC/B,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAA;QAC7B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAA;QAC3C,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAA;QAC7B,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAA;QAC3B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;QACzC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;QACzC,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC,cAAc,CAAA;QAC7C,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAA;QACrC,OAAO,IAAI,CAAA;IACb,CAAC;IACH,mBAAC;AAAD,CAAC,AA5OD,IA4OC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlightcad/graphic-interface",
3
- "version": "3.11.2",
3
+ "version": "3.11.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -33,8 +33,8 @@
33
33
  "require": "./dist/graphic-interface.umd.cjs"
34
34
  },
35
35
  "peerDependencies": {
36
- "@mlightcad/common": "1.11.2",
37
- "@mlightcad/geometry-engine": "3.11.2"
36
+ "@mlightcad/geometry-engine": "3.11.3",
37
+ "@mlightcad/common": "1.11.3"
38
38
  },
39
39
  "scripts": {
40
40
  "clean": "rimraf dist lib tsconfig.tsbuildinfo",