@xtctwins/tctwins-core 1.1.14 → 1.1.16
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/package.json
CHANGED
package/types/viewer/Viewer.d.ts
CHANGED
|
@@ -61,6 +61,8 @@ export declare type ViewerConfiguration = {
|
|
|
61
61
|
pickSurfacePrecisionEnabled?: boolean;
|
|
62
62
|
/** Whether to enable logarithmic depth buffer. */
|
|
63
63
|
logarithmicDepthBufferEnabled?: boolean;
|
|
64
|
+
/** Whether to automatically fit the perspective Camera's far clipping plane to the whole Scene on each tick (default true), so that large models are never clipped by the far plane when the camera moves away. Set false to manage Perspective.far manually. */
|
|
65
|
+
autoFarPlaneFitEnabled?: boolean;
|
|
64
66
|
/** Whether to enable base color texture rendering. */
|
|
65
67
|
colorTextureEnabled?: boolean;
|
|
66
68
|
/** Whether to enable physically-based rendering. */
|
|
@@ -117,7 +117,22 @@ export declare class CameraControl extends Component {
|
|
|
117
117
|
*/
|
|
118
118
|
on(event: "doublePickedNothing", callback: (e?: { canvasPos: number[] }) => void, scope?: any): string;
|
|
119
119
|
|
|
120
|
+
/**
|
|
121
|
+
* Event fired when we left-click (press and release without dragging) on the surface of an Entity.
|
|
122
|
+
* Dragging to rotate or pan the Camera does not fire this event.
|
|
123
|
+
* @param event The mouseDownEntity event
|
|
124
|
+
* @param callback Called fired on the event
|
|
125
|
+
* @param scope Scope for the callback
|
|
126
|
+
*/
|
|
120
127
|
on(event: "mouseDownEntity", callback: (e?: { canvasPos: number[] }) => void, scope?: any): string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Event fired when we left-click (press and release without dragging) on empty space.
|
|
131
|
+
* Dragging to rotate or pan the Camera does not fire this event.
|
|
132
|
+
* @param event The mouseDownNothing event
|
|
133
|
+
* @param callback Called fired on the event
|
|
134
|
+
* @param scope Scope for the callback
|
|
135
|
+
*/
|
|
121
136
|
on(event: "mouseDownNothing", callback: (e?: { canvasPos: number[] }) => void, scope?: any): string;
|
|
122
137
|
on(event: "touchPicked", callback: (e?: { canvasPos: number[] }) => void, scope?: any): string;
|
|
123
138
|
on(event: "touchPickedSurface", callback: (e?: { canvasPos: number[] }) => void, scope?: any): string;
|