@mlightcad/graphic-interface 1.0.0
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/LICENSE +21 -0
- package/dist/graphic-interface.js +133 -0
- package/dist/graphic-interface.umd.cjs +1 -0
- package/lib/AcGiArrowType.d.ts +86 -0
- package/lib/AcGiArrowType.d.ts.map +1 -0
- package/lib/AcGiArrowType.js +87 -0
- package/lib/AcGiArrowType.js.map +1 -0
- package/lib/AcGiEntity.d.ts +56 -0
- package/lib/AcGiEntity.d.ts.map +1 -0
- package/lib/AcGiEntity.js +2 -0
- package/lib/AcGiEntity.js.map +1 -0
- package/lib/AcGiHatchStyle.d.ts +22 -0
- package/lib/AcGiHatchStyle.d.ts.map +1 -0
- package/lib/AcGiHatchStyle.js +2 -0
- package/lib/AcGiHatchStyle.js.map +1 -0
- package/lib/AcGiImageStyle.d.ts +9 -0
- package/lib/AcGiImageStyle.d.ts.map +1 -0
- package/lib/AcGiImageStyle.js +2 -0
- package/lib/AcGiImageStyle.js.map +1 -0
- package/lib/AcGiLineStyle.d.ts +102 -0
- package/lib/AcGiLineStyle.d.ts.map +1 -0
- package/lib/AcGiLineStyle.js +2 -0
- package/lib/AcGiLineStyle.js.map +1 -0
- package/lib/AcGiPointStyle.d.ts +21 -0
- package/lib/AcGiPointStyle.d.ts.map +1 -0
- package/lib/AcGiPointStyle.js +2 -0
- package/lib/AcGiPointStyle.js.map +1 -0
- package/lib/AcGiRenderer.d.ts +88 -0
- package/lib/AcGiRenderer.d.ts.map +1 -0
- package/lib/AcGiRenderer.js +2 -0
- package/lib/AcGiRenderer.js.map +1 -0
- package/lib/AcGiTextStyle.d.ts +52 -0
- package/lib/AcGiTextStyle.d.ts.map +1 -0
- package/lib/AcGiTextStyle.js +21 -0
- package/lib/AcGiTextStyle.js.map +1 -0
- package/lib/AcGiView.d.ts +51 -0
- package/lib/AcGiView.d.ts.map +1 -0
- package/lib/AcGiView.js +26 -0
- package/lib/AcGiView.js.map +1 -0
- package/lib/AcGiViewport.d.ts +83 -0
- package/lib/AcGiViewport.d.ts.map +1 -0
- package/lib/AcGiViewport.js +199 -0
- package/lib/AcGiViewport.js.map +1 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +11 -0
- package/lib/index.js.map +1 -0
- package/package.json +38 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { AcGeArea2d, AcGeCircArc3d, AcGeEllipseArc3d, AcGePoint3d, AcGePoint3dLike } from '@mlightcad/geometry-engine';
|
|
2
|
+
import { AcGiPointStyle } from './AcGiPointStyle';
|
|
3
|
+
import { AcGiEntity } from './AcGiEntity';
|
|
4
|
+
import { AcGiHatchStyle } from './AcGiHatchStyle';
|
|
5
|
+
import { AcGiImageStyle } from './AcGiImageStyle';
|
|
6
|
+
import { AcGiLineStyle } from './AcGiLineStyle';
|
|
7
|
+
import { AcGiMTextData, AcGiTextStyle } from './AcGiTextStyle';
|
|
8
|
+
/**
|
|
9
|
+
* Font mappings.
|
|
10
|
+
* - The key is the original font name
|
|
11
|
+
* - The value is the mapped font name
|
|
12
|
+
*/
|
|
13
|
+
export type AcGiFontMapping = Record<string, string>;
|
|
14
|
+
export interface AcGiRenderer<T extends AcGiEntity = AcGiEntity> {
|
|
15
|
+
/**
|
|
16
|
+
* Create one group
|
|
17
|
+
* @param entities Input entities to group together
|
|
18
|
+
* @returns Return created group
|
|
19
|
+
*/
|
|
20
|
+
group(entities: T[]): T;
|
|
21
|
+
/**
|
|
22
|
+
* Draw a point.
|
|
23
|
+
* @param point Input point to draw
|
|
24
|
+
* @param style Input point style applied to point
|
|
25
|
+
* @returns Return an object which can be added to scene
|
|
26
|
+
*/
|
|
27
|
+
point(point: AcGePoint3d, style: AcGiPointStyle): T;
|
|
28
|
+
/**
|
|
29
|
+
* Draw a circular arc or full circle.
|
|
30
|
+
* @param arc Input circular arc to draw
|
|
31
|
+
* @param style Input line style applied to circular arc
|
|
32
|
+
* @returns Return an object which can be added to scene
|
|
33
|
+
*/
|
|
34
|
+
circularArc(arc: AcGeCircArc3d, style: AcGiLineStyle): T;
|
|
35
|
+
/**
|
|
36
|
+
* Draw an elliptical arc or full ellipse.
|
|
37
|
+
* @param ellipseArc Input elliptical arc to draw
|
|
38
|
+
* @param style Input line style applied to elliptical arc
|
|
39
|
+
* @returns Return an object which can be added to scene
|
|
40
|
+
*/
|
|
41
|
+
ellipticalArc(ellipseArc: AcGeEllipseArc3d, style: AcGiLineStyle): T;
|
|
42
|
+
/**
|
|
43
|
+
* Draw lines using gl.LINE_STRIP.
|
|
44
|
+
* @param points Input a point array which contains all line vertices
|
|
45
|
+
* @param style Input line style applied to lines
|
|
46
|
+
* @returns Return an object which can be added to scene
|
|
47
|
+
*/
|
|
48
|
+
lines(points: AcGePoint3dLike[], style: AcGiLineStyle): T;
|
|
49
|
+
/**
|
|
50
|
+
* Draw lines using gl.LINES.
|
|
51
|
+
* @param array Must be a `TypedArray`. Used to instantiate the buffer. This array should have
|
|
52
|
+
* `itemSize * numVertices` elements, where numVertices is the number of vertices.
|
|
53
|
+
* @param itemSize The number of values of the {@link array} that should be associated with a
|
|
54
|
+
* particular vertex. If the vertex is one 2d point, then itemSize should be `2`. If the vertex
|
|
55
|
+
* is one 3d point, then itemSize should be `3`.
|
|
56
|
+
* @param indices Index buffer.
|
|
57
|
+
* @param style Input line style applied to line segments
|
|
58
|
+
* @returns Return an object which can be added to scene
|
|
59
|
+
*/
|
|
60
|
+
lineSegments(array: Float32Array, itemSize: number, indices: Uint16Array, style: AcGiLineStyle): T;
|
|
61
|
+
/**
|
|
62
|
+
* Draw one area
|
|
63
|
+
* @param area Input area to draw
|
|
64
|
+
* @param style Input hatch style applied to the area
|
|
65
|
+
* @returns Return an object which can be added to scene
|
|
66
|
+
*/
|
|
67
|
+
area(area: AcGeArea2d, style: AcGiHatchStyle): T;
|
|
68
|
+
/**
|
|
69
|
+
* Draw multiple line texts
|
|
70
|
+
* @param mtext Input multiple line text data to draw
|
|
71
|
+
* @param style Input text style applied to the text string
|
|
72
|
+
* @returns Return an object which can be added to scene
|
|
73
|
+
*/
|
|
74
|
+
mtext(mtext: AcGiMTextData, style: AcGiTextStyle): T;
|
|
75
|
+
/**
|
|
76
|
+
* Draw image
|
|
77
|
+
* @param blob Input Blob instance of one image file
|
|
78
|
+
* @param style Input image style
|
|
79
|
+
* @returns Return an object which can be added to scene
|
|
80
|
+
*/
|
|
81
|
+
image(blob: Blob, style: AcGiImageStyle): T;
|
|
82
|
+
/**
|
|
83
|
+
* Set font mapping
|
|
84
|
+
* @param Input font mapping to set
|
|
85
|
+
*/
|
|
86
|
+
setFontMapping(mapping: AcGiFontMapping): void;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=AcGiRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcGiRenderer.d.ts","sourceRoot":"","sources":["../src/AcGiRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE9D;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAEpD,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU;IAC7D;;;;OAIG;IACH,KAAK,CAAC,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,CAAA;IAEvB;;;;;OAKG;IACH,KAAK,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,cAAc,GAAG,CAAC,CAAA;IAEnD;;;;;OAKG;IACH,WAAW,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,GAAG,CAAC,CAAA;IAExD;;;;;OAKG;IACH,aAAa,CAAC,UAAU,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,GAAG,CAAC,CAAA;IAEpE;;;;;OAKG;IACH,KAAK,CAAC,MAAM,EAAE,eAAe,EAAE,EAAE,KAAK,EAAE,aAAa,GAAG,CAAC,CAAA;IAEzD;;;;;;;;;;OAUG;IACH,YAAY,CACV,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,aAAa,GACnB,CAAC,CAAA;IAEJ;;;;;OAKG;IACH,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,cAAc,GAAG,CAAC,CAAA;IAEhD;;;;;OAKG;IACH,KAAK,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,GAAG,CAAC,CAAA;IAEpD;;;;;OAKG;IACH,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,GAAG,CAAC,CAAA;IAE3C;;;OAGG;IACH,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAA;CAC/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcGiRenderer.js","sourceRoot":"","sources":["../src/AcGiRenderer.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { AcGePoint3dLike, AcGeVector3dLike } from '@mlightcad/geometry-engine';
|
|
2
|
+
export declare enum AcGiMTextFlowDirection {
|
|
3
|
+
LEFT_TO_RIGHT = 1,
|
|
4
|
+
RIGHT_TO_LEFT = 2,
|
|
5
|
+
TOP_TO_BOTTOM = 3,
|
|
6
|
+
BOTTOM_TO_TOP = 4,
|
|
7
|
+
BY_STYLE = 5
|
|
8
|
+
}
|
|
9
|
+
export declare enum AcGiMTextAttachmentPoint {
|
|
10
|
+
TopLeft = 1,
|
|
11
|
+
TopCenter = 2,
|
|
12
|
+
TopRight = 3,
|
|
13
|
+
MiddleLeft = 4,
|
|
14
|
+
MiddleCenter = 5,
|
|
15
|
+
MiddleRight = 6,
|
|
16
|
+
BottomLeft = 7,
|
|
17
|
+
BottomCenter = 8,
|
|
18
|
+
BottomRight = 9
|
|
19
|
+
}
|
|
20
|
+
export interface AcGiMTextData {
|
|
21
|
+
text: string;
|
|
22
|
+
height: number;
|
|
23
|
+
width: number;
|
|
24
|
+
position: AcGePoint3dLike;
|
|
25
|
+
rotation?: number;
|
|
26
|
+
directionVector?: AcGeVector3dLike;
|
|
27
|
+
attachmentPoint?: AcGiMTextAttachmentPoint;
|
|
28
|
+
drawingDirection?: AcGiMTextFlowDirection;
|
|
29
|
+
lineSpaceFactor?: number;
|
|
30
|
+
widthFactor?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface AcGiBaseTextStyle {
|
|
33
|
+
name: string;
|
|
34
|
+
standardFlag: number;
|
|
35
|
+
fixedTextHeight: number;
|
|
36
|
+
widthFactor: number;
|
|
37
|
+
obliqueAngle: number;
|
|
38
|
+
textGenerationFlag: number;
|
|
39
|
+
lastHeight: number;
|
|
40
|
+
font: string;
|
|
41
|
+
bigFont: string;
|
|
42
|
+
extendedFont?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Text style
|
|
46
|
+
*/
|
|
47
|
+
export interface AcGiTextStyle extends AcGiBaseTextStyle {
|
|
48
|
+
color: number;
|
|
49
|
+
byLayerColor?: number;
|
|
50
|
+
byBlockColor?: number;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=AcGiTextStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file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AAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export var AcGiMTextFlowDirection;
|
|
2
|
+
(function (AcGiMTextFlowDirection) {
|
|
3
|
+
AcGiMTextFlowDirection[AcGiMTextFlowDirection["LEFT_TO_RIGHT"] = 1] = "LEFT_TO_RIGHT";
|
|
4
|
+
AcGiMTextFlowDirection[AcGiMTextFlowDirection["RIGHT_TO_LEFT"] = 2] = "RIGHT_TO_LEFT";
|
|
5
|
+
AcGiMTextFlowDirection[AcGiMTextFlowDirection["TOP_TO_BOTTOM"] = 3] = "TOP_TO_BOTTOM";
|
|
6
|
+
AcGiMTextFlowDirection[AcGiMTextFlowDirection["BOTTOM_TO_TOP"] = 4] = "BOTTOM_TO_TOP";
|
|
7
|
+
AcGiMTextFlowDirection[AcGiMTextFlowDirection["BY_STYLE"] = 5] = "BY_STYLE";
|
|
8
|
+
})(AcGiMTextFlowDirection || (AcGiMTextFlowDirection = {}));
|
|
9
|
+
export var AcGiMTextAttachmentPoint;
|
|
10
|
+
(function (AcGiMTextAttachmentPoint) {
|
|
11
|
+
AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["TopLeft"] = 1] = "TopLeft";
|
|
12
|
+
AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["TopCenter"] = 2] = "TopCenter";
|
|
13
|
+
AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["TopRight"] = 3] = "TopRight";
|
|
14
|
+
AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["MiddleLeft"] = 4] = "MiddleLeft";
|
|
15
|
+
AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["MiddleCenter"] = 5] = "MiddleCenter";
|
|
16
|
+
AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["MiddleRight"] = 6] = "MiddleRight";
|
|
17
|
+
AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["BottomLeft"] = 7] = "BottomLeft";
|
|
18
|
+
AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["BottomCenter"] = 8] = "BottomCenter";
|
|
19
|
+
AcGiMTextAttachmentPoint[AcGiMTextAttachmentPoint["BottomRight"] = 9] = "BottomRight";
|
|
20
|
+
})(AcGiMTextAttachmentPoint || (AcGiMTextAttachmentPoint = {}));
|
|
21
|
+
//# sourceMappingURL=AcGiTextStyle.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AcGePoint2d, AcGePoint3d } from '@mlightcad/geometry-engine';
|
|
2
|
+
export declare enum AcGiRenderMode {
|
|
3
|
+
OPTIMIZED_2D = 0,// classic 2D
|
|
4
|
+
WIREFRAME = 1,
|
|
5
|
+
HIDDEN_LINE = 2,
|
|
6
|
+
FLAT_SHADED = 3,
|
|
7
|
+
GOURAUD_SHADED = 4,
|
|
8
|
+
FLAT_SHADED_WITH_WIREFRAME = 5,
|
|
9
|
+
GOURAUD_SHADED_WITH_WIREFRAME = 6
|
|
10
|
+
}
|
|
11
|
+
export declare enum AcGiOrthographicType {
|
|
12
|
+
NON_ORTHOGRAPHIC = 0,
|
|
13
|
+
TOP = 1,
|
|
14
|
+
BOTTOM = 2,
|
|
15
|
+
FRONT = 3,
|
|
16
|
+
BACK = 4,
|
|
17
|
+
LEFT = 5,
|
|
18
|
+
RIGHT = 6
|
|
19
|
+
}
|
|
20
|
+
export declare enum AcGiDefaultLightingType {
|
|
21
|
+
ONE_DISTANT_LIGHT = 0,
|
|
22
|
+
TWO_DISTANT_LIGHTS = 1
|
|
23
|
+
}
|
|
24
|
+
export interface AcGiView {
|
|
25
|
+
center: AcGePoint2d;
|
|
26
|
+
viewDirectionFromTarget: AcGePoint3d;
|
|
27
|
+
viewTarget: AcGePoint3d;
|
|
28
|
+
lensLength: number;
|
|
29
|
+
frontClippingPlane: number;
|
|
30
|
+
backClippingPlane: number;
|
|
31
|
+
viewHeight: number;
|
|
32
|
+
viewTwistAngle: number;
|
|
33
|
+
frozenLayers: string[];
|
|
34
|
+
styleSheet: string;
|
|
35
|
+
renderMode: AcGiRenderMode;
|
|
36
|
+
viewMode: number;
|
|
37
|
+
ucsIconSetting: number;
|
|
38
|
+
ucsOrigin: AcGePoint3d;
|
|
39
|
+
ucsXAxis: AcGePoint3d;
|
|
40
|
+
ucsYAxis: AcGePoint3d;
|
|
41
|
+
orthographicType: AcGiOrthographicType;
|
|
42
|
+
shadePlotSetting: number;
|
|
43
|
+
shadePlotObjectId?: string;
|
|
44
|
+
visualStyleObjectId?: string;
|
|
45
|
+
isDefaultLightingOn: boolean;
|
|
46
|
+
defaultLightingType: AcGiDefaultLightingType;
|
|
47
|
+
brightness: number;
|
|
48
|
+
contrast: number;
|
|
49
|
+
ambientColor?: number;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=AcGiView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcGiView.d.ts","sourceRoot":"","sources":["../src/AcGiView.ts"],"names":[],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AAQ,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB"}
|
package/lib/AcGiView.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export var AcGiRenderMode;
|
|
2
|
+
(function (AcGiRenderMode) {
|
|
3
|
+
AcGiRenderMode[AcGiRenderMode["OPTIMIZED_2D"] = 0] = "OPTIMIZED_2D";
|
|
4
|
+
AcGiRenderMode[AcGiRenderMode["WIREFRAME"] = 1] = "WIREFRAME";
|
|
5
|
+
AcGiRenderMode[AcGiRenderMode["HIDDEN_LINE"] = 2] = "HIDDEN_LINE";
|
|
6
|
+
AcGiRenderMode[AcGiRenderMode["FLAT_SHADED"] = 3] = "FLAT_SHADED";
|
|
7
|
+
AcGiRenderMode[AcGiRenderMode["GOURAUD_SHADED"] = 4] = "GOURAUD_SHADED";
|
|
8
|
+
AcGiRenderMode[AcGiRenderMode["FLAT_SHADED_WITH_WIREFRAME"] = 5] = "FLAT_SHADED_WITH_WIREFRAME";
|
|
9
|
+
AcGiRenderMode[AcGiRenderMode["GOURAUD_SHADED_WITH_WIREFRAME"] = 6] = "GOURAUD_SHADED_WITH_WIREFRAME";
|
|
10
|
+
})(AcGiRenderMode || (AcGiRenderMode = {}));
|
|
11
|
+
export var AcGiOrthographicType;
|
|
12
|
+
(function (AcGiOrthographicType) {
|
|
13
|
+
AcGiOrthographicType[AcGiOrthographicType["NON_ORTHOGRAPHIC"] = 0] = "NON_ORTHOGRAPHIC";
|
|
14
|
+
AcGiOrthographicType[AcGiOrthographicType["TOP"] = 1] = "TOP";
|
|
15
|
+
AcGiOrthographicType[AcGiOrthographicType["BOTTOM"] = 2] = "BOTTOM";
|
|
16
|
+
AcGiOrthographicType[AcGiOrthographicType["FRONT"] = 3] = "FRONT";
|
|
17
|
+
AcGiOrthographicType[AcGiOrthographicType["BACK"] = 4] = "BACK";
|
|
18
|
+
AcGiOrthographicType[AcGiOrthographicType["LEFT"] = 5] = "LEFT";
|
|
19
|
+
AcGiOrthographicType[AcGiOrthographicType["RIGHT"] = 6] = "RIGHT";
|
|
20
|
+
})(AcGiOrthographicType || (AcGiOrthographicType = {}));
|
|
21
|
+
export var AcGiDefaultLightingType;
|
|
22
|
+
(function (AcGiDefaultLightingType) {
|
|
23
|
+
AcGiDefaultLightingType[AcGiDefaultLightingType["ONE_DISTANT_LIGHT"] = 0] = "ONE_DISTANT_LIGHT";
|
|
24
|
+
AcGiDefaultLightingType[AcGiDefaultLightingType["TWO_DISTANT_LIGHTS"] = 1] = "TWO_DISTANT_LIGHTS";
|
|
25
|
+
})(AcGiDefaultLightingType || (AcGiDefaultLightingType = {}));
|
|
26
|
+
//# sourceMappingURL=AcGiView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcGiView.js","sourceRoot":"","sources":["../src/AcGiView.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,cAQX;AARD,WAAY,cAAc;IACxB,mEAAgB,CAAA;IAChB,6DAAa,CAAA;IACb,iEAAe,CAAA;IACf,iEAAe,CAAA;IACf,uEAAkB,CAAA;IAClB,+FAA8B,CAAA;IAC9B,qGAAiC,CAAA;AACnC,CAAC,EARW,cAAc,KAAd,cAAc,QAQzB;AAED,MAAM,CAAN,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,uFAAoB,CAAA;IACpB,6DAAO,CAAA;IACP,mEAAU,CAAA;IACV,iEAAS,CAAA;IACT,+DAAQ,CAAA;IACR,+DAAQ,CAAA;IACR,iEAAS,CAAA;AACX,CAAC,EARW,oBAAoB,KAApB,oBAAoB,QAQ/B;AAED,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,+FAAqB,CAAA;IACrB,iGAAsB,CAAA;AACxB,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { AcGeBox2d, AcGePoint3d } from '@mlightcad/geometry-engine';
|
|
2
|
+
/**
|
|
3
|
+
* This class ised used to pass back information to the user about the viewing characteristics of the
|
|
4
|
+
* current viewport.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AcGiViewport {
|
|
7
|
+
private _centerPoint;
|
|
8
|
+
private _height;
|
|
9
|
+
private _width;
|
|
10
|
+
private _viewCenter;
|
|
11
|
+
private _viewHeight;
|
|
12
|
+
private _number;
|
|
13
|
+
private _id;
|
|
14
|
+
private _groupId;
|
|
15
|
+
constructor();
|
|
16
|
+
/**
|
|
17
|
+
* The viewport ID number. If the viewport is inactive, -1 is returned.
|
|
18
|
+
*/
|
|
19
|
+
get number(): number;
|
|
20
|
+
set number(value: number);
|
|
21
|
+
/**
|
|
22
|
+
* The id of the viewport.
|
|
23
|
+
*/
|
|
24
|
+
get id(): string;
|
|
25
|
+
set id(value: string);
|
|
26
|
+
/**
|
|
27
|
+
* The id of the group which this viewport belongs to.
|
|
28
|
+
*/
|
|
29
|
+
get groupId(): string;
|
|
30
|
+
set groupId(value: string);
|
|
31
|
+
/**
|
|
32
|
+
* The center point of the viewport entity in WCS coordinates (within Paper Space).
|
|
33
|
+
*/
|
|
34
|
+
get centerPoint(): AcGePoint3d;
|
|
35
|
+
set centerPoint(value: AcGePoint3d);
|
|
36
|
+
/**
|
|
37
|
+
* The height of the viewport entity's window in drawing units.
|
|
38
|
+
*/
|
|
39
|
+
get height(): number;
|
|
40
|
+
set height(value: number);
|
|
41
|
+
/**
|
|
42
|
+
* The width of the viewport entity's window in drawing units. This is the width in Paper Space
|
|
43
|
+
* of the viewport itself, not the width of the Model Space view within the viewport.
|
|
44
|
+
*/
|
|
45
|
+
get width(): number;
|
|
46
|
+
set width(value: number);
|
|
47
|
+
/**
|
|
48
|
+
* The bounding box (in world coordinate system coordinates) of the viewport.
|
|
49
|
+
*/
|
|
50
|
+
get box(): AcGeBox2d;
|
|
51
|
+
/**
|
|
52
|
+
* The view center (in display coordinate system coordinates) of the view in the viewport.
|
|
53
|
+
*/
|
|
54
|
+
get viewCenter(): AcGePoint3d;
|
|
55
|
+
set viewCenter(value: AcGePoint3d);
|
|
56
|
+
/**
|
|
57
|
+
* The height (in display coordinate system coordinates) of the Model Space view within the viewport.
|
|
58
|
+
* Zooming the view out within the viewport increases this value and zooming in decreases this value.
|
|
59
|
+
*/
|
|
60
|
+
get viewHeight(): number;
|
|
61
|
+
set viewHeight(value: number);
|
|
62
|
+
/**
|
|
63
|
+
* The width (in display coordinate system coordinates) of the Model Space view within the viewport.
|
|
64
|
+
* This is one computed property based on 'viewHeight' and viewport ratio of width and height.
|
|
65
|
+
*/
|
|
66
|
+
get viewWidth(): number;
|
|
67
|
+
/**
|
|
68
|
+
* The bounding box (in display coordinate system coordinates) of the Model Space view within the viewport.
|
|
69
|
+
*/
|
|
70
|
+
get viewBox(): AcGeBox2d;
|
|
71
|
+
/**
|
|
72
|
+
* Clone this viewport
|
|
73
|
+
* @returns Return the cloned instance of this viewport
|
|
74
|
+
*/
|
|
75
|
+
clone(): AcGiViewport;
|
|
76
|
+
/**
|
|
77
|
+
* Copy the property values of the passed viewport to this viewport.
|
|
78
|
+
* @param viewport Input one viewport instance
|
|
79
|
+
* @returns Return this viewport
|
|
80
|
+
*/
|
|
81
|
+
copy(viewport: AcGiViewport): this;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=AcGiViewport.d.ts.map
|
|
@@ -0,0 +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,MAAM,CADnB;IACD,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAEnB;IAED;;OAEG;IACH,IAAI,OAAO,IAGQ,MAAM,CADxB;IACD,IAAI,OAAO,CAAC,KAAK,EAAE,MAAM,EAExB;IAED;;OAEG;IACH,IAAI,WAAW,IAGQ,WAAW,CADjC;IACD,IAAI,WAAW,CAAC,KAAK,EAAE,WAAW,EAEjC;IAED;;OAEG;IACH,IAAI,MAAM,IAGQ,MAAM,CADvB;IACD,IAAI,MAAM,CAAC,KAAK,EAAE,MAAM,EAEvB;IAED;;;OAGG;IACH,IAAI,KAAK,IAGQ,MAAM,CADtB;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAEtB;IAED;;OAEG;IACH,IAAI,GAAG,cAON;IAED;;OAEG;IACH,IAAI,UAAU,IAGQ,WAAW,CADhC;IACD,IAAI,UAAU,CAAC,KAAK,EAAE,WAAW,EAEhC;IAED;;;OAGG;IACH,IAAI,UAAU,IAGQ,MAAM,CAD3B;IACD,IAAI,UAAU,CAAC,KAAK,EAAE,MAAM,EAE3B;IAED;;;OAGG;IACH,IAAI,SAAS,WAEZ;IAED;;OAEG;IACH,IAAI,OAAO,cAOV;IAED;;;OAGG;IACH,KAAK;IAaL;;;;OAIG;IACH,IAAI,CAAC,QAAQ,EAAE,YAAY;CAW5B"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { AcGeBox2d, AcGePoint3d } from '@mlightcad/geometry-engine';
|
|
2
|
+
/**
|
|
3
|
+
* This class ised used to pass back information to the user about the viewing characteristics of the
|
|
4
|
+
* current viewport.
|
|
5
|
+
*/
|
|
6
|
+
var AcGiViewport = /** @class */ (function () {
|
|
7
|
+
function AcGiViewport() {
|
|
8
|
+
this._number = -1;
|
|
9
|
+
this._id = '';
|
|
10
|
+
this._groupId = '';
|
|
11
|
+
this._centerPoint = new AcGePoint3d();
|
|
12
|
+
this._height = 0;
|
|
13
|
+
this._width = 0;
|
|
14
|
+
this._viewCenter = new AcGePoint3d();
|
|
15
|
+
this._viewHeight = 0;
|
|
16
|
+
}
|
|
17
|
+
Object.defineProperty(AcGiViewport.prototype, "number", {
|
|
18
|
+
/**
|
|
19
|
+
* The viewport ID number. If the viewport is inactive, -1 is returned.
|
|
20
|
+
*/
|
|
21
|
+
get: function () {
|
|
22
|
+
return this._number;
|
|
23
|
+
},
|
|
24
|
+
set: function (value) {
|
|
25
|
+
this._number = value;
|
|
26
|
+
},
|
|
27
|
+
enumerable: false,
|
|
28
|
+
configurable: true
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(AcGiViewport.prototype, "id", {
|
|
31
|
+
/**
|
|
32
|
+
* The id of the viewport.
|
|
33
|
+
*/
|
|
34
|
+
get: function () {
|
|
35
|
+
return this._id;
|
|
36
|
+
},
|
|
37
|
+
set: function (value) {
|
|
38
|
+
this._id = value;
|
|
39
|
+
},
|
|
40
|
+
enumerable: false,
|
|
41
|
+
configurable: true
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(AcGiViewport.prototype, "groupId", {
|
|
44
|
+
/**
|
|
45
|
+
* The id of the group which this viewport belongs to.
|
|
46
|
+
*/
|
|
47
|
+
get: function () {
|
|
48
|
+
return this._groupId;
|
|
49
|
+
},
|
|
50
|
+
set: function (value) {
|
|
51
|
+
this._groupId = value;
|
|
52
|
+
},
|
|
53
|
+
enumerable: false,
|
|
54
|
+
configurable: true
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(AcGiViewport.prototype, "centerPoint", {
|
|
57
|
+
/**
|
|
58
|
+
* The center point of the viewport entity in WCS coordinates (within Paper Space).
|
|
59
|
+
*/
|
|
60
|
+
get: function () {
|
|
61
|
+
return this._centerPoint;
|
|
62
|
+
},
|
|
63
|
+
set: function (value) {
|
|
64
|
+
this._centerPoint.copy(value);
|
|
65
|
+
},
|
|
66
|
+
enumerable: false,
|
|
67
|
+
configurable: true
|
|
68
|
+
});
|
|
69
|
+
Object.defineProperty(AcGiViewport.prototype, "height", {
|
|
70
|
+
/**
|
|
71
|
+
* The height of the viewport entity's window in drawing units.
|
|
72
|
+
*/
|
|
73
|
+
get: function () {
|
|
74
|
+
return this._height;
|
|
75
|
+
},
|
|
76
|
+
set: function (value) {
|
|
77
|
+
this._height = value;
|
|
78
|
+
},
|
|
79
|
+
enumerable: false,
|
|
80
|
+
configurable: true
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(AcGiViewport.prototype, "width", {
|
|
83
|
+
/**
|
|
84
|
+
* The width of the viewport entity's window in drawing units. This is the width in Paper Space
|
|
85
|
+
* of the viewport itself, not the width of the Model Space view within the viewport.
|
|
86
|
+
*/
|
|
87
|
+
get: function () {
|
|
88
|
+
return this._width;
|
|
89
|
+
},
|
|
90
|
+
set: function (value) {
|
|
91
|
+
this._width = value;
|
|
92
|
+
},
|
|
93
|
+
enumerable: false,
|
|
94
|
+
configurable: true
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(AcGiViewport.prototype, "box", {
|
|
97
|
+
/**
|
|
98
|
+
* The bounding box (in world coordinate system coordinates) of the viewport.
|
|
99
|
+
*/
|
|
100
|
+
get: function () {
|
|
101
|
+
var box = new AcGeBox2d();
|
|
102
|
+
box.setFromCenterAndSize(this.centerPoint, {
|
|
103
|
+
x: this.width,
|
|
104
|
+
y: this.height
|
|
105
|
+
});
|
|
106
|
+
return box;
|
|
107
|
+
},
|
|
108
|
+
enumerable: false,
|
|
109
|
+
configurable: true
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(AcGiViewport.prototype, "viewCenter", {
|
|
112
|
+
/**
|
|
113
|
+
* The view center (in display coordinate system coordinates) of the view in the viewport.
|
|
114
|
+
*/
|
|
115
|
+
get: function () {
|
|
116
|
+
return this._viewCenter;
|
|
117
|
+
},
|
|
118
|
+
set: function (value) {
|
|
119
|
+
this._viewCenter.copy(value);
|
|
120
|
+
},
|
|
121
|
+
enumerable: false,
|
|
122
|
+
configurable: true
|
|
123
|
+
});
|
|
124
|
+
Object.defineProperty(AcGiViewport.prototype, "viewHeight", {
|
|
125
|
+
/**
|
|
126
|
+
* The height (in display coordinate system coordinates) of the Model Space view within the viewport.
|
|
127
|
+
* Zooming the view out within the viewport increases this value and zooming in decreases this value.
|
|
128
|
+
*/
|
|
129
|
+
get: function () {
|
|
130
|
+
return this._viewHeight;
|
|
131
|
+
},
|
|
132
|
+
set: function (value) {
|
|
133
|
+
this._viewHeight = value;
|
|
134
|
+
},
|
|
135
|
+
enumerable: false,
|
|
136
|
+
configurable: true
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(AcGiViewport.prototype, "viewWidth", {
|
|
139
|
+
/**
|
|
140
|
+
* The width (in display coordinate system coordinates) of the Model Space view within the viewport.
|
|
141
|
+
* This is one computed property based on 'viewHeight' and viewport ratio of width and height.
|
|
142
|
+
*/
|
|
143
|
+
get: function () {
|
|
144
|
+
return this.viewHeight * (this.width / this.height);
|
|
145
|
+
},
|
|
146
|
+
enumerable: false,
|
|
147
|
+
configurable: true
|
|
148
|
+
});
|
|
149
|
+
Object.defineProperty(AcGiViewport.prototype, "viewBox", {
|
|
150
|
+
/**
|
|
151
|
+
* The bounding box (in display coordinate system coordinates) of the Model Space view within the viewport.
|
|
152
|
+
*/
|
|
153
|
+
get: function () {
|
|
154
|
+
var box = new AcGeBox2d();
|
|
155
|
+
box.setFromCenterAndSize(this.viewCenter, {
|
|
156
|
+
x: this.viewWidth,
|
|
157
|
+
y: this.viewHeight
|
|
158
|
+
});
|
|
159
|
+
return box;
|
|
160
|
+
},
|
|
161
|
+
enumerable: false,
|
|
162
|
+
configurable: true
|
|
163
|
+
});
|
|
164
|
+
/**
|
|
165
|
+
* Clone this viewport
|
|
166
|
+
* @returns Return the cloned instance of this viewport
|
|
167
|
+
*/
|
|
168
|
+
AcGiViewport.prototype.clone = function () {
|
|
169
|
+
var viewport = new AcGiViewport();
|
|
170
|
+
viewport.id = this.id;
|
|
171
|
+
viewport.groupId = this.groupId;
|
|
172
|
+
viewport.number = this.number;
|
|
173
|
+
viewport.centerPoint.copy(this.centerPoint);
|
|
174
|
+
viewport.height = this.height;
|
|
175
|
+
viewport.width = this.width;
|
|
176
|
+
viewport.viewCenter.copy(this.viewCenter);
|
|
177
|
+
viewport.viewHeight = this.viewHeight;
|
|
178
|
+
return viewport;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Copy the property values of the passed viewport to this viewport.
|
|
182
|
+
* @param viewport Input one viewport instance
|
|
183
|
+
* @returns Return this viewport
|
|
184
|
+
*/
|
|
185
|
+
AcGiViewport.prototype.copy = function (viewport) {
|
|
186
|
+
this.id = viewport.id;
|
|
187
|
+
this.groupId = viewport.groupId;
|
|
188
|
+
this.number = viewport.number;
|
|
189
|
+
this.centerPoint.copy(viewport.centerPoint);
|
|
190
|
+
this.height = viewport.height;
|
|
191
|
+
this.width = viewport.width;
|
|
192
|
+
this.viewCenter.copy(viewport.viewCenter);
|
|
193
|
+
this.viewHeight = viewport.viewHeight;
|
|
194
|
+
return this;
|
|
195
|
+
};
|
|
196
|
+
return AcGiViewport;
|
|
197
|
+
}());
|
|
198
|
+
export { AcGiViewport };
|
|
199
|
+
//# sourceMappingURL=AcGiViewport.js.map
|
|
@@ -0,0 +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,QAA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4
|
+
export * from './AcGiLineStyle';
|
|
5
|
+
export * from './AcGiTextStyle';
|
|
6
|
+
export * from './AcGiPointStyle';
|
|
7
|
+
export * from './AcGiEntity';
|
|
8
|
+
export * from './AcGiView';
|
|
9
|
+
export * from './AcGiViewport';
|
|
10
|
+
export * from './AcGiRenderer';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './AcGiArrowType';
|
|
2
|
+
export * from './AcGiHatchStyle';
|
|
3
|
+
export * from './AcGiImageStyle';
|
|
4
|
+
export * from './AcGiLineStyle';
|
|
5
|
+
export * from './AcGiTextStyle';
|
|
6
|
+
export * from './AcGiPointStyle';
|
|
7
|
+
export * from './AcGiEntity';
|
|
8
|
+
export * from './AcGiView';
|
|
9
|
+
export * from './AcGiViewport';
|
|
10
|
+
export * from './AcGiRenderer';
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mlightcad/graphic-interface",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"autocad",
|
|
7
|
+
"cad",
|
|
8
|
+
"dwg",
|
|
9
|
+
"dxf",
|
|
10
|
+
"mlight",
|
|
11
|
+
"mlightcad",
|
|
12
|
+
"objecarx",
|
|
13
|
+
"realdwg"
|
|
14
|
+
],
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"lib",
|
|
18
|
+
"README.md",
|
|
19
|
+
"package.json"
|
|
20
|
+
],
|
|
21
|
+
"main": "./dist/graphic-interface.umd.cjs",
|
|
22
|
+
"module": "./dist/graphic-interface.js",
|
|
23
|
+
"types": "./lib/index.d.ts",
|
|
24
|
+
"exports": {
|
|
25
|
+
"types": "./lib/index.d.ts",
|
|
26
|
+
"import": "./dist/graphic-interface.js",
|
|
27
|
+
"require": "./dist/graphic-interface.umd.cjs"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"@mlightcad/geometry-engine": "0.0.1"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"clean": "rimraf dist lib tsconfig.tsbuildinfo",
|
|
34
|
+
"build": "tsc && vite build",
|
|
35
|
+
"lint": "eslint src/",
|
|
36
|
+
"lint:fix": "eslint --fix --quiet src/"
|
|
37
|
+
}
|
|
38
|
+
}
|