@mlightcad/graphic-interface 3.3.35 → 3.3.37
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.
- package/lib/index.d.ts +15 -13
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -13
- package/lib/index.js.map +1 -1
- package/package.json +6 -5
- package/dist/graphic-interface.js +0 -89
package/lib/index.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
1
|
+
export { AcGiArrowType } from './AcGiArrowType';
|
|
2
|
+
export type { AcGiEntity } from './AcGiEntity';
|
|
3
|
+
export type { AcGiHatchGradientStyle, AcGiHatchPatternLine, AcGiHatchStyle } from './AcGiHatchStyle';
|
|
4
|
+
export type { AcGiImageStyle } from './AcGiImageStyle';
|
|
5
|
+
export type { AcGiArrowStyle, AcGiBaseLineStyle, AcGiLineStyle, AcGiLineTypePatternElement } from './AcGiLineStyle';
|
|
6
|
+
export { AcGiLineWeight } from './AcGiLineWeight';
|
|
7
|
+
export type { AcGiPointStyle } from './AcGiPointStyle';
|
|
8
|
+
export type { AcGiFontMapping, AcGiRenderer } from './AcGiRenderer';
|
|
9
|
+
export type { AcGiStyleType } from './AcGiStyleType';
|
|
10
|
+
export type { AcGiSubEntityTraits } from './AcGiSubEntityTraits';
|
|
11
|
+
export { AcGiMTextAttachmentPoint, AcGiMTextFlowDirection } from './AcGiTextStyle';
|
|
12
|
+
export type { AcGiMTextData, AcGiTextStyle } from './AcGiTextStyle';
|
|
13
|
+
export { AcGiDefaultLightingType, AcGiOrthographicType, AcGiRenderMode } from './AcGiView';
|
|
14
|
+
export type { AcGiView } from './AcGiView';
|
|
15
|
+
export { AcGiViewport } from './AcGiViewport';
|
|
14
16
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,YAAY,EACV,sBAAsB,EACtB,oBAAoB,EACpB,cAAc,EACf,MAAM,kBAAkB,CAAA;AACzB,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,YAAY,EACV,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,0BAA0B,EAC3B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACnE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACpD,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,iBAAiB,CAAA;AACxB,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,cAAc,EACf,MAAM,YAAY,CAAA;AACnB,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
|
package/lib/index.js
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export * from './AcGiLineWeight';
|
|
7
|
-
export * from './AcGiPointStyle';
|
|
8
|
-
export * from './AcGiRenderer';
|
|
9
|
-
export * from './AcGiStyleType';
|
|
10
|
-
export * from './AcGiSubEntityTraits';
|
|
11
|
-
export * from './AcGiTextStyle';
|
|
12
|
-
export * from './AcGiView';
|
|
13
|
-
export * from './AcGiViewport';
|
|
1
|
+
export { AcGiArrowType } from './AcGiArrowType';
|
|
2
|
+
export { AcGiLineWeight } from './AcGiLineWeight';
|
|
3
|
+
export { AcGiMTextAttachmentPoint, AcGiMTextFlowDirection } from './AcGiTextStyle';
|
|
4
|
+
export { AcGiDefaultLightingType, AcGiOrthographicType, AcGiRenderMode } from './AcGiView';
|
|
5
|
+
export { AcGiViewport } from './AcGiViewport';
|
|
14
6
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAc/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAKjD,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,cAAc,EACf,MAAM,YAAY,CAAA;AAEnB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mlightcad/graphic-interface",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.37",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -23,17 +23,18 @@
|
|
|
23
23
|
"README.md",
|
|
24
24
|
"package.json"
|
|
25
25
|
],
|
|
26
|
+
"sideEffects": false,
|
|
26
27
|
"main": "./dist/graphic-interface.umd.cjs",
|
|
27
|
-
"module": "./
|
|
28
|
+
"module": "./lib/index.js",
|
|
28
29
|
"types": "./lib/index.d.ts",
|
|
29
30
|
"exports": {
|
|
30
31
|
"types": "./lib/index.d.ts",
|
|
31
|
-
"import": "./
|
|
32
|
+
"import": "./lib/index.js",
|
|
32
33
|
"require": "./dist/graphic-interface.umd.cjs"
|
|
33
34
|
},
|
|
34
35
|
"peerDependencies": {
|
|
35
|
-
"@mlightcad/
|
|
36
|
-
"@mlightcad/
|
|
36
|
+
"@mlightcad/common": "1.4.37",
|
|
37
|
+
"@mlightcad/geometry-engine": "3.2.37"
|
|
37
38
|
},
|
|
38
39
|
"scripts": {
|
|
39
40
|
"clean": "rimraf dist lib tsconfig.tsbuildinfo",
|
|
@@ -1,89 +0,0 @@
|
|
|
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
|
-
constructor() {
|
|
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
|
-
}
|
|
7
|
-
get number() {
|
|
8
|
-
return this._number;
|
|
9
|
-
}
|
|
10
|
-
set number(s) {
|
|
11
|
-
this._number = s;
|
|
12
|
-
}
|
|
13
|
-
get id() {
|
|
14
|
-
return this._id;
|
|
15
|
-
}
|
|
16
|
-
set id(s) {
|
|
17
|
-
this._id = s;
|
|
18
|
-
}
|
|
19
|
-
get groupId() {
|
|
20
|
-
return this._groupId;
|
|
21
|
-
}
|
|
22
|
-
set groupId(s) {
|
|
23
|
-
this._groupId = s;
|
|
24
|
-
}
|
|
25
|
-
get centerPoint() {
|
|
26
|
-
return this._centerPoint;
|
|
27
|
-
}
|
|
28
|
-
set centerPoint(s) {
|
|
29
|
-
this._centerPoint.copy(s);
|
|
30
|
-
}
|
|
31
|
-
get height() {
|
|
32
|
-
return this._height;
|
|
33
|
-
}
|
|
34
|
-
set height(s) {
|
|
35
|
-
this._height = s;
|
|
36
|
-
}
|
|
37
|
-
get width() {
|
|
38
|
-
return this._width;
|
|
39
|
-
}
|
|
40
|
-
set width(s) {
|
|
41
|
-
this._width = s;
|
|
42
|
-
}
|
|
43
|
-
get box() {
|
|
44
|
-
const s = new e();
|
|
45
|
-
return s.setFromCenterAndSize(this.centerPoint, {
|
|
46
|
-
x: this.width,
|
|
47
|
-
y: this.height
|
|
48
|
-
}), s;
|
|
49
|
-
}
|
|
50
|
-
get viewCenter() {
|
|
51
|
-
return this._viewCenter;
|
|
52
|
-
}
|
|
53
|
-
set viewCenter(s) {
|
|
54
|
-
this._viewCenter.copy(s);
|
|
55
|
-
}
|
|
56
|
-
get viewHeight() {
|
|
57
|
-
return this._viewHeight;
|
|
58
|
-
}
|
|
59
|
-
set viewHeight(s) {
|
|
60
|
-
this._viewHeight = s;
|
|
61
|
-
}
|
|
62
|
-
get viewWidth() {
|
|
63
|
-
return this.viewHeight * (this.width / this.height);
|
|
64
|
-
}
|
|
65
|
-
get viewBox() {
|
|
66
|
-
const s = new e();
|
|
67
|
-
return s.setFromCenterAndSize(this.viewCenter, {
|
|
68
|
-
x: this.viewWidth,
|
|
69
|
-
y: this.viewHeight
|
|
70
|
-
}), s;
|
|
71
|
-
}
|
|
72
|
-
clone() {
|
|
73
|
-
const s = new O();
|
|
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
|
-
}
|
|
76
|
-
copy(s) {
|
|
77
|
-
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;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
export {
|
|
81
|
-
h as AcGiArrowType,
|
|
82
|
-
D as AcGiDefaultLightingType,
|
|
83
|
-
t as AcGiLineWeight,
|
|
84
|
-
E as AcGiMTextAttachmentPoint,
|
|
85
|
-
B as AcGiMTextFlowDirection,
|
|
86
|
-
H as AcGiOrthographicType,
|
|
87
|
-
u as AcGiRenderMode,
|
|
88
|
-
O as AcGiViewport
|
|
89
|
-
};
|