@mlightcad/graphic-interface 3.1.4 → 3.2.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/lib/AcGiEntity.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface AcGiEntity {
|
|
|
9
9
|
* of precision. If passing 64-bit floating vertices data to GPU directly, it will
|
|
10
10
|
* destroy number preciesion.
|
|
11
11
|
*
|
|
12
|
-
* So we adopt a simpler but effective version of the
|
|
12
|
+
* So we adopt a simpler but effective version of the "origin-shift" idea. Recompute
|
|
13
13
|
* geometry using re-centered coordinates and apply offset to its position. The base
|
|
14
14
|
* point is extractly offset value.
|
|
15
15
|
*
|
package/lib/AcGiHatchStyle.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AcGePoint2dLike } from '@mlightcad/geometry-engine';
|
|
2
2
|
export interface AcGiHatchPatternLine {
|
|
3
3
|
angle: number;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
base: AcGePoint2dLike;
|
|
5
|
+
offset: AcGePoint2dLike;
|
|
6
|
+
dashLengths: number[];
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Hatch style
|
|
@@ -11,6 +11,6 @@ export interface AcGiHatchPatternLine {
|
|
|
11
11
|
export interface AcGiHatchStyle {
|
|
12
12
|
solidFill: boolean;
|
|
13
13
|
patternAngle: number;
|
|
14
|
-
|
|
14
|
+
definitionLines: AcGiHatchPatternLine[];
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=AcGiHatchStyle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcGiHatchStyle.d.ts","sourceRoot":"","sources":["../src/AcGiHatchStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,
|
|
1
|
+
{"version":3,"file":"AcGiHatchStyle.d.ts","sourceRoot":"","sources":["../src/AcGiHatchStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,eAAe,CAAA;IACrB,MAAM,EAAE,eAAe,CAAA;IACvB,WAAW,EAAE,MAAM,EAAE,CAAA;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,oBAAoB,EAAE,CAAA;CACxC"}
|
package/lib/AcGiPointStyle.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ export interface AcGiPointStyle {
|
|
|
8
8
|
displayMode: number;
|
|
9
9
|
/**
|
|
10
10
|
* Point display size.
|
|
11
|
-
* - 0:
|
|
12
|
-
* - > 0:
|
|
13
|
-
* - < 0:
|
|
11
|
+
* - 0: Creates a point at 5 percent of the drawing area height
|
|
12
|
+
* - > 0: Specifies an absolute size
|
|
13
|
+
* - < 0: Specifies a percentage of the viewport size
|
|
14
14
|
*/
|
|
15
15
|
displaySize: number;
|
|
16
16
|
}
|
package/lib/AcGiRenderer.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface AcGiRenderer<T extends AcGiEntity = AcGiEntity> {
|
|
|
17
17
|
* of precision. If passing 64-bit floating vertices data to GPU directly, it will
|
|
18
18
|
* destroy number preciesion.
|
|
19
19
|
*
|
|
20
|
-
* So we adopt a simpler but effective version of the
|
|
20
|
+
* So we adopt a simpler but effective version of the "origin-shift" idea. Recompute
|
|
21
21
|
* geometry using re-centered coordinates and apply offset to its position. The base
|
|
22
22
|
* point is extractly offset value.
|
|
23
23
|
*
|
|
@@ -19,23 +19,23 @@ export interface AcGiSubEntityTraits {
|
|
|
19
19
|
color: AcCmColor;
|
|
20
20
|
/**
|
|
21
21
|
* Line type (pattern) used for drawing edges / curves of the entity.
|
|
22
|
-
* Corresponds to AutoCAD
|
|
22
|
+
* Corresponds to AutoCAD's `AcGiLineStyle` (or linetypeTableRecord).
|
|
23
23
|
*/
|
|
24
24
|
lineType: AcGiLineStyle;
|
|
25
25
|
/**
|
|
26
26
|
* Scale factor applied to the lineType.
|
|
27
27
|
* Changes how dense or stretched the pattern appears. (Equivalent to
|
|
28
|
-
* AutoCAD
|
|
28
|
+
* AutoCAD's "Linetype Scale" / ltScale).
|
|
29
29
|
*/
|
|
30
30
|
lineTypeScale: number;
|
|
31
31
|
/**
|
|
32
|
-
* Lineweight for the entity
|
|
33
|
-
* Typically corresponds to one of AutoCAD
|
|
32
|
+
* Lineweight for the entity's drawing (i.e. the visual thickness of lines).
|
|
33
|
+
* Typically corresponds to one of AutoCAD's predefined lineweights.
|
|
34
34
|
*/
|
|
35
35
|
lineWeight: AcGiLineWeight;
|
|
36
36
|
/**
|
|
37
37
|
* Fill type / hatch style for the entity (if applicable).
|
|
38
|
-
* Corresponds to AutoCAD
|
|
38
|
+
* Corresponds to AutoCAD's `AcGiHatchStyle`. For example, controlling whether
|
|
39
39
|
* the sub‑entity is filled or only outlined.
|
|
40
40
|
*/
|
|
41
41
|
fillType: AcGiHatchStyle;
|
|
@@ -47,7 +47,7 @@ export interface AcGiSubEntityTraits {
|
|
|
47
47
|
/**
|
|
48
48
|
* Thickness (extrusion) of the entity along the positive Z axis in WCS units.
|
|
49
49
|
* Only affects certain primitive types (e.g. polylines, arcs, circles, SHX‑text),
|
|
50
|
-
* similarly to AutoCAD
|
|
50
|
+
* similarly to AutoCAD's "thickness" property.
|
|
51
51
|
*/
|
|
52
52
|
thickness: number;
|
|
53
53
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mlightcad/graphic-interface",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"require": "./dist/graphic-interface.umd.cjs"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@mlightcad/
|
|
36
|
-
"@mlightcad/
|
|
35
|
+
"@mlightcad/geometry-engine": "3.1.3",
|
|
36
|
+
"@mlightcad/common": "1.3.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"clean": "rimraf dist lib tsconfig.tsbuildinfo",
|