@mlightcad/graphic-interface 3.0.10 → 3.0.12
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,4 +1,4 @@
|
|
|
1
|
-
import { AcCmColor } from '@mlightcad/common';
|
|
1
|
+
import { AcCmColor, AcCmTransparency } from '@mlightcad/common';
|
|
2
2
|
import { AcGiHatchStyle } from './AcGiHatchStyle';
|
|
3
3
|
import { AcGiLineStyle } from './AcGiLineStyle';
|
|
4
4
|
/**
|
|
@@ -8,7 +8,8 @@ import { AcGiLineStyle } from './AcGiLineStyle';
|
|
|
8
8
|
export interface AcGiSubEntityTraits {
|
|
9
9
|
/**
|
|
10
10
|
* The RGB color.
|
|
11
|
-
* It resolves layer colors and block colors as needed and converts color index
|
|
11
|
+
* It resolves layer colors and block colors as needed and converts color index
|
|
12
|
+
* to actual RGB color.
|
|
12
13
|
*/
|
|
13
14
|
rgbColor: number;
|
|
14
15
|
/**
|
|
@@ -17,38 +18,41 @@ export interface AcGiSubEntityTraits {
|
|
|
17
18
|
color: AcCmColor;
|
|
18
19
|
/**
|
|
19
20
|
* Line type (pattern) used for drawing edges / curves of the entity.
|
|
20
|
-
* Corresponds to AutoCAD’s `AcGiLineStyle` (or linetypeTableRecord).
|
|
21
|
+
* Corresponds to AutoCAD’s `AcGiLineStyle` (or linetypeTableRecord).
|
|
21
22
|
*/
|
|
22
23
|
lineType: AcGiLineStyle;
|
|
23
24
|
/**
|
|
24
25
|
* Scale factor applied to the lineType.
|
|
25
|
-
* Changes how dense or stretched the pattern appears. (Equivalent to
|
|
26
|
+
* Changes how dense or stretched the pattern appears. (Equivalent to
|
|
27
|
+
* AutoCAD’s “Linetype Scale” / ltScale).
|
|
26
28
|
*/
|
|
27
29
|
lineTypeScale: number;
|
|
28
30
|
/**
|
|
29
31
|
* Lineweight for the entity’s drawing (i.e. the visual thickness of lines).
|
|
30
|
-
* Typically corresponds to one of AutoCAD’s predefined lineweights (e.g.
|
|
32
|
+
* Typically corresponds to one of AutoCAD’s predefined lineweights (e.g.
|
|
33
|
+
* “0.13 mm”, “0.30 mm”, etc.) or “ByLayer/ByBlock”.
|
|
31
34
|
*/
|
|
32
35
|
lineWeight: number;
|
|
33
36
|
/**
|
|
34
37
|
* Fill type / hatch style for the entity (if applicable).
|
|
35
|
-
* Corresponds to AutoCAD’s `AcGiHatchStyle`. For example, controlling whether
|
|
38
|
+
* Corresponds to AutoCAD’s `AcGiHatchStyle`. For example, controlling whether
|
|
39
|
+
* the sub‑entity is filled or only outlined.
|
|
36
40
|
*/
|
|
37
41
|
fillType: AcGiHatchStyle;
|
|
38
42
|
/**
|
|
39
43
|
* Transparency of the entity.
|
|
40
44
|
* A numeric value controlling how transparent (or opaque) the entity is when rendered.
|
|
41
|
-
* In AutoCAD this corresponds to the transparency attribute in SubEntityTraits. :contentReference[oaicite:5]{index=5}
|
|
42
45
|
*/
|
|
43
|
-
transparency:
|
|
46
|
+
transparency: AcCmTransparency;
|
|
44
47
|
/**
|
|
45
48
|
* Thickness (extrusion) of the entity along the positive Z axis in WCS units.
|
|
46
|
-
* Only affects certain primitive types (e.g. polylines, arcs, circles, SHX‑text),
|
|
49
|
+
* Only affects certain primitive types (e.g. polylines, arcs, circles, SHX‑text),
|
|
50
|
+
* similarly to AutoCAD’s “thickness” property.
|
|
47
51
|
*/
|
|
48
52
|
thickness: number;
|
|
49
53
|
/**
|
|
50
54
|
* The name of the layer on which the entity resides.
|
|
51
|
-
* Corresponds to AutoCAD layer name (i.e. current layer in drawing).
|
|
55
|
+
* Corresponds to AutoCAD layer name (i.e. current layer in drawing).
|
|
52
56
|
*/
|
|
53
57
|
layer: string;
|
|
54
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcGiSubEntityTraits.d.ts","sourceRoot":"","sources":["../src/AcGiSubEntityTraits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mlightcad/graphic-interface",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
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/common": "1.2.7",
|
|
36
|
+
"@mlightcad/geometry-engine": "3.0.9"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"clean": "rimraf dist lib tsconfig.tsbuildinfo",
|