@thatopen/components 2.0.0-alpha.2 → 2.0.0-alpha.3
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/core/Clipper/index.d.ts +1 -1
- package/dist/core/Types/src/interfaces.d.ts +3 -14
- package/dist/fragments/FragmentHider/index.d.ts +10 -0
- package/dist/fragments/index.d.ts +2 -0
- package/dist/index.cjs +5 -5
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +2478 -1965
- package/dist/measurement/Utils/index.d.ts +20 -0
- package/dist/measurement/index.d.ts +1 -0
- package/dist/namespace.d.ts +898 -634
- package/dist/navigation/MiniMap/index.d.ts +15 -0
- package/dist/navigation/MiniMap/src/index.d.ts +34 -0
- package/dist/navigation/OrthoPerspectiveCamera/index.d.ts +50 -0
- package/dist/navigation/OrthoPerspectiveCamera/src/first-person-mode.d.ts +16 -0
- package/dist/navigation/OrthoPerspectiveCamera/src/index.d.ts +5 -0
- package/dist/navigation/OrthoPerspectiveCamera/src/orbit-mode.d.ts +16 -0
- package/dist/navigation/OrthoPerspectiveCamera/src/plan-mode.d.ts +20 -0
- package/dist/navigation/OrthoPerspectiveCamera/src/projections.d.ts +37 -0
- package/dist/navigation/OrthoPerspectiveCamera/src/types.d.ts +27 -0
- package/dist/navigation/index.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/vertex-picker.d.ts +31 -0
- package/package.json +2 -2
|
@@ -40,7 +40,7 @@ export declare class Clipper<T extends SimplePlane> extends Component implements
|
|
|
40
40
|
* has to be `true` for this to apply.
|
|
41
41
|
*/
|
|
42
42
|
toleranceOrthogonalY: number;
|
|
43
|
-
|
|
43
|
+
list: T[];
|
|
44
44
|
protected PlaneType: new (...args: any) => SimplePlane | T;
|
|
45
45
|
/** The material used in all the clipping planes. */
|
|
46
46
|
protected _material: THREE.Material;
|
|
@@ -63,7 +63,7 @@ export interface Updateable {
|
|
|
63
63
|
* Function used to update the state of this component each frame. For
|
|
64
64
|
* instance, a renderer component will make a render each frame.
|
|
65
65
|
*/
|
|
66
|
-
update(delta?: number): void
|
|
66
|
+
update(delta?: number): void;
|
|
67
67
|
}
|
|
68
68
|
/** Basic type to describe the progress of any kind of process. */
|
|
69
69
|
export interface Progress {
|
|
@@ -78,31 +78,20 @@ export interface Progress {
|
|
|
78
78
|
* dimensions.
|
|
79
79
|
*/
|
|
80
80
|
export interface Createable {
|
|
81
|
-
readonly onBeforeCreate: Event<any>;
|
|
82
81
|
/** Creates a new instance of an element (e.g. a new Dimension). */
|
|
83
82
|
create: (data: any) => void;
|
|
84
|
-
/** Fired after successfully calling {@link Createable.create} */
|
|
85
|
-
readonly onAfterCreate: Event<any>;
|
|
86
83
|
/**
|
|
87
84
|
* Finish the creation process of the component, successfully creating an
|
|
88
85
|
* instance of whatever the component creates.
|
|
89
86
|
*/
|
|
90
|
-
endCreation
|
|
91
|
-
/** Fired before calling {@link Createable.cancelCreation}. */
|
|
92
|
-
readonly onBeforeCancel: Event<any>;
|
|
87
|
+
endCreation?: (data: any) => void;
|
|
93
88
|
/**
|
|
94
89
|
* Cancels the creation process of the component, going back to the state
|
|
95
90
|
* before starting to create.
|
|
96
91
|
*/
|
|
97
|
-
cancelCreation
|
|
98
|
-
/** Fired after calling {@link Createable.cancelCreation}. */
|
|
99
|
-
readonly onAfterCancel: Event<any>;
|
|
100
|
-
/** Fired before calling {@link Createable.delete}. */
|
|
101
|
-
readonly onBeforeDelete: Event<any>;
|
|
92
|
+
cancelCreation?: (data: any) => void;
|
|
102
93
|
/** Deletes an existing instance of an element (e.g. a Dimension). */
|
|
103
94
|
delete: (data: any) => void;
|
|
104
|
-
/** Fired after successfully calling {@link Createable.delete()} */
|
|
105
|
-
readonly onAfterDelete: Event<any>;
|
|
106
95
|
}
|
|
107
96
|
/**
|
|
108
97
|
* Whether this component supports to be configured.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as FRAGS from "bim-fragment";
|
|
2
|
+
import { Components, Component } from "../../core";
|
|
3
|
+
export declare class FragmentHider extends Component {
|
|
4
|
+
static readonly uuid: "dd9ccf2d-8a21-4821-b7f6-2949add16a29";
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
constructor(components: Components);
|
|
7
|
+
set(visible: boolean, items?: FRAGS.FragmentIdMap): void;
|
|
8
|
+
isolate(items: FRAGS.FragmentIdMap): void;
|
|
9
|
+
private updateCulledVisibility;
|
|
10
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./FragmentBoundingBox";
|
|
2
2
|
export * from "./FragmentClassifier";
|
|
3
|
+
export * from "./FragmentExploder";
|
|
4
|
+
export * from "./FragmentHider";
|
|
3
5
|
export * from "./FragmentIfcLoader";
|
|
4
6
|
export * from "./FragmentIfcStreamer";
|
|
5
7
|
export * from "./FragmentManager";
|