@xtctwins/tctwins-core 1.1.18 → 1.1.20
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/README.md +4 -4
- package/dist/tctwins-core.es5.js +27337 -27310
- package/dist/tctwins-core.min.es5.js +3 -3
- package/package.json +84 -84
- package/types/extras/ContextMenu/ContextMenu.d.ts +127 -127
- package/types/extras/ContextMenu/index.d.ts +1 -1
- package/types/extras/PointerCircle/PointerCircle.d.ts +51 -51
- package/types/extras/PointerCircle/index.d.ts +1 -1
- package/types/extras/PointerLens/PointerLens.d.ts +146 -146
- package/types/extras/index.d.ts +3 -3
- package/types/index.d.ts +3 -3
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +204 -204
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsControl.d.ts +91 -91
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsMouseControl.d.ts +125 -125
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsPlugin.d.ts +151 -151
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsSimulateMouseControl.d.ts +86 -86
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsTouchControl.d.ts +124 -124
- package/types/plugins/AngleMeasurementsPlugin/index.d.ts +5 -5
- package/types/plugins/AnnotationsPlugin/Annotation.d.ts +135 -135
- package/types/plugins/AnnotationsPlugin/AnnotationsPlugin.d.ts +172 -172
- package/types/plugins/AnnotationsPlugin/index.d.ts +2 -2
- package/types/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.d.ts +148 -148
- package/types/plugins/BCFViewpointsPlugin/index.d.ts +1 -1
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.d.ts +253 -253
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsControl.d.ts +96 -96
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsMouseControl.d.ts +102 -102
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.d.ts +192 -192
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsSimulateMouseControl.d.ts +83 -83
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsTouchControl.d.ts +103 -103
- package/types/plugins/DistanceMeasurementsPlugin/index.d.ts +5 -5
- package/types/plugins/FastNavPlugin/FastNavPlugin.d.ts +223 -223
- package/types/plugins/FastNavPlugin/index.d.ts +1 -1
- package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +142 -142
- package/types/plugins/GLTFLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +240 -240
- package/types/plugins/LASLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/NavCubePlugin/NavCubePlugin.d.ts +177 -177
- package/types/plugins/NavCubePlugin/index.d.ts +1 -1
- package/types/plugins/ObjectEditPlugin/ObjectEditPlugin.d.ts +242 -242
- package/types/plugins/ObjectEditPlugin/index.d.ts +1 -1
- package/types/plugins/SectionPlanesPlugin/SectionBoxControl.d.ts +36 -36
- package/types/plugins/SectionPlanesPlugin/SectionPlanesPlugin.d.ts +186 -186
- package/types/plugins/SectionPlanesPlugin/index.d.ts +2 -2
- package/types/plugins/SkyboxesPlugin/SkyboxesPlugin.d.ts +66 -66
- package/types/plugins/SkyboxesPlugin/index.d.ts +1 -1
- package/types/plugins/StoreyViewsPlugin/Storey.d.ts +69 -69
- package/types/plugins/StoreyViewsPlugin/StoreyMap.d.ts +41 -41
- package/types/plugins/StoreyViewsPlugin/StoreyViewsPlugin.d.ts +180 -180
- package/types/plugins/StoreyViewsPlugin/index.d.ts +1 -1
- package/types/plugins/TreeViewPlugin/ModelTreeView.d.ts +24 -24
- package/types/plugins/TreeViewPlugin/TreeViewNode.d.ts +71 -71
- package/types/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +267 -267
- package/types/plugins/TreeViewPlugin/index.d.ts +1 -1
- package/types/plugins/TreeViewPlugin/renderService.d.ts +128 -128
- package/types/plugins/ViewCullPlugin/ViewCullPlugin.d.ts +34 -34
- package/types/plugins/ViewCullPlugin/index.d.ts +1 -1
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +236 -236
- package/types/plugins/WebIFCLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/XTCLoaderPlugin/XTCLoaderPlugin.d.ts +288 -288
- package/types/plugins/XTCLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/index.d.ts +30 -30
- package/types/viewer/Configs.d.ts +46 -46
- package/types/viewer/Plugin.d.ts +69 -69
- package/types/viewer/Viewer.d.ts +282 -282
- package/types/viewer/index.d.ts +6 -6
- package/types/viewer/localization/LocaleService.d.ts +183 -183
- package/types/viewer/metadata/IFCObjectDefaults.d.ts +9 -9
- package/types/viewer/metadata/MetaModel.d.ts +94 -94
- package/types/viewer/metadata/MetaObject.d.ts +74 -74
- package/types/viewer/metadata/MetaScene.d.ts +135 -135
- package/types/viewer/metadata/Property.d.ts +29 -29
- package/types/viewer/metadata/PropertySet.d.ts +31 -31
- package/types/viewer/metadata/index.d.ts +6 -6
- package/types/viewer/scene/Bitmap/Bitmap.d.ts +255 -255
- package/types/viewer/scene/CameraControl/CameraControl.d.ts +777 -777
- package/types/viewer/scene/Component.d.ts +155 -155
- package/types/viewer/scene/Entity.d.ts +401 -401
- package/types/viewer/scene/LineSet/LineSet.d.ts +111 -111
- package/types/viewer/scene/camera/Camera.d.ts +364 -364
- package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +167 -167
- package/types/viewer/scene/camera/CameraPath.d.ts +28 -28
- package/types/viewer/scene/camera/CameraPathAnimation.d.ts +95 -95
- package/types/viewer/scene/camera/CustomProjection.d.ts +57 -57
- package/types/viewer/scene/camera/Frustum.d.ts +166 -166
- package/types/viewer/scene/camera/Ortho.d.ts +115 -115
- package/types/viewer/scene/camera/Perspective.d.ts +136 -136
- package/types/viewer/scene/camera/index.d.ts +4 -4
- package/types/viewer/scene/geometry/Geometry.d.ts +7 -7
- package/types/viewer/scene/geometry/ReadableGeometry.d.ts +95 -95
- package/types/viewer/scene/geometry/VBOGeometry.d.ts +62 -62
- package/types/viewer/scene/geometry/builders/buildBoxGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildBoxLinesGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildCylinderGeometry.d.ts +27 -27
- package/types/viewer/scene/geometry/builders/buildGridGeometry.d.ts +17 -17
- package/types/viewer/scene/geometry/builders/buildPlaneGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildSphereGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildTorusGeometry.d.ts +25 -25
- package/types/viewer/scene/geometry/builders/buildVectorTextGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/index.d.ts +8 -8
- package/types/viewer/scene/geometry/index.d.ts +2 -2
- package/types/viewer/scene/index.d.ts +23 -23
- package/types/viewer/scene/input/input.d.ts +69 -69
- package/types/viewer/scene/lights/AmbientLight.d.ts +19 -19
- package/types/viewer/scene/lights/DirLight.d.ts +25 -25
- package/types/viewer/scene/lights/Light.d.ts +3 -3
- package/types/viewer/scene/lights/PointLight.d.ts +30 -30
- package/types/viewer/scene/lights/index.d.ts +2 -2
- package/types/viewer/scene/marker/Marker.d.ts +136 -136
- package/types/viewer/scene/marker/SpriteMarker.d.ts +185 -185
- package/types/viewer/scene/marker/index.d.ts +2 -2
- package/types/viewer/scene/materials/EdgeMaterial.d.ts +83 -83
- package/types/viewer/scene/materials/EmphasisMaterial.d.ts +241 -241
- package/types/viewer/scene/materials/Fresnel.d.ts +148 -148
- package/types/viewer/scene/materials/LinesMaterial.d.ts +71 -71
- package/types/viewer/scene/materials/Material.d.ts +3 -3
- package/types/viewer/scene/materials/PhongMaterial.d.ts +468 -468
- package/types/viewer/scene/materials/PointsMaterial.d.ts +206 -206
- package/types/viewer/scene/materials/Texture.d.ts +260 -260
- package/types/viewer/scene/materials/index.d.ts +6 -6
- package/types/viewer/scene/math/Frustum.d.ts +41 -41
- package/types/viewer/scene/math/index.d.ts +1 -1
- package/types/viewer/scene/math/math.d.ts +104 -104
- package/types/viewer/scene/mementos/CameraMemento.d.ts +28 -28
- package/types/viewer/scene/mementos/ModelMemento.d.ts +44 -44
- package/types/viewer/scene/mementos/ObjectsMemento.d.ts +39 -39
- package/types/viewer/scene/mementos/index.d.ts +3 -3
- package/types/viewer/scene/mesh/Mesh.d.ts +793 -793
- package/types/viewer/scene/mesh/index.d.ts +1 -1
- package/types/viewer/scene/models/PerformanceModel/PerformanceModel.d.ts +9 -9
- package/types/viewer/scene/models/PerformanceModel/index.d.ts +1 -1
- package/types/viewer/scene/models/SceneModel.d.ts +757 -757
- package/types/viewer/scene/models/SceneModelEntity.d.ts +417 -417
- package/types/viewer/scene/models/SceneModelMesh.d.ts +68 -68
- package/types/viewer/scene/models/SceneModelTexture.d.ts +16 -16
- package/types/viewer/scene/models/SceneModelTextureSet.d.ts +51 -51
- package/types/viewer/scene/models/SceneModelTransform.d.ts +197 -197
- package/types/viewer/scene/models/VBOSceneModel/VBOSceneModel.d.ts +7 -7
- package/types/viewer/scene/models/index.d.ts +7 -7
- package/types/viewer/scene/nodes/Node.d.ts +664 -664
- package/types/viewer/scene/nodes/index.d.ts +1 -1
- package/types/viewer/scene/postfx/CrossSections.d.ts +42 -42
- package/types/viewer/scene/postfx/SAO.d.ts +209 -209
- package/types/viewer/scene/scene/Scene.d.ts +1068 -1068
- package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +110 -110
- package/types/viewer/scene/sectionPlane/index.d.ts +1 -1
- package/types/viewer/scene/stats.d.ts +40 -40
- package/types/viewer/scene/utils.d.ts +165 -165
- package/types/viewer/scene/viewport/Viewport.d.ts +23 -23
- package/types/viewer/scene/viewport/index.d.ts +1 -1
- package/types/viewer/scene/webgl/PickResult.d.ts +115 -115
- package/types/viewer/scene/webgl/index.d.ts +1 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { Component } from '../Component';
|
|
2
|
-
import {Light} from './Light';
|
|
3
|
-
|
|
4
|
-
export declare type PointLightConfiguration = {
|
|
5
|
-
/** Optional ID, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
|
|
6
|
-
id?: string;
|
|
7
|
-
/** Position, in either World or View space, depending on the value of the **space** parameter. */
|
|
8
|
-
pos?: number[]
|
|
9
|
-
/** The color of this DirLight. */
|
|
10
|
-
color?: number[]
|
|
11
|
-
/** The intensity of this AmbientLight, as a factor in range ````[0..1]````. */
|
|
12
|
-
intensity?: number;
|
|
13
|
-
/** Constant attenuation factor. */
|
|
14
|
-
constantAttenuation?: number;
|
|
15
|
-
/** Linear attenuation factor. */
|
|
16
|
-
linearAttenuation?: number;
|
|
17
|
-
/** Quadratic attenuation factor. */
|
|
18
|
-
quadraticAttenuation?: number;
|
|
19
|
-
/** The coordinate system the PointLight is defined in - ````"view"```` or ````"space"````. */
|
|
20
|
-
space?: 'view' | 'space';
|
|
21
|
-
/** Flag which indicates if this PointLight casts a castsShadow. */
|
|
22
|
-
castsShadow?: boolean;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export declare class PointLight extends Light {
|
|
26
|
-
/**
|
|
27
|
-
* @param {Component} owner Owner component. When destroyed, the owner will destroy this AmbientLight as well.
|
|
28
|
-
* @param {PointLightConfiguration} [cfg] PointLight configuration
|
|
29
|
-
*/
|
|
30
|
-
constructor(owner: Component, cfg: PointLightConfiguration);
|
|
1
|
+
import { Component } from '../Component';
|
|
2
|
+
import {Light} from './Light';
|
|
3
|
+
|
|
4
|
+
export declare type PointLightConfiguration = {
|
|
5
|
+
/** Optional ID, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** Position, in either World or View space, depending on the value of the **space** parameter. */
|
|
8
|
+
pos?: number[]
|
|
9
|
+
/** The color of this DirLight. */
|
|
10
|
+
color?: number[]
|
|
11
|
+
/** The intensity of this AmbientLight, as a factor in range ````[0..1]````. */
|
|
12
|
+
intensity?: number;
|
|
13
|
+
/** Constant attenuation factor. */
|
|
14
|
+
constantAttenuation?: number;
|
|
15
|
+
/** Linear attenuation factor. */
|
|
16
|
+
linearAttenuation?: number;
|
|
17
|
+
/** Quadratic attenuation factor. */
|
|
18
|
+
quadraticAttenuation?: number;
|
|
19
|
+
/** The coordinate system the PointLight is defined in - ````"view"```` or ````"space"````. */
|
|
20
|
+
space?: 'view' | 'space';
|
|
21
|
+
/** Flag which indicates if this PointLight casts a castsShadow. */
|
|
22
|
+
castsShadow?: boolean;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export declare class PointLight extends Light {
|
|
26
|
+
/**
|
|
27
|
+
* @param {Component} owner Owner component. When destroyed, the owner will destroy this AmbientLight as well.
|
|
28
|
+
* @param {PointLightConfiguration} [cfg] PointLight configuration
|
|
29
|
+
*/
|
|
30
|
+
constructor(owner: Component, cfg: PointLightConfiguration);
|
|
31
31
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./AmbientLight";
|
|
2
|
-
export * from "./DirLight";
|
|
1
|
+
export * from "./AmbientLight";
|
|
2
|
+
export * from "./DirLight";
|
|
3
3
|
export * from "./PointLight";
|
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
import { Component } from "../Component";
|
|
2
|
-
import { Entity } from "../Entity";
|
|
3
|
-
|
|
4
|
-
export declare type MarkerConfiguration = {
|
|
5
|
-
/** Optional ID, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
|
|
6
|
-
id?: string;
|
|
7
|
-
/** Entity to associate this Marker with. When the Marker has an Entity, then {@link Marker.visible} will always be ````false```` if {@link Entity.visible} is false. */
|
|
8
|
-
entity?: Entity
|
|
9
|
-
/** Indicates whether or not this Marker is hidden (ie. {@link Marker.visible} is ````false```` whenever occluded by {@link Entity}s in the {@link Scene}. */
|
|
10
|
-
occludable?: boolean;
|
|
11
|
-
/** World-space 3D Marker position. */
|
|
12
|
-
worldPos?: number[];
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @desc Tracks the World, View and Canvas coordinates, and visibility, of a position within a {@link Scene}.
|
|
17
|
-
*/
|
|
18
|
-
export declare class Marker extends Component {
|
|
19
|
-
/**
|
|
20
|
-
* @constructor
|
|
21
|
-
* @param {Component} [owner] Owner component. When destroyed, the owner will destroy this Marker as well.
|
|
22
|
-
* @param {MarkerConfiguration} [cfg] Marker configuration
|
|
23
|
-
*/
|
|
24
|
-
constructor(owner?: Component, cfg?: MarkerConfiguration);
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Sets the {@link Entity} this Marker is associated with.
|
|
28
|
-
*
|
|
29
|
-
* An Entity is optional. When the Marker has an Entity, then {@link Marker.visible} will always be ````false````
|
|
30
|
-
* if {@link Entity.visible} is false.
|
|
31
|
-
*
|
|
32
|
-
* @type {Entity}
|
|
33
|
-
*/
|
|
34
|
-
set entity(arg: Entity);
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Gets the {@link Entity} this Marker is associated with.
|
|
38
|
-
*
|
|
39
|
-
* @type {Entity}
|
|
40
|
-
*/
|
|
41
|
-
get entity(): Entity;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Sets the World-space 3D position of this Marker.
|
|
45
|
-
*
|
|
46
|
-
* Fires a "worldPos" event with new World position.
|
|
47
|
-
*
|
|
48
|
-
* @type {Number[]}
|
|
49
|
-
*/
|
|
50
|
-
set worldPos(arg: number[]);
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Gets the World-space 3D position of this Marker.
|
|
54
|
-
*
|
|
55
|
-
* @type {Number[]}
|
|
56
|
-
*/
|
|
57
|
-
get worldPos(): number[];
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Sets whether occlusion testing is performed for this Marker.
|
|
61
|
-
*
|
|
62
|
-
* When this is ````true````, then {@link Marker.visible} will be ````false```` whenever the Marker is occluded by an {@link Entity} in the 3D view.
|
|
63
|
-
*
|
|
64
|
-
* The {@link Scene} periodically occlusion-tests all Markers on every 20th "tick" (which represents a rendered frame). We
|
|
65
|
-
* can adjust that frequency via property {@link Scene.ticksPerOcclusionTest}.
|
|
66
|
-
*
|
|
67
|
-
* @type {Boolean}
|
|
68
|
-
*/
|
|
69
|
-
set occludable(arg: boolean);
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Gets whether occlusion testing is performed for this Marker.
|
|
73
|
-
*
|
|
74
|
-
* When this is ````true````, then {@link Marker.visible} will be ````false```` whenever the Marker is occluded by an {@link Entity} in the 3D view.
|
|
75
|
-
*
|
|
76
|
-
* @type {Boolean}
|
|
77
|
-
*/
|
|
78
|
-
get occludable(): boolean;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Gets the RTC center of this Marker.
|
|
82
|
-
*
|
|
83
|
-
* This is automatically calculated from {@link Marker.worldPos}.
|
|
84
|
-
*
|
|
85
|
-
* @type {Number[]}
|
|
86
|
-
*/
|
|
87
|
-
get origin(): number[];
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Gets the RTC position of this Marker.
|
|
91
|
-
*
|
|
92
|
-
* This is automatically calculated from {@link Marker.worldPos}.
|
|
93
|
-
*
|
|
94
|
-
* @type {Number[]}
|
|
95
|
-
*/
|
|
96
|
-
get rtcPos(): number[];
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* View-space 3D coordinates of this Marker.
|
|
100
|
-
*
|
|
101
|
-
* This property is read-only and is automatically calculated from {@link Marker.worldPos} and the current {@link Camera} position.
|
|
102
|
-
*
|
|
103
|
-
* The Marker fires a "viewPos" event whenever this property changes.
|
|
104
|
-
*
|
|
105
|
-
* @type {Number[]}
|
|
106
|
-
*/
|
|
107
|
-
get viewPos(): number[];
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Canvas-space 2D coordinates of this Marker.
|
|
111
|
-
*
|
|
112
|
-
* This property is read-only and is automatically calculated from {@link Marker.worldPos} and the current {@link Camera} position and projection.
|
|
113
|
-
*
|
|
114
|
-
* The Marker fires a "canvasPos" event whenever this property changes.
|
|
115
|
-
*
|
|
116
|
-
* @type {Number[]}
|
|
117
|
-
*/
|
|
118
|
-
get canvasPos(): number[];
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Indicates if this Marker is currently visible.
|
|
122
|
-
*
|
|
123
|
-
* This is read-only and is automatically calculated.
|
|
124
|
-
*
|
|
125
|
-
* The Marker is **invisible** whenever:
|
|
126
|
-
*
|
|
127
|
-
* * {@link Marker.canvasPos} is currently outside the canvas,
|
|
128
|
-
* * {@link Marker.entity} is set to an {@link Entity} that has {@link Entity.visible} ````false````, or
|
|
129
|
-
* * or {@link Marker.occludable} is ````true```` and the Marker is currently occluded by an Entity in the 3D view.
|
|
130
|
-
*
|
|
131
|
-
* The Marker fires a "visible" event whenever this property changes.
|
|
132
|
-
*
|
|
133
|
-
* @type {Boolean}
|
|
134
|
-
*/
|
|
135
|
-
get visible(): boolean;
|
|
136
|
-
}
|
|
1
|
+
import { Component } from "../Component";
|
|
2
|
+
import { Entity } from "../Entity";
|
|
3
|
+
|
|
4
|
+
export declare type MarkerConfiguration = {
|
|
5
|
+
/** Optional ID, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** Entity to associate this Marker with. When the Marker has an Entity, then {@link Marker.visible} will always be ````false```` if {@link Entity.visible} is false. */
|
|
8
|
+
entity?: Entity
|
|
9
|
+
/** Indicates whether or not this Marker is hidden (ie. {@link Marker.visible} is ````false```` whenever occluded by {@link Entity}s in the {@link Scene}. */
|
|
10
|
+
occludable?: boolean;
|
|
11
|
+
/** World-space 3D Marker position. */
|
|
12
|
+
worldPos?: number[];
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @desc Tracks the World, View and Canvas coordinates, and visibility, of a position within a {@link Scene}.
|
|
17
|
+
*/
|
|
18
|
+
export declare class Marker extends Component {
|
|
19
|
+
/**
|
|
20
|
+
* @constructor
|
|
21
|
+
* @param {Component} [owner] Owner component. When destroyed, the owner will destroy this Marker as well.
|
|
22
|
+
* @param {MarkerConfiguration} [cfg] Marker configuration
|
|
23
|
+
*/
|
|
24
|
+
constructor(owner?: Component, cfg?: MarkerConfiguration);
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Sets the {@link Entity} this Marker is associated with.
|
|
28
|
+
*
|
|
29
|
+
* An Entity is optional. When the Marker has an Entity, then {@link Marker.visible} will always be ````false````
|
|
30
|
+
* if {@link Entity.visible} is false.
|
|
31
|
+
*
|
|
32
|
+
* @type {Entity}
|
|
33
|
+
*/
|
|
34
|
+
set entity(arg: Entity);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Gets the {@link Entity} this Marker is associated with.
|
|
38
|
+
*
|
|
39
|
+
* @type {Entity}
|
|
40
|
+
*/
|
|
41
|
+
get entity(): Entity;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Sets the World-space 3D position of this Marker.
|
|
45
|
+
*
|
|
46
|
+
* Fires a "worldPos" event with new World position.
|
|
47
|
+
*
|
|
48
|
+
* @type {Number[]}
|
|
49
|
+
*/
|
|
50
|
+
set worldPos(arg: number[]);
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Gets the World-space 3D position of this Marker.
|
|
54
|
+
*
|
|
55
|
+
* @type {Number[]}
|
|
56
|
+
*/
|
|
57
|
+
get worldPos(): number[];
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Sets whether occlusion testing is performed for this Marker.
|
|
61
|
+
*
|
|
62
|
+
* When this is ````true````, then {@link Marker.visible} will be ````false```` whenever the Marker is occluded by an {@link Entity} in the 3D view.
|
|
63
|
+
*
|
|
64
|
+
* The {@link Scene} periodically occlusion-tests all Markers on every 20th "tick" (which represents a rendered frame). We
|
|
65
|
+
* can adjust that frequency via property {@link Scene.ticksPerOcclusionTest}.
|
|
66
|
+
*
|
|
67
|
+
* @type {Boolean}
|
|
68
|
+
*/
|
|
69
|
+
set occludable(arg: boolean);
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Gets whether occlusion testing is performed for this Marker.
|
|
73
|
+
*
|
|
74
|
+
* When this is ````true````, then {@link Marker.visible} will be ````false```` whenever the Marker is occluded by an {@link Entity} in the 3D view.
|
|
75
|
+
*
|
|
76
|
+
* @type {Boolean}
|
|
77
|
+
*/
|
|
78
|
+
get occludable(): boolean;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Gets the RTC center of this Marker.
|
|
82
|
+
*
|
|
83
|
+
* This is automatically calculated from {@link Marker.worldPos}.
|
|
84
|
+
*
|
|
85
|
+
* @type {Number[]}
|
|
86
|
+
*/
|
|
87
|
+
get origin(): number[];
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Gets the RTC position of this Marker.
|
|
91
|
+
*
|
|
92
|
+
* This is automatically calculated from {@link Marker.worldPos}.
|
|
93
|
+
*
|
|
94
|
+
* @type {Number[]}
|
|
95
|
+
*/
|
|
96
|
+
get rtcPos(): number[];
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* View-space 3D coordinates of this Marker.
|
|
100
|
+
*
|
|
101
|
+
* This property is read-only and is automatically calculated from {@link Marker.worldPos} and the current {@link Camera} position.
|
|
102
|
+
*
|
|
103
|
+
* The Marker fires a "viewPos" event whenever this property changes.
|
|
104
|
+
*
|
|
105
|
+
* @type {Number[]}
|
|
106
|
+
*/
|
|
107
|
+
get viewPos(): number[];
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Canvas-space 2D coordinates of this Marker.
|
|
111
|
+
*
|
|
112
|
+
* This property is read-only and is automatically calculated from {@link Marker.worldPos} and the current {@link Camera} position and projection.
|
|
113
|
+
*
|
|
114
|
+
* The Marker fires a "canvasPos" event whenever this property changes.
|
|
115
|
+
*
|
|
116
|
+
* @type {Number[]}
|
|
117
|
+
*/
|
|
118
|
+
get canvasPos(): number[];
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Indicates if this Marker is currently visible.
|
|
122
|
+
*
|
|
123
|
+
* This is read-only and is automatically calculated.
|
|
124
|
+
*
|
|
125
|
+
* The Marker is **invisible** whenever:
|
|
126
|
+
*
|
|
127
|
+
* * {@link Marker.canvasPos} is currently outside the canvas,
|
|
128
|
+
* * {@link Marker.entity} is set to an {@link Entity} that has {@link Entity.visible} ````false````, or
|
|
129
|
+
* * or {@link Marker.occludable} is ````true```` and the Marker is currently occluded by an Entity in the 3D view.
|
|
130
|
+
*
|
|
131
|
+
* The Marker fires a "visible" event whenever this property changes.
|
|
132
|
+
*
|
|
133
|
+
* @type {Boolean}
|
|
134
|
+
*/
|
|
135
|
+
get visible(): boolean;
|
|
136
|
+
}
|