@thatopen/components 2.4.10 → 3.1.0
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 +92 -92
- package/dist/index.cjs +18407 -25922
- package/dist/index.d.ts +4537 -6
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.mjs +3 -3
- package/dist/index.mjs +18409 -25924
- package/package.json +58 -61
- package/dist/core/Clipper/index.d.ts +0 -142
- package/dist/core/Clipper/src/clipper-config.d.ts +0 -33
- package/dist/core/Clipper/src/index.d.ts +0 -1
- package/dist/core/Clipper/src/simple-plane.d.ts +0 -99
- package/dist/core/Components/index.d.ts +0 -93
- package/dist/core/ConfigManager/index.d.ts +0 -21
- package/dist/core/ConfigManager/src/configurator.d.ts +0 -13
- package/dist/core/ConfigManager/src/index.d.ts +0 -1
- package/dist/core/Cullers/index.d.ts +0 -56
- package/dist/core/Cullers/src/culler-renderer-config.d.ts +0 -74
- package/dist/core/Cullers/src/culler-renderer.d.ts +0 -76
- package/dist/core/Cullers/src/index.d.ts +0 -3
- package/dist/core/Cullers/src/mesh-culler-renderer.d.ts +0 -59
- package/dist/core/Cullers/src/screen-culler-helper.d.ts +0 -1
- package/dist/core/Disposer/index.d.ts +0 -45
- package/dist/core/Grids/index.d.ts +0 -46
- package/dist/core/Grids/src/index.d.ts +0 -2
- package/dist/core/Grids/src/simple-grid-config.d.ts +0 -80
- package/dist/core/Grids/src/simple-grid.d.ts +0 -48
- package/dist/core/MiniMap/index.d.ts +0 -50
- package/dist/core/MiniMap/src/index.d.ts +0 -2
- package/dist/core/MiniMap/src/mini-map-config.d.ts +0 -112
- package/dist/core/MiniMap/src/mini-map.d.ts +0 -100
- package/dist/core/OrthoPerspectiveCamera/index.d.ts +0 -65
- package/dist/core/OrthoPerspectiveCamera/src/first-person-mode.d.ts +0 -16
- package/dist/core/OrthoPerspectiveCamera/src/index.d.ts +0 -5
- package/dist/core/OrthoPerspectiveCamera/src/orbit-mode.d.ts +0 -16
- package/dist/core/OrthoPerspectiveCamera/src/plan-mode.d.ts +0 -20
- package/dist/core/OrthoPerspectiveCamera/src/projections.d.ts +0 -45
- package/dist/core/OrthoPerspectiveCamera/src/types.d.ts +0 -26
- package/dist/core/Raycasters/index.d.ts +0 -43
- package/dist/core/Raycasters/src/index.d.ts +0 -2
- package/dist/core/Raycasters/src/mouse.d.ts +0 -24
- package/dist/core/Raycasters/src/simple-raycaster.d.ts +0 -54
- package/dist/core/ShadowedScene/index.d.ts +0 -57
- package/dist/core/ShadowedScene/src/distance-renderer.d.ts +0 -67
- package/dist/core/ShadowedScene/src/index.d.ts +0 -1
- package/dist/core/Types/index.d.ts +0 -1
- package/dist/core/Types/src/async-event.d.ts +0 -32
- package/dist/core/Types/src/base-camera.d.ts +0 -28
- package/dist/core/Types/src/base-renderer.d.ts +0 -65
- package/dist/core/Types/src/base-scene.d.ts +0 -25
- package/dist/core/Types/src/base-world-item.d.ts +0 -23
- package/dist/core/Types/src/base.d.ts +0 -19
- package/dist/core/Types/src/component-with-ui.d.ts +0 -18
- package/dist/core/Types/src/component.d.ts +0 -13
- package/dist/core/Types/src/config-types.d.ts +0 -47
- package/dist/core/Types/src/data-map.d.ts +0 -73
- package/dist/core/Types/src/data-set.d.ts +0 -58
- package/dist/core/Types/src/event-manager.d.ts +0 -30
- package/dist/core/Types/src/event.d.ts +0 -32
- package/dist/core/Types/src/index.d.ts +0 -15
- package/dist/core/Types/src/interfaces.d.ts +0 -117
- package/dist/core/Types/src/world.d.ts +0 -34
- package/dist/core/Viewpoints/index.d.ts +0 -38
- package/dist/core/Viewpoints/src/index.d.ts +0 -2
- package/dist/core/Viewpoints/src/types.d.ts +0 -36
- package/dist/core/Viewpoints/src/viewpoint.d.ts +0 -197
- package/dist/core/Viewpoints/src/viewpoints-config.d.ts +0 -23
- package/dist/core/Worlds/index.d.ts +0 -54
- package/dist/core/Worlds/src/index.d.ts +0 -5
- package/dist/core/Worlds/src/simple-camera.d.ts +0 -62
- package/dist/core/Worlds/src/simple-renderer.d.ts +0 -54
- package/dist/core/Worlds/src/simple-scene-config.d.ts +0 -59
- package/dist/core/Worlds/src/simple-scene.d.ts +0 -25
- package/dist/core/Worlds/src/simple-world.d.ts +0 -79
- package/dist/core/index.d.ts +0 -13
- package/dist/fragments/BoundingBoxer/index.d.ts +0 -208
- package/dist/fragments/Classifier/index.d.ts +0 -197
- package/dist/fragments/Exploder/index.d.ts +0 -50
- package/dist/fragments/FragmentsManager/index.d.ts +0 -152
- package/dist/fragments/Hider/index.d.ts +0 -38
- package/dist/fragments/IfcGeometryTiler/index.d.ts +0 -103
- package/dist/fragments/IfcGeometryTiler/src/base-types.d.ts +0 -29
- package/dist/fragments/IfcGeometryTiler/src/index.d.ts +0 -2
- package/dist/fragments/IfcGeometryTiler/src/streaming-settings.d.ts +0 -20
- package/dist/fragments/IfcLoader/index.d.ts +0 -116
- package/dist/fragments/IfcLoader/src/civil-reader.d.ts +0 -15
- package/dist/fragments/IfcLoader/src/ifc-fragment-settings.d.ts +0 -41
- package/dist/fragments/IfcLoader/src/ifc-metadata-reader.d.ts +0 -5
- package/dist/fragments/IfcLoader/src/index.d.ts +0 -5
- package/dist/fragments/IfcLoader/src/spatial-ids-finder.d.ts +0 -5
- package/dist/fragments/IfcLoader/src/spatial-structure.d.ts +0 -8
- package/dist/fragments/IfcLoader/src/transform-helper.d.ts +0 -5
- package/dist/fragments/IfcLoader/src/units.d.ts +0 -10
- package/dist/fragments/IfcPropertiesTiler/index.d.ts +0 -66
- package/dist/fragments/IfcPropertiesTiler/src/index.d.ts +0 -1
- package/dist/fragments/IfcPropertiesTiler/src/streaming-settings.d.ts +0 -11
- package/dist/fragments/index.d.ts +0 -8
- package/dist/ifc/IfcFinder/index.d.ts +0 -50
- package/dist/ifc/IfcFinder/src/ifc-basic-query.d.ts +0 -35
- package/dist/ifc/IfcFinder/src/ifc-finder-query.d.ts +0 -96
- package/dist/ifc/IfcFinder/src/ifc-property-query.d.ts +0 -36
- package/dist/ifc/IfcFinder/src/ifc-query-group.d.ts +0 -69
- package/dist/ifc/IfcFinder/src/index.d.ts +0 -4
- package/dist/ifc/IfcFinder/src/types.d.ts +0 -84
- package/dist/ifc/IfcIsolator/index.d.ts +0 -24
- package/dist/ifc/IfcJsonExporter/index.d.ts +0 -26
- package/dist/ifc/IfcJsonExporter/src/ifc-geometry-types.d.ts +0 -4
- package/dist/ifc/IfcJsonExporter/src/index.d.ts +0 -1
- package/dist/ifc/IfcPropertiesManager/index.d.ts +0 -289
- package/dist/ifc/IfcPropertiesManager/src/index.d.ts +0 -3
- package/dist/ifc/IfcPropertiesManager/src/rel-attrs.d.ts +0 -7
- package/dist/ifc/IfcPropertiesManager/src/rel-names.d.ts +0 -3
- package/dist/ifc/IfcPropertiesManager/src/types.d.ts +0 -18
- package/dist/ifc/IfcRelationsIndexer/index.d.ts +0 -195
- package/dist/ifc/IfcRelationsIndexer/src/index.d.ts +0 -2
- package/dist/ifc/IfcRelationsIndexer/src/newVersion.d.ts +0 -51
- package/dist/ifc/IfcRelationsIndexer/src/relToAttributesMap.d.ts +0 -5
- package/dist/ifc/IfcRelationsIndexer/src/types.d.ts +0 -73
- package/dist/ifc/Utils/ifc-categories.d.ts +0 -7
- package/dist/ifc/Utils/ifc-category-case.d.ts +0 -3
- package/dist/ifc/Utils/ifc-category-map.d.ts +0 -6
- package/dist/ifc/Utils/ifc-elements-map.d.ts +0 -11
- package/dist/ifc/Utils/index.d.ts +0 -5
- package/dist/ifc/Utils/properties-utils.d.ts +0 -25
- package/dist/ifc/index.d.ts +0 -6
- package/dist/measurement/MeasurementUtils/index.d.ts +0 -105
- package/dist/measurement/index.d.ts +0 -1
- package/dist/namespace.d.ts +0 -6018
- package/dist/openbim/BCFTopics/index.d.ts +0 -114
- package/dist/openbim/BCFTopics/src/Comment.d.ts +0 -40
- package/dist/openbim/BCFTopics/src/Topic.d.ts +0 -127
- package/dist/openbim/BCFTopics/src/bcf-topics-config.d.ts +0 -121
- package/dist/openbim/BCFTopics/src/importers/extensions.d.ts +0 -2
- package/dist/openbim/BCFTopics/src/importers/index.d.ts +0 -1
- package/dist/openbim/BCFTopics/src/index.d.ts +0 -5
- package/dist/openbim/BCFTopics/src/types.d.ts +0 -19
- package/dist/openbim/IDSSpecifications/index.d.ts +0 -60
- package/dist/openbim/IDSSpecifications/src/Specification.d.ts +0 -40
- package/dist/openbim/IDSSpecifications/src/exporters/parameter.d.ts +0 -2
- package/dist/openbim/IDSSpecifications/src/facets/Attribute.d.ts +0 -13
- package/dist/openbim/IDSSpecifications/src/facets/Classification.d.ts +0 -21
- package/dist/openbim/IDSSpecifications/src/facets/Entity.d.ts +0 -15
- package/dist/openbim/IDSSpecifications/src/facets/Facet.d.ts +0 -26
- package/dist/openbim/IDSSpecifications/src/facets/Material.d.ts +0 -10
- package/dist/openbim/IDSSpecifications/src/facets/PartOf.d.ts +0 -26
- package/dist/openbim/IDSSpecifications/src/facets/Property.d.ts +0 -25
- package/dist/openbim/IDSSpecifications/src/facets/index.d.ts +0 -5
- package/dist/openbim/IDSSpecifications/src/importers/attribute.d.ts +0 -3
- package/dist/openbim/IDSSpecifications/src/importers/classification.d.ts +0 -3
- package/dist/openbim/IDSSpecifications/src/importers/entity.d.ts +0 -3
- package/dist/openbim/IDSSpecifications/src/importers/index.d.ts +0 -3
- package/dist/openbim/IDSSpecifications/src/importers/parameter.d.ts +0 -2
- package/dist/openbim/IDSSpecifications/src/importers/property.d.ts +0 -3
- package/dist/openbim/IDSSpecifications/src/index.d.ts +0 -3
- package/dist/openbim/IDSSpecifications/src/types.d.ts +0 -70
- package/dist/openbim/index.d.ts +0 -2
- package/dist/utils/bbox.d.ts +0 -7
- package/dist/utils/geometry.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -6
- package/dist/utils/materials.d.ts +0 -4
- package/dist/utils/section-generator.d.ts +0 -31
- package/dist/utils/uuid.d.ts +0 -6
- package/dist/utils/vertex-picker.d.ts +0 -116
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as FRAGS from "@thatopen/fragments";
|
|
2
|
-
import { IDSCheckResult, IDSFacetParameter } from "../types";
|
|
3
|
-
import { Components } from "../../../../core/Components";
|
|
4
|
-
import { IDSFacet } from "./Facet";
|
|
5
|
-
export declare class IDSProperty extends IDSFacet {
|
|
6
|
-
facetType: "Property";
|
|
7
|
-
propertySet: IDSFacetParameter;
|
|
8
|
-
baseName: IDSFacetParameter;
|
|
9
|
-
value?: IDSFacetParameter;
|
|
10
|
-
dataType?: string;
|
|
11
|
-
uri?: string;
|
|
12
|
-
private _unsupportedTypes;
|
|
13
|
-
constructor(components: Components, propertySet: IDSFacetParameter, baseName: IDSFacetParameter);
|
|
14
|
-
serialize(type: "applicability" | "requirement"): string;
|
|
15
|
-
getEntities(model: FRAGS.FragmentsGroup, collector?: FRAGS.IfcProperties): Promise<never[]>;
|
|
16
|
-
test(entities: FRAGS.IfcProperties, model: FRAGS.FragmentsGroup): Promise<IDSCheckResult[]>;
|
|
17
|
-
private getItemsAttrName;
|
|
18
|
-
private getValueKey;
|
|
19
|
-
private simplifyPset;
|
|
20
|
-
private getTypePsets;
|
|
21
|
-
private getPsets;
|
|
22
|
-
private evalValue;
|
|
23
|
-
private evalDataType;
|
|
24
|
-
private evalURI;
|
|
25
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
export type IfcVersion = "IFC2X3" | "IFC4" | "IFC4X3_ADD2";
|
|
2
|
-
export type IDSFacetParameterName = "Name" | "PredefinedType" | "Value" | "System" | "URI" | "PropertySet" | "BaseName" | "DataType" | "Value" | "Entity" | "Relation";
|
|
3
|
-
export type IDSFacetType = "Entity" | "Attribute" | "Property" | "Classification" | "Material" | "PartOf";
|
|
4
|
-
export type IDSSimpleCardinality = "required" | "prohibited";
|
|
5
|
-
export type IDSConditionalCardinaltiy = IDSSimpleCardinality | "optional";
|
|
6
|
-
export interface IDSSimpleParameter {
|
|
7
|
-
type: "simple";
|
|
8
|
-
parameter: string | number | boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface IDSEnumerationParameter {
|
|
11
|
-
type: "enumeration";
|
|
12
|
-
parameter: string[] | number[] | boolean[];
|
|
13
|
-
}
|
|
14
|
-
export interface IDSPatternParameter {
|
|
15
|
-
type: "pattern";
|
|
16
|
-
parameter: string;
|
|
17
|
-
}
|
|
18
|
-
export interface IDSBoundsParameter {
|
|
19
|
-
type: "bounds";
|
|
20
|
-
parameter: {
|
|
21
|
-
min?: number;
|
|
22
|
-
minInclusive?: boolean;
|
|
23
|
-
max?: number;
|
|
24
|
-
maxInclusive?: boolean;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export interface IDSLengthParameter {
|
|
28
|
-
type: "length";
|
|
29
|
-
parameter: {
|
|
30
|
-
min?: number;
|
|
31
|
-
length?: number;
|
|
32
|
-
max?: number;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export type IDSRestrictionParameter = IDSEnumerationParameter | IDSPatternParameter | IDSBoundsParameter | IDSLengthParameter;
|
|
36
|
-
export type IDSFacetParameter = IDSSimpleParameter | IDSRestrictionParameter;
|
|
37
|
-
export interface IDSCheck {
|
|
38
|
-
parameter: IDSFacetParameterName;
|
|
39
|
-
currentValue: string | number | boolean | null;
|
|
40
|
-
requiredValue: any;
|
|
41
|
-
pass: boolean;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Represents the result of a check performed by an IDSFacet test.
|
|
45
|
-
*/
|
|
46
|
-
export interface IDSCheckResult {
|
|
47
|
-
guid?: string;
|
|
48
|
-
expressID: number;
|
|
49
|
-
pass: boolean;
|
|
50
|
-
checks: IDSCheck[];
|
|
51
|
-
cardinality: IDSConditionalCardinaltiy;
|
|
52
|
-
}
|
|
53
|
-
export interface IDSInfo {
|
|
54
|
-
title: string;
|
|
55
|
-
description?: string;
|
|
56
|
-
copyright?: string;
|
|
57
|
-
version?: string;
|
|
58
|
-
author?: string;
|
|
59
|
-
date?: Date;
|
|
60
|
-
purpose?: string;
|
|
61
|
-
milestone?: string;
|
|
62
|
-
}
|
|
63
|
-
export interface IDSSpecificationData {
|
|
64
|
-
name: string;
|
|
65
|
-
ifcVersion: Set<IfcVersion>;
|
|
66
|
-
identifier: string;
|
|
67
|
-
description?: string;
|
|
68
|
-
instructions?: string;
|
|
69
|
-
requirementsDescription?: string;
|
|
70
|
-
}
|
package/dist/openbim/index.d.ts
DELETED
package/dist/utils/bbox.d.ts
DELETED
package/dist/utils/geometry.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isPointInFrontOfPlane(point: number[], planePoint: number[], planeNormal: number[]): boolean;
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as THREE from "three";
|
|
2
|
-
import { Component } from "../core";
|
|
3
|
-
export declare class SectionGenerator extends Component {
|
|
4
|
-
/**
|
|
5
|
-
* A unique identifier for the component.
|
|
6
|
-
* This UUID is used to register the component within the Components system.
|
|
7
|
-
*/
|
|
8
|
-
static readonly uuid: "1a193b87-6376-46c8-9e65-62a1576fdb64";
|
|
9
|
-
enabled: boolean;
|
|
10
|
-
private _inverseMatrix;
|
|
11
|
-
private _localPlane;
|
|
12
|
-
private _tempLine;
|
|
13
|
-
private _tempVector;
|
|
14
|
-
private _plane?;
|
|
15
|
-
private _plane2DCoordinateSystem;
|
|
16
|
-
private _precission;
|
|
17
|
-
private _planeAxis?;
|
|
18
|
-
get plane(): THREE.Plane;
|
|
19
|
-
set plane(plane: THREE.Plane);
|
|
20
|
-
createEdges(data: {
|
|
21
|
-
meshes: THREE.Mesh[];
|
|
22
|
-
posAttr: THREE.BufferAttribute;
|
|
23
|
-
}): {
|
|
24
|
-
indexes: number[];
|
|
25
|
-
index: number;
|
|
26
|
-
};
|
|
27
|
-
createFills(buffer: Float32Array, trianglesIndices: number[]): number[];
|
|
28
|
-
private computeFill;
|
|
29
|
-
private updatePlane2DCoordinateSystem;
|
|
30
|
-
private shapecast;
|
|
31
|
-
}
|
package/dist/utils/uuid.d.ts
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import * as THREE from "three";
|
|
2
|
-
import { Component, Components, Disposable, Event, World } from "../core";
|
|
3
|
-
/**
|
|
4
|
-
* Configuration interface for the VertexPicker component.
|
|
5
|
-
*/
|
|
6
|
-
export interface VertexPickerConfig {
|
|
7
|
-
/**
|
|
8
|
-
* If true, only vertices will be picked, not the closest point on the face.
|
|
9
|
-
*/
|
|
10
|
-
showOnlyVertex: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* The maximum distance for snapping to a vertex.
|
|
13
|
-
*/
|
|
14
|
-
snapDistance: number;
|
|
15
|
-
/**
|
|
16
|
-
* The HTML element to use for previewing the picked vertex.
|
|
17
|
-
*/
|
|
18
|
-
previewElement: HTMLElement;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* A class that provides functionality for picking vertices in a 3D scene.
|
|
22
|
-
*/
|
|
23
|
-
export declare class VertexPicker extends Component implements Disposable {
|
|
24
|
-
/** {@link Disposable.onDisposed} */
|
|
25
|
-
readonly onDisposed: Event<unknown>;
|
|
26
|
-
/**
|
|
27
|
-
* An event that is triggered when a vertex is found.
|
|
28
|
-
* The event passes a THREE.Vector3 representing the position of the found vertex.
|
|
29
|
-
*/
|
|
30
|
-
readonly onVertexFound: Event<THREE.Vector3>;
|
|
31
|
-
/**
|
|
32
|
-
* An event that is triggered when a vertex is lost.
|
|
33
|
-
* The event passes a THREE.Vector3 representing the position of the lost vertex.
|
|
34
|
-
*/
|
|
35
|
-
readonly onVertexLost: Event<THREE.Vector3>;
|
|
36
|
-
/**
|
|
37
|
-
* An event that is triggered when the picker is enabled or disabled
|
|
38
|
-
*/
|
|
39
|
-
readonly onEnabled: Event<boolean>;
|
|
40
|
-
/**
|
|
41
|
-
* A reference to the Components instance associated with this VertexPicker.
|
|
42
|
-
*/
|
|
43
|
-
components: Components;
|
|
44
|
-
/**
|
|
45
|
-
* A reference to the working plane used for vertex picking.
|
|
46
|
-
* This plane is used to determine which vertices are considered valid for picking.
|
|
47
|
-
* If this value is null, all vertices are considered valid.
|
|
48
|
-
*/
|
|
49
|
-
workingPlane: THREE.Plane | null;
|
|
50
|
-
private _pickedPoint;
|
|
51
|
-
private _config;
|
|
52
|
-
private _enabled;
|
|
53
|
-
/**
|
|
54
|
-
* Sets the enabled state of the VertexPicker.
|
|
55
|
-
* When enabled, the VertexPicker will actively search for vertices in the 3D scene.
|
|
56
|
-
* When disabled, the VertexPicker will stop searching for vertices and reset the picked point.
|
|
57
|
-
*
|
|
58
|
-
* @param value - The new enabled state.
|
|
59
|
-
*/
|
|
60
|
-
set enabled(value: boolean);
|
|
61
|
-
/**
|
|
62
|
-
* Gets the current enabled state of the VertexPicker.
|
|
63
|
-
*
|
|
64
|
-
* @returns The current enabled state.
|
|
65
|
-
*/
|
|
66
|
-
get enabled(): boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Sets the configuration for the VertexPicker component.
|
|
69
|
-
*
|
|
70
|
-
* @param value - A Partial object containing the configuration properties to update.
|
|
71
|
-
* The properties not provided in the value object will retain their current values.
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* ```typescript
|
|
75
|
-
* vertexPicker.config = {
|
|
76
|
-
* snapDistance: 0.5,
|
|
77
|
-
* showOnlyVertex: true,
|
|
78
|
-
* };
|
|
79
|
-
* ```
|
|
80
|
-
*/
|
|
81
|
-
set config(value: Partial<VertexPickerConfig>);
|
|
82
|
-
/**
|
|
83
|
-
* Gets the current configuration for the VertexPicker component.
|
|
84
|
-
*
|
|
85
|
-
* @returns A copy of the current VertexPickerConfig object.
|
|
86
|
-
*
|
|
87
|
-
* @example
|
|
88
|
-
* ```typescript
|
|
89
|
-
* const currentConfig = vertexPicker.config;
|
|
90
|
-
* console.log(currentConfig.snapDistance); // Output: 0.25
|
|
91
|
-
* ```
|
|
92
|
-
*/
|
|
93
|
-
get config(): Partial<VertexPickerConfig>;
|
|
94
|
-
constructor(components: Components, config?: Partial<VertexPickerConfig>);
|
|
95
|
-
/** {@link Disposable.dispose} */
|
|
96
|
-
dispose(): void;
|
|
97
|
-
/**
|
|
98
|
-
* Performs the vertex picking operation based on the current state of the VertexPicker.
|
|
99
|
-
*
|
|
100
|
-
* @param world - The World instance to use for raycasting.
|
|
101
|
-
*
|
|
102
|
-
* @returns The current picked point, or null if no point is picked.
|
|
103
|
-
*
|
|
104
|
-
* @remarks
|
|
105
|
-
* This method checks if the VertexPicker is enabled. If not, it returns the current picked point.
|
|
106
|
-
* If enabled, it performs raycasting to find the closest intersecting object.
|
|
107
|
-
* It then determines the closest vertex or point on the face, based on the configuration settings.
|
|
108
|
-
* If the picked point is on the working plane (if defined), it triggers the `onVertexFound` event and updates the `pickedPoint`.
|
|
109
|
-
* If the picked point is not on the working plane, it resets the `pickedPoint`.
|
|
110
|
-
* If no intersecting object is found, it triggers the `onVertexLost` event and resets the `pickedPoint`.
|
|
111
|
-
*/
|
|
112
|
-
get(world: World): THREE.Vector3 | null;
|
|
113
|
-
private getClosestVertex;
|
|
114
|
-
private getVertices;
|
|
115
|
-
private getVertex;
|
|
116
|
-
}
|