@xtctwins/tctwins-core 1.0.30 → 1.0.32
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/dist/tctwins-core.es.js +41031 -29284
- package/dist/tctwins-core.min.es.js +5639 -36
- package/dist/web-ifc-api.js +74136 -0
- package/package.json +2 -2
- package/types/extras/PointerLens/PointerLens.d.ts +100 -98
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsMouseControl.d.ts +4 -4
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsTouchControl.d.ts +4 -4
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +217 -211
- package/types/plugins/XTCLoaderPlugin/XTCLoaderPlugin.d.ts +287 -0
- package/types/plugins/XTCLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/index.d.ts +12 -12
- package/types/viewer/Plugin.d.ts +54 -54
- package/types/viewer/Viewer.d.ts +2 -0
- package/types/viewer/metadata/MetaModel.d.ts +63 -63
- package/types/viewer/scene/Entity.d.ts +392 -392
- package/types/viewer/scene/LineSet/LineSet.d.ts +55 -58
- package/types/viewer/scene/models/SceneModelEntity.d.ts +408 -409
- package/types/viewer/scene/scene/Scene.d.ts +893 -893
- package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +0 -281
- package/types/plugins/XKTLoaderPlugin/index.d.ts +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {Component} from
|
|
2
|
-
|
|
1
|
+
import { Component } from "../Component";
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* A set of 3D line segments.
|
|
@@ -19,7 +18,7 @@ import {Component} from '../Component';
|
|
|
19
18
|
* [[Run this example](/examples/#LineSet_grid)]
|
|
20
19
|
*
|
|
21
20
|
* ````javascript
|
|
22
|
-
* import {Viewer,
|
|
21
|
+
* import {Viewer, XTCLoaderPlugin, LineSet, buildGridGeometry} from "https://cdn.jsdelivr.net/npm/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.min.js";
|
|
23
22
|
*
|
|
24
23
|
* const viewer = new Viewer({
|
|
25
24
|
* canvasId: "myCanvas",
|
|
@@ -32,11 +31,11 @@ import {Component} from '../Component';
|
|
|
32
31
|
* viewer.camera.look = [13.44, 3.31, -14.83];
|
|
33
32
|
* viewer.camera.up = [0.10, 0.98, -0.14];
|
|
34
33
|
*
|
|
35
|
-
* const
|
|
34
|
+
* const xtcLoader = new XTCLoaderPlugin(viewer);
|
|
36
35
|
*
|
|
37
|
-
* const model =
|
|
36
|
+
* const model = xtcLoader.load({
|
|
38
37
|
* id: "myModel",
|
|
39
|
-
* src: "../assets/models/
|
|
38
|
+
* src: "../assets/models/xtc/v8/ifc/Schependomlaan.ifc.xtc",
|
|
40
39
|
* position: [0,1,0],
|
|
41
40
|
* edges: true,
|
|
42
41
|
* saoEnabled: true
|
|
@@ -54,61 +53,59 @@ import {Component} from '../Component';
|
|
|
54
53
|
* ````
|
|
55
54
|
*/
|
|
56
55
|
export declare class LineSet extends Component {
|
|
56
|
+
/**
|
|
57
|
+
* Creates a new LineSet.
|
|
58
|
+
*
|
|
59
|
+
* Registers the LineSet in {@link Scene#lineSets}; causes Scene to fire a "lineSetCreated" event.
|
|
60
|
+
*
|
|
61
|
+
* @constructor
|
|
62
|
+
* @param {Component} [owner] Owner component. When destroyed, the owner will destroy this ````LineSet```` as well.
|
|
63
|
+
* @param {*} [cfg] ````LineSet```` configuration
|
|
64
|
+
* @param {string} [cfg.id] Optional ID, unique among all components in the parent {@link Scene}, generated automatically when omitted.
|
|
65
|
+
* @param {number[]} cfg.positions World-space 3D vertex positions.
|
|
66
|
+
* @param {number[]} [cfg.indices] Indices to connect ````positions```` into line segments. Note that these are separate line segments, not a polyline.
|
|
67
|
+
* @param {number[]} [cfg.color=[0,0,0]] The color of this ````LineSet````. This is both emissive and diffuse.
|
|
68
|
+
* @param {boolean} [cfg.visible=true] Indicates whether or not this ````LineSet```` is visible.
|
|
69
|
+
* @param {number} [cfg.opacity=1.0] ````LineSet````'s initial opacity factor.
|
|
70
|
+
*/
|
|
71
|
+
constructor(owner: Component, cfg?: any);
|
|
57
72
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
* @param {string} [cfg.id] Optional ID, unique among all components in the parent {@link Scene}, generated automatically when omitted.
|
|
67
|
-
* @param {number[]} cfg.positions World-space 3D vertex positions.
|
|
68
|
-
* @param {number[]} [cfg.indices] Indices to connect ````positions```` into line segments. Note that these are separate line segments, not a polyline.
|
|
69
|
-
* @param {number[]} [cfg.color=[0,0,0]] The color of this ````LineSet````. This is both emissive and diffuse.
|
|
70
|
-
* @param {boolean} [cfg.visible=true] Indicates whether or not this ````LineSet```` is visible.
|
|
71
|
-
* @param {number} [cfg.opacity=1.0] ````LineSet````'s initial opacity factor.
|
|
72
|
-
*/
|
|
73
|
-
constructor(owner: Component, cfg?: any);
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Sets if this ````LineSet```` is visible.
|
|
77
|
-
*
|
|
78
|
-
* Default value is ````true````.
|
|
79
|
-
*
|
|
80
|
-
* @param {boolean} visible Set ````true```` to make this ````LineSet```` visible.
|
|
81
|
-
*/
|
|
82
|
-
set visible(visible: boolean);
|
|
73
|
+
/**
|
|
74
|
+
* Sets if this ````LineSet```` is visible.
|
|
75
|
+
*
|
|
76
|
+
* Default value is ````true````.
|
|
77
|
+
*
|
|
78
|
+
* @param {boolean} visible Set ````true```` to make this ````LineSet```` visible.
|
|
79
|
+
*/
|
|
80
|
+
set visible(visible: boolean);
|
|
83
81
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
82
|
+
/**
|
|
83
|
+
* Gets if this ````LineSet```` is visible.
|
|
84
|
+
*
|
|
85
|
+
* Default value is ````true````.
|
|
86
|
+
*
|
|
87
|
+
* @returns {boolean} Returns ````true```` if visible.
|
|
88
|
+
*/
|
|
89
|
+
get visible(): boolean;
|
|
92
90
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
91
|
+
/**
|
|
92
|
+
* Gets the 3D World-space vertex positions of the lines in this ````LineSet````.
|
|
93
|
+
*
|
|
94
|
+
* @returns {number[]}
|
|
95
|
+
*/
|
|
96
|
+
get positions(): number[];
|
|
99
97
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
98
|
+
/**
|
|
99
|
+
* Gets the vertex indices of the lines in this ````LineSet````.
|
|
100
|
+
*
|
|
101
|
+
* @returns {number[]}
|
|
102
|
+
*/
|
|
103
|
+
get indices(): number[];
|
|
106
104
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
/**
|
|
106
|
+
* Destroys this ````LineSet````.
|
|
107
|
+
*
|
|
108
|
+
* Removes the ```LineSet```` from {@link Scene#lineSets}; causes Scene to fire a "lineSetDestroyed" event.
|
|
109
|
+
*/
|
|
110
|
+
destroy(): void;
|
|
113
111
|
}
|
|
114
|
-
|