@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.
@@ -1,5 +1,4 @@
1
- import {Component} from '../Component';
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, XKTLoaderPlugin, LineSet, buildGridGeometry} from "https://cdn.jsdelivr.net/npm/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.min.js";
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 xktLoader = new XKTLoaderPlugin(viewer);
34
+ * const xtcLoader = new XTCLoaderPlugin(viewer);
36
35
  *
37
- * const model = xktLoader.load({
36
+ * const model = xtcLoader.load({
38
37
  * id: "myModel",
39
- * src: "../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
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
- * Creates a new LineSet.
60
- *
61
- * Registers the LineSet in {@link Scene#lineSets}; causes Scene to fire a "lineSetCreated" event.
62
- *
63
- * @constructor
64
- * @param {Component} [owner] Owner component. When destroyed, the owner will destroy this ````LineSet```` as well.
65
- * @param {*} [cfg] ````LineSet```` configuration
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
- * Gets if this ````LineSet```` is visible.
86
- *
87
- * Default value is ````true````.
88
- *
89
- * @returns {boolean} Returns ````true```` if visible.
90
- */
91
- get visible(): boolean;
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
- * Gets the 3D World-space vertex positions of the lines in this ````LineSet````.
95
- *
96
- * @returns {number[]}
97
- */
98
- get positions(): number[];
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
- * Gets the vertex indices of the lines in this ````LineSet````.
102
- *
103
- * @returns {number[]}
104
- */
105
- get indices(): number[];
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
- * Destroys this ````LineSet````.
109
- *
110
- * Removes the ```LineSet```` from {@link Scene#lineSets}; causes Scene to fire a "lineSetDestroyed" event.
111
- */
112
- destroy(): void;
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
-