@buerli.io/core 0.13.1-beta.3 → 0.13.1-beta.5.apiversion
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/build/cjs/geometry/ThreeGeometryCreator.js +28 -28
- package/build/cjs/graphic/filters.js +11 -11
- package/build/cjs/index.js +1 -0
- package/build/cjs/re-export.js +29 -0
- package/build/cjs/store/states/selection.js +6 -6
- package/build/cjs/types/index.js +17 -3
- package/build/cjs/utils/Measure.js +56 -56
- package/build/esm/geometry/ThreeGeometryCreator.js +1 -1
- package/build/esm/graphic/filters.js +1 -1
- package/build/esm/index.js +1 -0
- package/build/esm/re-export.js +23 -0
- package/build/esm/store/states/selection.js +6 -6
- package/build/esm/store/states/structure.js +1 -1
- package/build/esm/types/index.js +15 -3
- package/build/esm/utils/Measure.js +1 -1
- package/build/types/geometry/ThreeGeometryCreator.d.ts +12 -12
- package/build/types/graphic/filters.d.ts +1 -1
- package/build/types/index.d.ts +1 -0
- package/build/types/re-export.d.ts +70 -0
- package/build/types/store/states/geometry.d.ts +1 -2
- package/build/types/store/states/graphic.d.ts +1 -2
- package/build/types/store/states/plugin.d.ts +1 -1
- package/build/types/store/states/selection.d.ts +13 -6
- package/build/types/store/states/structure.d.ts +1 -1
- package/build/types/types/InteractionInfo.d.ts +1 -2
- package/build/types/types/index.d.ts +6 -3
- package/package.json +4 -3
- package/build/cjs/types/IGraphicPackage.js +0 -46
- package/build/cjs/types/IStructurePatch.js +0 -2
- package/build/cjs/types/IStructureTree.js +0 -28
- package/build/esm/types/IGraphicPackage.js +0 -43
- package/build/esm/types/IStructurePatch.js +0 -1
- package/build/esm/types/IStructureTree.js +0 -24
- package/build/types/types/IGraphicPackage.d.ts +0 -160
- package/build/types/types/IStructurePatch.d.ts +0 -6
- package/build/types/types/IStructureTree.d.ts +0 -80
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { ObjectID } from './IStructureTree';
|
|
2
|
-
export declare type GraphicID = number;
|
|
3
|
-
export interface IGraphicPackage {
|
|
4
|
-
containers: IGraphicContainer[];
|
|
5
|
-
properties: IGraphicPackageProperties;
|
|
6
|
-
}
|
|
7
|
-
export interface IGraphicPackageProperties {
|
|
8
|
-
version: number;
|
|
9
|
-
}
|
|
10
|
-
export interface IGraphicContainer {
|
|
11
|
-
/** The CADEntity id */
|
|
12
|
-
id: ObjectID;
|
|
13
|
-
/** The CC_Solid id */
|
|
14
|
-
owner: ObjectID;
|
|
15
|
-
type: ContainerType;
|
|
16
|
-
properties: IGraphicContainerProps;
|
|
17
|
-
meshes: IGraphicMesh[];
|
|
18
|
-
lines: IGraphicLine[];
|
|
19
|
-
vertices: IGraphicVertex[];
|
|
20
|
-
edges: IGraphicEdge[];
|
|
21
|
-
arcs: IGraphicArc[];
|
|
22
|
-
cones: IGraphicCone[];
|
|
23
|
-
coordinateSystems: IGraphicCoordSys[];
|
|
24
|
-
namedPoints: IGraphicNamedPoint[];
|
|
25
|
-
labels: IGraphicLabel[];
|
|
26
|
-
}
|
|
27
|
-
export interface IGraphicContainerProps {
|
|
28
|
-
material: IGraphicMaterial;
|
|
29
|
-
layer: string;
|
|
30
|
-
min: number[];
|
|
31
|
-
max: number[];
|
|
32
|
-
chordHeightTol: number;
|
|
33
|
-
angleTol: number;
|
|
34
|
-
}
|
|
35
|
-
export interface IGraphicElement {
|
|
36
|
-
id: GraphicID;
|
|
37
|
-
properties: any;
|
|
38
|
-
}
|
|
39
|
-
export interface IGraphicCoordSys extends IGraphicElement {
|
|
40
|
-
origin: number[];
|
|
41
|
-
xAxis: number[];
|
|
42
|
-
yAxis: number[];
|
|
43
|
-
zAxis: number[];
|
|
44
|
-
}
|
|
45
|
-
export interface IGraphicNamedPoint extends IGraphicElement {
|
|
46
|
-
origin: number[];
|
|
47
|
-
}
|
|
48
|
-
export interface IGraphicLabel extends IGraphicElement {
|
|
49
|
-
origin: number[];
|
|
50
|
-
label: string;
|
|
51
|
-
fontSize: number;
|
|
52
|
-
}
|
|
53
|
-
export interface IGraphicCone extends IGraphicElement {
|
|
54
|
-
diameterBottom: number;
|
|
55
|
-
origin: number[];
|
|
56
|
-
axis: number[];
|
|
57
|
-
}
|
|
58
|
-
export interface IGraphicArc extends IGraphicElement {
|
|
59
|
-
angle: number;
|
|
60
|
-
radius: number;
|
|
61
|
-
center: number[];
|
|
62
|
-
xAxis: number[];
|
|
63
|
-
zAxis: number[];
|
|
64
|
-
isCircle: boolean;
|
|
65
|
-
pointIds: number[];
|
|
66
|
-
properties: IGraphicLineProperties;
|
|
67
|
-
}
|
|
68
|
-
export interface IGraphicEdge extends IGraphicElement {
|
|
69
|
-
points: number[];
|
|
70
|
-
pointIds: number[];
|
|
71
|
-
properties: IGraphicLineProperties;
|
|
72
|
-
}
|
|
73
|
-
export interface IGraphicLine extends IGraphicElement {
|
|
74
|
-
points: number[];
|
|
75
|
-
pointIds: number[];
|
|
76
|
-
properties: IGraphicLineProperties;
|
|
77
|
-
}
|
|
78
|
-
export interface IGraphicLineProperties {
|
|
79
|
-
material: IGraphicMaterial;
|
|
80
|
-
importName: string;
|
|
81
|
-
}
|
|
82
|
-
export interface IGraphicMesh extends IGraphicElement {
|
|
83
|
-
vertices: number[];
|
|
84
|
-
normals: number[];
|
|
85
|
-
indices: number[];
|
|
86
|
-
loops: number[][];
|
|
87
|
-
properties: IGraphicMeshProperties;
|
|
88
|
-
}
|
|
89
|
-
export interface IGraphicMeshProperties {
|
|
90
|
-
operationId: number;
|
|
91
|
-
surface: IGraphicSurface | IGraphicPlane | IGraphicCylinder | IGraphicCone | IGraphicSphere;
|
|
92
|
-
material: IGraphicMaterial;
|
|
93
|
-
importId: string;
|
|
94
|
-
importName: string;
|
|
95
|
-
}
|
|
96
|
-
export interface IGraphicSurface {
|
|
97
|
-
type: GraphicType.PLANE | GraphicType.CYLINDER | GraphicType.CONE | GraphicType.SPHERE | GraphicType.NURBSSURFACE;
|
|
98
|
-
}
|
|
99
|
-
export interface IGraphicPlane extends IGraphicSurface {
|
|
100
|
-
pointOnPlane: number[];
|
|
101
|
-
normal: number[];
|
|
102
|
-
}
|
|
103
|
-
export interface IGraphicCylinder extends IGraphicSurface {
|
|
104
|
-
origin: number[];
|
|
105
|
-
axis: number[];
|
|
106
|
-
radius: number;
|
|
107
|
-
height: number;
|
|
108
|
-
}
|
|
109
|
-
export interface IGraphicCone extends IGraphicSurface {
|
|
110
|
-
origin: number[];
|
|
111
|
-
axis: number[];
|
|
112
|
-
radiusBottom: number;
|
|
113
|
-
radiusTop: number;
|
|
114
|
-
height: number;
|
|
115
|
-
}
|
|
116
|
-
export interface IGraphicSphere extends IGraphicSurface {
|
|
117
|
-
radius: number;
|
|
118
|
-
}
|
|
119
|
-
export declare enum GraphicType {
|
|
120
|
-
POINT = "point",
|
|
121
|
-
LINE = "line",
|
|
122
|
-
ARC = "arc",
|
|
123
|
-
CIRCLE = "circle",
|
|
124
|
-
PLANE = "plane",
|
|
125
|
-
CYLINDER = "cylinder",
|
|
126
|
-
CONE = "cone",
|
|
127
|
-
SPHERE = "sphere",
|
|
128
|
-
NURBSCURVE = "nurbsCurve",
|
|
129
|
-
NURBSSURFACE = "nurbsSurface",
|
|
130
|
-
NONE = "none",
|
|
131
|
-
BREP = "brep",
|
|
132
|
-
POLYBREP = "polyBrep",
|
|
133
|
-
CURVEARRAY = "curveArray",
|
|
134
|
-
CURVELINE = "curveLine",
|
|
135
|
-
CURVESPLINE = "curveSpline",
|
|
136
|
-
CURVEARC = "curveArc",
|
|
137
|
-
CURVECIRCLE = "curveCircle",
|
|
138
|
-
CURVEPOINT = "curvePoint",
|
|
139
|
-
LOOP = "loop"
|
|
140
|
-
}
|
|
141
|
-
export declare enum ContainerType {
|
|
142
|
-
NONE = 0,
|
|
143
|
-
BREP = 1,
|
|
144
|
-
CURVEARRAY = 2,
|
|
145
|
-
POLYBREP = 3
|
|
146
|
-
}
|
|
147
|
-
declare type RoA = ReadonlyArray<GraphicType>;
|
|
148
|
-
export declare const MeshTypes: RoA;
|
|
149
|
-
export declare const EdgeTypes: RoA;
|
|
150
|
-
export declare const CurveTypes: RoA;
|
|
151
|
-
export declare const EntityTypes: RoA;
|
|
152
|
-
export declare const PointTypes: RoA;
|
|
153
|
-
export interface IGraphicMaterial {
|
|
154
|
-
color: number[];
|
|
155
|
-
opacity: number;
|
|
156
|
-
}
|
|
157
|
-
export interface IGraphicVertex extends IGraphicElement {
|
|
158
|
-
p: number[];
|
|
159
|
-
}
|
|
160
|
-
export {};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Defines the default structure tree.
|
|
3
|
-
* Should be used to initialize a new structure tree.
|
|
4
|
-
*/
|
|
5
|
-
export declare const DEFAULT_STRUCTURE_TREE: () => IStructureProtocol;
|
|
6
|
-
/** Object Id's in classcad are always >= 1. */
|
|
7
|
-
export declare type ObjectID = number;
|
|
8
|
-
/** Object identifier */
|
|
9
|
-
export declare type ObjectIdent = string;
|
|
10
|
-
/** Zero is no Id in classcad, and no object will exist in the CCDatabase for Id === 0! */
|
|
11
|
-
export declare const NOID = 0;
|
|
12
|
-
export interface IStructureTree {
|
|
13
|
-
[key: string]: IStructureObject;
|
|
14
|
-
}
|
|
15
|
-
export interface IStructureProtocol {
|
|
16
|
-
tree: IStructureTree;
|
|
17
|
-
/** Id of the current root (root part or assembly). Can be zero -->> object does not exist! */
|
|
18
|
-
root: ObjectID;
|
|
19
|
-
/** Id of the current product (root or node in part/assembly container). Can be undefined or zero -->> object does not exist! */
|
|
20
|
-
currentProduct?: ObjectID;
|
|
21
|
-
/**
|
|
22
|
-
* Id of the current node in the expanded assembly tree. Can be undefined or zero -->> object does not exist!
|
|
23
|
-
* @deprecated currentNode will be removed in a future release, use currentInstance instead.
|
|
24
|
-
*/
|
|
25
|
-
currentNode?: ObjectID;
|
|
26
|
-
/** Id of the current instance in the expanded assembly tree. Can be undefined or zero -->> object does not exist! */
|
|
27
|
-
currentInstance?: ObjectID;
|
|
28
|
-
/** Id of the test root. Can be undefined or zero -->> object does not exist! */
|
|
29
|
-
testRoot?: ObjectID;
|
|
30
|
-
}
|
|
31
|
-
export interface IStructureObject {
|
|
32
|
-
name: string;
|
|
33
|
-
class: string;
|
|
34
|
-
id: ObjectID;
|
|
35
|
-
flags: number;
|
|
36
|
-
coordinateSystem?: number[][];
|
|
37
|
-
parent: ObjectID | null;
|
|
38
|
-
children?: ObjectID[];
|
|
39
|
-
members?: {
|
|
40
|
-
[key: string]: IStructureMember;
|
|
41
|
-
};
|
|
42
|
-
geometryIdList?: number[];
|
|
43
|
-
visible?: boolean;
|
|
44
|
-
dimensions?: ObjectID[];
|
|
45
|
-
expressionSet?: ObjectID;
|
|
46
|
-
geometrySet?: ObjectID;
|
|
47
|
-
solids?: number[];
|
|
48
|
-
instances?: ObjectID[];
|
|
49
|
-
instancesNested?: ObjectID[];
|
|
50
|
-
link?: ObjectID;
|
|
51
|
-
}
|
|
52
|
-
export declare enum MemberType {
|
|
53
|
-
ARRAY = "array",
|
|
54
|
-
ID = "id",
|
|
55
|
-
POINT = "point",
|
|
56
|
-
REAL = "real",
|
|
57
|
-
STRING = "string"
|
|
58
|
-
}
|
|
59
|
-
interface IMemberBase {
|
|
60
|
-
type: MemberType;
|
|
61
|
-
expression: string;
|
|
62
|
-
visible: number;
|
|
63
|
-
}
|
|
64
|
-
interface IValueMem<T extends number[] | number | string | PointMemValue> extends IMemberBase {
|
|
65
|
-
value: T;
|
|
66
|
-
}
|
|
67
|
-
export declare type ArrayMem = IValueMem<never> & {
|
|
68
|
-
members: IStructureMember[];
|
|
69
|
-
};
|
|
70
|
-
export declare type IdMem = IValueMem<number>;
|
|
71
|
-
export declare type RealMem = IValueMem<number>;
|
|
72
|
-
export declare type StringMem = IValueMem<string>;
|
|
73
|
-
export declare type PointMem = IValueMem<PointMemValue>;
|
|
74
|
-
export declare type PointMemValue = {
|
|
75
|
-
x: number;
|
|
76
|
-
y: number;
|
|
77
|
-
z: number;
|
|
78
|
-
};
|
|
79
|
-
export declare type IStructureMember = RealMem | StringMem | PointMem | IdMem | ArrayMem;
|
|
80
|
-
export {};
|