@pilotdev/pilot-web-3d 1.0.4-3 → 1.0.5-1
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/index.d.ts +46 -11
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -82,6 +82,16 @@ declare namespace PilotWeb3D {
|
|
|
82
82
|
* @returns {ModelElementIds[]} Array of the currently selected model elements.
|
|
83
83
|
*/
|
|
84
84
|
getSelection(): ModelElementIds[];
|
|
85
|
+
/**
|
|
86
|
+
* Returns the hidden element ids.
|
|
87
|
+
* @returns {ModelElementIds[]} Array of the currently hidden model elements.
|
|
88
|
+
*/
|
|
89
|
+
getHiddenElements(): ModelElementIds[];
|
|
90
|
+
/**
|
|
91
|
+
* Returns the visible element ids.
|
|
92
|
+
* @returns {ModelElementIds[]} Array of the currently visible model elements.
|
|
93
|
+
*/
|
|
94
|
+
getVisibleElements(): ModelElementIds[];
|
|
85
95
|
/**
|
|
86
96
|
* Sets color to elements
|
|
87
97
|
* @param {string[] | string} elementIds - element or array of elements to change color.
|
|
@@ -257,25 +267,50 @@ declare namespace PilotWeb3D {
|
|
|
257
267
|
|
|
258
268
|
class Control {
|
|
259
269
|
container: HTMLElement;
|
|
260
|
-
id: string;
|
|
270
|
+
constructor(id: string);
|
|
261
271
|
addClass(cssClass: string): void;
|
|
262
272
|
removeClass(cssClass: string): void;
|
|
273
|
+
getId(): string;
|
|
274
|
+
setToolTip(tooltipText: string): void;
|
|
263
275
|
}
|
|
264
276
|
|
|
265
277
|
class ViewerToolbar extends Toolbar {
|
|
266
278
|
}
|
|
267
279
|
|
|
268
|
-
class
|
|
269
|
-
|
|
270
|
-
|
|
280
|
+
class Button extends Control {
|
|
281
|
+
constructor(id: string);
|
|
282
|
+
setIsChecked(value: boolean): void;
|
|
283
|
+
setState(state: Button.State): boolean;
|
|
284
|
+
getState(): Button.State;
|
|
285
|
+
setIcon(iconClassName: string): void;
|
|
286
|
+
/**
|
|
287
|
+
* Override this method to be notified when the user clicks on the button.
|
|
288
|
+
* @param {MouseEvent} event
|
|
289
|
+
*/
|
|
290
|
+
onClick: (event: MouseEvent) => void;
|
|
291
|
+
/**
|
|
292
|
+
* Override this method to be notified when the mouse enters the button.
|
|
293
|
+
* @param {MouseEvent} event
|
|
294
|
+
*/
|
|
295
|
+
onMouseOver: (event: MouseEvent) => void;
|
|
296
|
+
/**
|
|
297
|
+
* Override this method to be notified when the mouse leaves the button.
|
|
298
|
+
* @param {MouseEvent} event
|
|
299
|
+
*/
|
|
300
|
+
onMouseOut: (event: MouseEvent) => void;
|
|
271
301
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
302
|
+
namespace Button {
|
|
303
|
+
enum State {
|
|
304
|
+
ACTIVE = 0,
|
|
305
|
+
INACTIVE = 1,
|
|
306
|
+
DISABLED = 2
|
|
307
|
+
}
|
|
308
|
+
enum Event {
|
|
309
|
+
STATE_CHANGED = "Button.StateChanged",
|
|
310
|
+
CLICK = "click"
|
|
311
|
+
}
|
|
277
312
|
}
|
|
278
|
-
|
|
313
|
+
|
|
279
314
|
class ExtensionBase {
|
|
280
315
|
protected _viewer: ViewerBase;
|
|
281
316
|
constructor(viewer3D: ViewerBase, options?: object);
|
|
@@ -290,7 +325,7 @@ declare namespace PilotWeb3D {
|
|
|
290
325
|
onMouseMove(event: MouseEvent): void;
|
|
291
326
|
onMouseUp(event: MouseEvent): void;
|
|
292
327
|
onMouseLongTouch(event: MouseEvent): void;
|
|
293
|
-
onToolbarCreated(builder:
|
|
328
|
+
onToolbarCreated(builder: Toolbar): void;
|
|
294
329
|
}
|
|
295
330
|
|
|
296
331
|
class Extension extends ExtensionBase{
|