@kingsy/viewer 2.25.7
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/IViewer.d.ts +157 -0
- package/dist/helpers/flatten.d.ts +11 -0
- package/dist/helpers/typeHelper.d.ts +2 -0
- package/dist/index.d.ts +89 -0
- package/dist/index.js +42 -0
- package/dist/modules/Assets.d.ts +15 -0
- package/dist/modules/EventEmitter.d.ts +7 -0
- package/dist/modules/Helpers.d.ts +3 -0
- package/dist/modules/Intersections.d.ts +20 -0
- package/dist/modules/KingSyRenderer.d.ts +168 -0
- package/dist/modules/LegacyViewer.d.ts +77 -0
- package/dist/modules/Shadowcatcher.d.ts +25 -0
- package/dist/modules/ShadowcatcherConfig.d.ts +14 -0
- package/dist/modules/UrlHelper.d.ts +1 -0
- package/dist/modules/Utils.d.ts +10 -0
- package/dist/modules/Viewer.d.ts +74 -0
- package/dist/modules/WebXrViewer.d.ts +10 -0
- package/dist/modules/World.d.ts +31 -0
- package/dist/modules/batching/Batch.d.ts +62 -0
- package/dist/modules/batching/BatchObject.d.ts +53 -0
- package/dist/modules/batching/Batcher.d.ts +60 -0
- package/dist/modules/batching/DrawRanges.d.ts +6 -0
- package/dist/modules/batching/InstancedBatchObject.d.ts +8 -0
- package/dist/modules/batching/InstancedMeshBatch.d.ts +60 -0
- package/dist/modules/batching/LineBatch.d.ts +52 -0
- package/dist/modules/batching/MeshBatch.d.ts +35 -0
- package/dist/modules/batching/PointBatch.d.ts +29 -0
- package/dist/modules/batching/PrimitiveBatch.d.ts +57 -0
- package/dist/modules/batching/TextBatch.d.ts +41 -0
- package/dist/modules/converter/Geometry.d.ts +38 -0
- package/dist/modules/converter/MeshTriangulationHelper.d.ts +50 -0
- package/dist/modules/converter/Units.d.ts +12 -0
- package/dist/modules/extensions/CameraController.d.ts +95 -0
- package/dist/modules/extensions/Controls.d.ts +91 -0
- package/dist/modules/extensions/DiffExtension.d.ts +50 -0
- package/dist/modules/extensions/ExplodeExtension.d.ts +17 -0
- package/dist/modules/extensions/Extension.d.ts +15 -0
- package/dist/modules/extensions/FilteringExtension.d.ts +55 -0
- package/dist/modules/extensions/HybridCameraController.d.ts +14 -0
- package/dist/modules/extensions/SelectionExtension.d.ts +53 -0
- package/dist/modules/extensions/TransformControls.d.ts +157 -0
- package/dist/modules/extensions/ViewModes.d.ts +32 -0
- package/dist/modules/extensions/controls/FlyControls.d.ts +82 -0
- package/dist/modules/extensions/controls/KingSyControls.d.ts +25 -0
- package/dist/modules/extensions/controls/SmoothOrbitControls.d.ts +222 -0
- package/dist/modules/extensions/measurements/AreaMeasurement.d.ts +64 -0
- package/dist/modules/extensions/measurements/Measurement.d.ts +34 -0
- package/dist/modules/extensions/measurements/MeasurementPointGizmo.d.ts +42 -0
- package/dist/modules/extensions/measurements/MeasurementsExtension.d.ts +71 -0
- package/dist/modules/extensions/measurements/PerpendicularMeasurement.d.ts +19 -0
- package/dist/modules/extensions/measurements/PointMeasurement.d.ts +25 -0
- package/dist/modules/extensions/measurements/PointToPointMeasurement.d.ts +15 -0
- package/dist/modules/extensions/sections/SectionOutlines.d.ts +45 -0
- package/dist/modules/extensions/sections/SectionTool.d.ts +219 -0
- package/dist/modules/filtering/PropertyManager.d.ts +55 -0
- package/dist/modules/input/Input.d.ts +47 -0
- package/dist/modules/loaders/GeometryConverter.d.ts +32 -0
- package/dist/modules/loaders/KingSy/KingSyConverter.d.ts +118 -0
- package/dist/modules/loaders/KingSy/KingSyGeometryConverter.d.ts +127 -0
- package/dist/modules/loaders/KingSy/KingSyLoader.d.ts +18 -0
- package/dist/modules/loaders/KingSy/KingSyOfflineLoader.d.ts +8 -0
- package/dist/modules/loaders/Loader.d.ts +35 -0
- package/dist/modules/loaders/OBJ/ObjConverter.d.ts +18 -0
- package/dist/modules/loaders/OBJ/ObjGeometryConverter.d.ts +14 -0
- package/dist/modules/loaders/OBJ/ObjLoader.d.ts +16 -0
- package/dist/modules/materials/KingSyBasicMaterial.d.ts +26 -0
- package/dist/modules/materials/KingSyDepthMaterial.d.ts +22 -0
- package/dist/modules/materials/KingSyDepthNormalIdMaterial.d.ts +11 -0
- package/dist/modules/materials/KingSyDepthNormalMaterial.d.ts +6 -0
- package/dist/modules/materials/KingSyDisplaceMaterial.d.ts +11 -0
- package/dist/modules/materials/KingSyGhostMaterial.d.ts +8 -0
- package/dist/modules/materials/KingSyLineMaterial.d.ts +20 -0
- package/dist/modules/materials/KingSyMatcapMaterial.d.ts +19 -0
- package/dist/modules/materials/KingSyMaterial.d.ts +65 -0
- package/dist/modules/materials/KingSyNormalMaterial.d.ts +18 -0
- package/dist/modules/materials/KingSyPointColouredMaterial.d.ts +12 -0
- package/dist/modules/materials/KingSyPointMaterial.d.ts +18 -0
- package/dist/modules/materials/KingSyShadowcatcherMaterial.d.ts +10 -0
- package/dist/modules/materials/KingSyStandardColoredMaterial.d.ts +11 -0
- package/dist/modules/materials/KingSyStandardMaterial.d.ts +22 -0
- package/dist/modules/materials/KingSyTextMaterial.d.ts +26 -0
- package/dist/modules/materials/KingSyViewportMaterial.d.ts +13 -0
- package/dist/modules/materials/MaterialOptions.d.ts +6 -0
- package/dist/modules/materials/Materials.d.ts +111 -0
- package/dist/modules/materials/shaders/kingsy-apply-ao-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-apply-ao-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-basic-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-basic-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-copy-output-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-copy-output-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-depth-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-depth-normal-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-depth-normal-id-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-depth-normal-id-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-depth-normal-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-depth-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-displace-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-displace.vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-edges-generator-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-edges-generator-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-ghost-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-ghost-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-line-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-line-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-normal-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-normal-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-point-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-point-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-sao-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-sao-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-shadowcatche-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-shadowcatcher-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-standard-colored-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-standard-colored-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-standard-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-standard-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-static-ao-accumulate-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-static-ao-accumulate-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-static-ao-generate-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-static-ao-generate-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-temporal-supersampling-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-temporal-supersampling-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-text-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-text-vert.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-viewport-frag.d.ts +1 -0
- package/dist/modules/materials/shaders/kingsy-viewport-vert.d.ts +1 -0
- package/dist/modules/objects/AccelerationStructure.d.ts +72 -0
- package/dist/modules/objects/ExtendedInstancedMesh.d.ts +6 -0
- package/dist/modules/objects/JitterQuad.d.ts +10 -0
- package/dist/modules/objects/KingSyCamera.d.ts +31 -0
- package/dist/modules/objects/KingSyInstancedMesh.d.ts +44 -0
- package/dist/modules/objects/KingSyMesh.d.ts +43 -0
- package/dist/modules/objects/KingSyRaycaster.d.ts +42 -0
- package/dist/modules/objects/KingSyText.d.ts +39 -0
- package/dist/modules/objects/KingSyWebGLRenderer.d.ts +24 -0
- package/dist/modules/objects/RotatablePMREMGenerator.d.ts +5 -0
- package/dist/modules/objects/TopLevelAccelerationStructure.d.ts +41 -0
- package/dist/modules/pipeline/Passes/BlendPass.d.ts +17 -0
- package/dist/modules/pipeline/Passes/DepthNormalIdPass.d.ts +12 -0
- package/dist/modules/pipeline/Passes/DepthNormalPass.d.ts +25 -0
- package/dist/modules/pipeline/Passes/DepthPass.d.ts +23 -0
- package/dist/modules/pipeline/Passes/EdgesPass.d.ts +25 -0
- package/dist/modules/pipeline/Passes/GPass.d.ts +88 -0
- package/dist/modules/pipeline/Passes/GeometryPass.d.ts +7 -0
- package/dist/modules/pipeline/Passes/NormalsPass.d.ts +8 -0
- package/dist/modules/pipeline/Passes/OutputPass.d.ts +23 -0
- package/dist/modules/pipeline/Passes/ProgressiveAOPass.d.ts +30 -0
- package/dist/modules/pipeline/Passes/ShadedPass.d.ts +26 -0
- package/dist/modules/pipeline/Passes/ShadowcatcherPass.d.ts +43 -0
- package/dist/modules/pipeline/Passes/StencilMaskPass.d.ts +9 -0
- package/dist/modules/pipeline/Passes/StencilPass.d.ts +9 -0
- package/dist/modules/pipeline/Passes/TAAPass.d.ts +15 -0
- package/dist/modules/pipeline/Passes/ViewportPass.d.ts +22 -0
- package/dist/modules/pipeline/Pipelines/ArcticViewPipeline.d.ts +7 -0
- package/dist/modules/pipeline/Pipelines/DefaultPipeline.d.ts +6 -0
- package/dist/modules/pipeline/Pipelines/EdgesPipeline.d.ts +28 -0
- package/dist/modules/pipeline/Pipelines/PenViewPipeline.d.ts +6 -0
- package/dist/modules/pipeline/Pipelines/Pipeline.d.ts +43 -0
- package/dist/modules/pipeline/Pipelines/ProgressivePipeline.d.ts +24 -0
- package/dist/modules/pipeline/Pipelines/ShadedViewPipeline.d.ts +7 -0
- package/dist/modules/pipeline/Pipelines/SolidViewPipeline.d.ts +6 -0
- package/dist/modules/pipeline/Pipelines/TAAPipeline.d.ts +7 -0
- package/dist/modules/queries/IntersectionQuerySolver.d.ts +11 -0
- package/dist/modules/queries/PointQuerySolver.d.ts +9 -0
- package/dist/modules/queries/Queries.d.ts +9 -0
- package/dist/modules/queries/Query.d.ts +51 -0
- package/dist/modules/three/stats.d.ts +4 -0
- package/dist/modules/tree/NodeMap.d.ts +20 -0
- package/dist/modules/tree/NodeRenderView.d.ts +51 -0
- package/dist/modules/tree/RenderTree.d.ts +36 -0
- package/dist/modules/tree/WorldTree.d.ts +52 -0
- package/dist/modules/utils/AngleDamper.d.ts +18 -0
- package/dist/modules/utils/Damper.d.ts +17 -0
- package/dist/modules/utils/Logger.d.ts +2 -0
- package/dist/type-augmentations/three-extensions.d.ts +1 -0
- package/package.json +99 -0
- package/readme.md +30 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { Vector3 } from 'three';
|
|
2
|
+
import { type PropertyInfo } from './modules/filtering/PropertyManager.js';
|
|
3
|
+
import type { Query, QueryArgsResultMap } from './modules/queries/Query.js';
|
|
4
|
+
import { type TreeNode, WorldTree } from './modules/tree/WorldTree.js';
|
|
5
|
+
import { type Utils } from './modules/Utils.js';
|
|
6
|
+
import { World } from './modules/World.js';
|
|
7
|
+
import KingSyRenderer from './modules/KingSyRenderer.js';
|
|
8
|
+
import { Extension } from './modules/extensions/Extension.js';
|
|
9
|
+
import { Loader } from './modules/loaders/Loader.js';
|
|
10
|
+
import { type Constructor } from 'type-fest';
|
|
11
|
+
import type { Vector3Like } from './modules/batching/BatchObject.js';
|
|
12
|
+
import type { FilteringState } from './modules/extensions/FilteringExtension.js';
|
|
13
|
+
export type KingSyReference = {
|
|
14
|
+
referencedId: string;
|
|
15
|
+
};
|
|
16
|
+
export type KingSyObject = {
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
kingsy_type: string;
|
|
19
|
+
id: string;
|
|
20
|
+
elements?: KingSyReference[];
|
|
21
|
+
children?: KingSyObject[] | KingSyReference[];
|
|
22
|
+
name?: string;
|
|
23
|
+
referencedId?: string;
|
|
24
|
+
units?: string;
|
|
25
|
+
applicationId?: string;
|
|
26
|
+
};
|
|
27
|
+
export interface ViewerParams {
|
|
28
|
+
showStats: boolean;
|
|
29
|
+
environmentSrc: Asset;
|
|
30
|
+
verbose: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare enum AssetType {
|
|
33
|
+
TEXTURE_8BPP = "png",// For now
|
|
34
|
+
TEXTURE_HDR = "hdr",
|
|
35
|
+
TEXTURE_EXR = "exr",
|
|
36
|
+
FONT_JSON = "font-json"
|
|
37
|
+
}
|
|
38
|
+
export interface Asset {
|
|
39
|
+
id: string;
|
|
40
|
+
src: string;
|
|
41
|
+
type: AssetType;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The default HDRI the viewer uses is actually a true HDR image (.exr),
|
|
45
|
+
* specified by the explicit TEXTURE_EXR
|
|
46
|
+
*
|
|
47
|
+
* We do this because bundling an actual .exr or .hdr image format would require
|
|
48
|
+
* anybody consuming the viewer to make adjustments to their build config, to enable
|
|
49
|
+
* its import.
|
|
50
|
+
*
|
|
51
|
+
* Three.js doesn't mind the extension of the asset you load, so an .exr hidden behind
|
|
52
|
+
* a .png will work just fine.
|
|
53
|
+
*/
|
|
54
|
+
export declare const DefaultViewerParams: ViewerParams;
|
|
55
|
+
export declare enum ViewerEvent {
|
|
56
|
+
ObjectClicked = "object-clicked",
|
|
57
|
+
ObjectDoubleClicked = "object-doubleclicked",
|
|
58
|
+
LoadComplete = "load-complete",
|
|
59
|
+
UnloadComplete = "unload-complete",
|
|
60
|
+
UnloadAllComplete = "unload-all-complete",
|
|
61
|
+
Busy = "busy",
|
|
62
|
+
FilteringStateSet = "filtering-state-set",
|
|
63
|
+
LightConfigUpdated = "light-config-updated"
|
|
64
|
+
}
|
|
65
|
+
export interface ViewerEventPayload {
|
|
66
|
+
[ViewerEvent.ObjectClicked]: SelectionEvent | null;
|
|
67
|
+
[ViewerEvent.ObjectDoubleClicked]: SelectionEvent | null;
|
|
68
|
+
[ViewerEvent.LoadComplete]: string;
|
|
69
|
+
[ViewerEvent.UnloadComplete]: string;
|
|
70
|
+
[ViewerEvent.UnloadAllComplete]: void;
|
|
71
|
+
[ViewerEvent.Busy]: boolean;
|
|
72
|
+
[ViewerEvent.FilteringStateSet]: FilteringState;
|
|
73
|
+
[ViewerEvent.LightConfigUpdated]: LightConfiguration;
|
|
74
|
+
}
|
|
75
|
+
export type KingSyView = KingSyObject & {
|
|
76
|
+
origin: Vector3Like;
|
|
77
|
+
target: Vector3Like;
|
|
78
|
+
name?: string;
|
|
79
|
+
upDirection?: Vector3Like;
|
|
80
|
+
forwardDirection?: Vector3Like;
|
|
81
|
+
};
|
|
82
|
+
export type SelectionEvent = {
|
|
83
|
+
multiple: boolean;
|
|
84
|
+
event?: PointerEvent;
|
|
85
|
+
hits: Array<{
|
|
86
|
+
node: TreeNode;
|
|
87
|
+
point: Vector3;
|
|
88
|
+
}>;
|
|
89
|
+
};
|
|
90
|
+
export interface LightConfiguration {
|
|
91
|
+
enabled?: boolean;
|
|
92
|
+
castShadow?: boolean;
|
|
93
|
+
intensity?: number;
|
|
94
|
+
color?: number;
|
|
95
|
+
indirectLightIntensity?: number;
|
|
96
|
+
shadowcatcher?: boolean;
|
|
97
|
+
}
|
|
98
|
+
export interface SunLightConfiguration extends LightConfiguration {
|
|
99
|
+
elevation?: number;
|
|
100
|
+
azimuth?: number;
|
|
101
|
+
radius?: number;
|
|
102
|
+
}
|
|
103
|
+
export declare const DefaultLightConfiguration: SunLightConfiguration;
|
|
104
|
+
export declare enum ObjectLayers {
|
|
105
|
+
STREAM_CONTENT_MESH = 10,
|
|
106
|
+
STREAM_CONTENT_LINE = 11,
|
|
107
|
+
STREAM_CONTENT_POINT = 12,
|
|
108
|
+
STREAM_CONTENT_TEXT = 13,
|
|
109
|
+
STREAM_CONTENT_POINT_CLOUD = 14,
|
|
110
|
+
NONE = 0,
|
|
111
|
+
STREAM_CONTENT = 1,
|
|
112
|
+
PROPS = 2,
|
|
113
|
+
SHADOWCATCHER = 3,
|
|
114
|
+
OVERLAY = 4,
|
|
115
|
+
MEASUREMENTS = 5
|
|
116
|
+
}
|
|
117
|
+
export declare enum UpdateFlags {
|
|
118
|
+
RENDER = 1,
|
|
119
|
+
SHADOWS = 2,
|
|
120
|
+
CLIPPING_PLANES = 4,
|
|
121
|
+
RENDER_RESET = 8
|
|
122
|
+
}
|
|
123
|
+
export interface MaterialOptions {
|
|
124
|
+
stencilOutlines?: StencilOutlineType;
|
|
125
|
+
pointSize?: number;
|
|
126
|
+
depthWrite?: number;
|
|
127
|
+
}
|
|
128
|
+
export declare enum StencilOutlineType {
|
|
129
|
+
NONE = 0,
|
|
130
|
+
OVERLAY = 1,
|
|
131
|
+
OUTLINE_ONLY = 2
|
|
132
|
+
}
|
|
133
|
+
export interface IViewer {
|
|
134
|
+
get Utils(): Utils;
|
|
135
|
+
get World(): World;
|
|
136
|
+
init(): Promise<void>;
|
|
137
|
+
resize(): void;
|
|
138
|
+
on<T extends ViewerEvent>(eventType: T, handler: (arg: ViewerEventPayload[T]) => void): void;
|
|
139
|
+
requestRender(flags?: UpdateFlags): void;
|
|
140
|
+
setLightConfiguration(config: LightConfiguration): void;
|
|
141
|
+
getViews(): KingSyView[];
|
|
142
|
+
loadObject(loader: Loader, zoomToObject?: boolean): Promise<void>;
|
|
143
|
+
cancelLoad(url: string, unload?: boolean): Promise<void>;
|
|
144
|
+
unloadObject(url: string): Promise<void>;
|
|
145
|
+
unloadAll(): Promise<void>;
|
|
146
|
+
screenshot(): Promise<string>;
|
|
147
|
+
getObjectProperties(resourceURL?: string, bypassCache?: boolean): Promise<PropertyInfo[]>;
|
|
148
|
+
/** Data ops */
|
|
149
|
+
getWorldTree(): WorldTree;
|
|
150
|
+
query<T extends Query>(query: T): QueryArgsResultMap[T['operation']] | null;
|
|
151
|
+
getRenderer(): KingSyRenderer;
|
|
152
|
+
getContainer(): HTMLElement;
|
|
153
|
+
createExtension<T extends Extension>(type: Constructor<T>): T;
|
|
154
|
+
getExtension<T extends Extension>(type: Constructor<T>): T;
|
|
155
|
+
hasExtension<T extends Extension>(type: Constructor<T>): boolean;
|
|
156
|
+
dispose(): void;
|
|
157
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flattens a kingsy object. It will ignore arrays, null and undefined valuesm, as well as various 'safe to ignore' kingsy properties, such as
|
|
3
|
+
* bbox, __closure, __parents, totalChildrenCount.
|
|
4
|
+
* @param obj object to flatten
|
|
5
|
+
* @returns an object with all its props flattened into `prop.subprop.subsubprop`.
|
|
6
|
+
*/
|
|
7
|
+
declare const flattenObject: (obj: {
|
|
8
|
+
[x: string]: unknown;
|
|
9
|
+
id: unknown;
|
|
10
|
+
}) => Record<string, unknown>;
|
|
11
|
+
export default flattenObject;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Viewer } from './modules/Viewer.js';
|
|
2
|
+
import { AssetType, DefaultLightConfiguration, DefaultViewerParams, type IViewer, ObjectLayers, type SelectionEvent, type KingSyObject, type KingSyReference, type KingSyView, UpdateFlags, ViewerEvent, type ViewerParams, LightConfiguration, ViewerEventPayload, StencilOutlineType } from './IViewer.js';
|
|
3
|
+
import type { PropertyInfo, StringPropertyInfo, NumericPropertyInfo } from './modules/filtering/PropertyManager.js';
|
|
4
|
+
import { type SunLightConfiguration } from './IViewer.js';
|
|
5
|
+
import { World } from './modules/World.js';
|
|
6
|
+
import { type NodeData, type TreeNode, WorldTree } from './modules/tree/WorldTree.js';
|
|
7
|
+
import type { PointQuery, QueryResult, IntersectionQuery, PointQueryResult, IntersectionQueryResult } from './modules/queries/Query.js';
|
|
8
|
+
import { type Utils } from './modules/Utils.js';
|
|
9
|
+
import { BatchObject } from './modules/batching/BatchObject.js';
|
|
10
|
+
import { type MeasurementOptions, MeasurementType, MeasurementsExtension } from './modules/extensions/measurements/MeasurementsExtension.js';
|
|
11
|
+
import { Units } from './modules/converter/Units.js';
|
|
12
|
+
import { SelectionExtension, SelectionExtensionOptions, DefaultSelectionExtensionOptions } from './modules/extensions/SelectionExtension.js';
|
|
13
|
+
import { CameraController, CameraControllerOptions, NearPlaneCalculation } from './modules/extensions/CameraController.js';
|
|
14
|
+
import { type InlineView } from './modules/extensions/CameraController.js';
|
|
15
|
+
import { type CanonicalView } from './modules/extensions/CameraController.js';
|
|
16
|
+
import { CameraEvent, CameraEventPayload } from './modules/objects/KingSyCamera.js';
|
|
17
|
+
import { SectionOutlines } from './modules/extensions/sections/SectionOutlines.js';
|
|
18
|
+
import { FilteringExtension, type FilteringState } from './modules/extensions/FilteringExtension.js';
|
|
19
|
+
import { Extension } from './modules/extensions/Extension.js';
|
|
20
|
+
import { ExplodeEvent, ExplodeExtension } from './modules/extensions/ExplodeExtension.js';
|
|
21
|
+
import { DiffExtension, type DiffResult, VisualDiffMode } from './modules/extensions/DiffExtension.js';
|
|
22
|
+
import { Loader, LoaderEvent } from './modules/loaders/Loader.js';
|
|
23
|
+
import { KingSyLoader } from './modules/loaders/KingSy/KingSyLoader.js';
|
|
24
|
+
import { ObjLoader } from './modules/loaders/OBJ/ObjLoader.js';
|
|
25
|
+
import { LegacyViewer } from './modules/LegacyViewer.js';
|
|
26
|
+
import { GeometryConverter, KingSyType } from './modules/loaders/GeometryConverter.js';
|
|
27
|
+
import Input, { InputEvent, InputEventPayload } from './modules/input/Input.js';
|
|
28
|
+
import { GeometryType } from './modules/batching/Batch.js';
|
|
29
|
+
import { MeshBatch } from './modules/batching/MeshBatch.js';
|
|
30
|
+
import KingSyStandardMaterial from './modules/materials/KingSyStandardMaterial.js';
|
|
31
|
+
import KingSyTextMaterial from './modules/materials/KingSyTextMaterial.js';
|
|
32
|
+
import { KingSyText } from './modules/objects/KingSyText.js';
|
|
33
|
+
import { NodeRenderView } from './modules/tree/NodeRenderView.js';
|
|
34
|
+
import { CONTAINED, INTERSECTED, NOT_INTERSECTED, type ExtendedIntersection } from './modules/objects/KingSyRaycaster.js';
|
|
35
|
+
import { KingSyGeometryConverter } from './modules/loaders/KingSy/KingSyGeometryConverter.js';
|
|
36
|
+
import { Assets } from './modules/Assets.js';
|
|
37
|
+
import { InstancedBatchObject } from './modules/batching/InstancedBatchObject.js';
|
|
38
|
+
import { HybridCameraController } from './modules/extensions/HybridCameraController.js';
|
|
39
|
+
import KingSyBasicMaterial from './modules/materials/KingSyBasicMaterial.js';
|
|
40
|
+
import LineBatch from './modules/batching/LineBatch.js';
|
|
41
|
+
import { PointBatch } from './modules/batching/PointBatch.js';
|
|
42
|
+
import TextBatch from './modules/batching/TextBatch.js';
|
|
43
|
+
import { ArcticViewPipeline } from './modules/pipeline/Pipelines/ArcticViewPipeline.js';
|
|
44
|
+
import { DefaultPipeline } from './modules/pipeline/Pipelines/DefaultPipeline.js';
|
|
45
|
+
import { PenViewPipeline } from './modules/pipeline/Pipelines/PenViewPipeline.js';
|
|
46
|
+
import { SolidViewPipeline } from './modules/pipeline/Pipelines/SolidViewPipeline.js';
|
|
47
|
+
import { TAAPipeline } from './modules/pipeline/Pipelines/TAAPipeline.js';
|
|
48
|
+
import KingSyRenderer from './modules/KingSyRenderer.js';
|
|
49
|
+
import { RenderTree } from './modules/tree/RenderTree.js';
|
|
50
|
+
import KingSyConverter from './modules/loaders/KingSy/KingSyConverter.js';
|
|
51
|
+
import { ViewMode, ViewModes } from './modules/extensions/ViewModes.js';
|
|
52
|
+
import { BaseGPass, ClearFlags, GPass, ObjectVisibility, PassOptions, ProgressiveGPass } from './modules/pipeline/Passes/GPass.js';
|
|
53
|
+
import { DefaultPipelineOptions, Pipeline } from './modules/pipeline/Pipelines/Pipeline.js';
|
|
54
|
+
import { ProgressivePipeline } from './modules/pipeline/Pipelines/ProgressivePipeline.js';
|
|
55
|
+
import { DepthPass, DepthPassOptions } from './modules/pipeline/Passes/DepthPass.js';
|
|
56
|
+
import { GeometryPass } from './modules/pipeline/Passes/GeometryPass.js';
|
|
57
|
+
import { NormalsPass } from './modules/pipeline/Passes/NormalsPass.js';
|
|
58
|
+
import { InputType, OutputPass, OutputPassOptions } from './modules/pipeline/Passes/OutputPass.js';
|
|
59
|
+
import { ViewportPass, ViewportPassOptions } from './modules/pipeline/Passes/ViewportPass.js';
|
|
60
|
+
import { BlendPass, BlendPassOptions } from './modules/pipeline/Passes/BlendPass.js';
|
|
61
|
+
import { DepthNormalPass } from './modules/pipeline/Passes/DepthNormalPass.js';
|
|
62
|
+
import { ShadedPass } from './modules/pipeline/Passes/ShadedPass.js';
|
|
63
|
+
import { DefaultProgressiveAOPassOptions, ProgressiveAOPass, ProgressiveAOPassOptions } from './modules/pipeline/Passes/ProgressiveAOPass.js';
|
|
64
|
+
import { TAAPass } from './modules/pipeline/Passes/TAAPass.js';
|
|
65
|
+
import { FilterMaterial, FilterMaterialOptions, FilterMaterialType } from './modules/materials/Materials.js';
|
|
66
|
+
import { KingSyOfflineLoader } from './modules/loaders/KingSy/KingSyOfflineLoader.js';
|
|
67
|
+
import { AccelerationStructure } from './modules/objects/AccelerationStructure.js';
|
|
68
|
+
import { TopLevelAccelerationStructure } from './modules/objects/TopLevelAccelerationStructure.js';
|
|
69
|
+
import { StencilPass } from './modules/pipeline/Passes/StencilPass.js';
|
|
70
|
+
import { KingSyWebGLRenderer } from './modules/objects/KingSyWebGLRenderer.js';
|
|
71
|
+
import { InstancedMeshBatch } from './modules/batching/InstancedMeshBatch.js';
|
|
72
|
+
import { ViewModeEvent, ViewModeEventPayload } from './modules/extensions/ViewModes.js';
|
|
73
|
+
import { ShadedViewPipeline } from './modules/pipeline/Pipelines/ShadedViewPipeline.js';
|
|
74
|
+
import KingSyMesh from './modules/objects/KingSyMesh.js';
|
|
75
|
+
import KingSyInstancedMesh from './modules/objects/KingSyInstancedMesh.js';
|
|
76
|
+
import { SectionTool, SectionToolEvent, SectionToolEventPayload } from './modules/extensions/sections/SectionTool.js';
|
|
77
|
+
import { WebXrViewer } from './modules/WebXrViewer.js';
|
|
78
|
+
import { StencilMaskPass } from './modules/pipeline/Passes/StencilMaskPass.js';
|
|
79
|
+
import { DefaultEdgesPassOptions, EdgesPass, EdgesPassOptions } from './modules/pipeline/Passes/EdgesPass.js';
|
|
80
|
+
import { Measurement, MeasurementState } from './modules/extensions/measurements/Measurement.js';
|
|
81
|
+
import { PointToPointMeasurement } from './modules/extensions/measurements/PointToPointMeasurement.js';
|
|
82
|
+
import { PerpendicularMeasurement } from './modules/extensions/measurements/PerpendicularMeasurement.js';
|
|
83
|
+
import { AreaMeasurement } from './modules/extensions/measurements/AreaMeasurement.js';
|
|
84
|
+
import { PointMeasurement } from './modules/extensions/measurements/PointMeasurement.js';
|
|
85
|
+
import { DefaultEdgesPipelineOptions, EdgesPipeline } from './modules/pipeline/Pipelines/EdgesPipeline.js';
|
|
86
|
+
import { Geometry } from './modules/converter/Geometry.js';
|
|
87
|
+
export { Viewer, LegacyViewer, WebXrViewer, KingSyWebGLRenderer, DefaultViewerParams, ViewerEvent, DefaultLightConfiguration, World, BatchObject, InstancedBatchObject, WorldTree, RenderTree, VisualDiffMode, Measurement, PointToPointMeasurement, PerpendicularMeasurement, AreaMeasurement, PointMeasurement, MeasurementType, MeasurementState, Units, Extension, SelectionExtension, CameraController, SectionTool, SectionOutlines, MeasurementsExtension, FilteringExtension, CameraEvent, ExplodeExtension, ExplodeEvent, DiffExtension, Loader, KingSyConverter, GeometryConverter, Geometry, KingSyLoader, ObjLoader, LoaderEvent, UpdateFlags, KingSyType, Input, InputEvent, ObjectLayers, GeometryType, MeshBatch, InstancedMeshBatch, LineBatch, PointBatch, TextBatch, AccelerationStructure, TopLevelAccelerationStructure, KingSyStandardMaterial, KingSyBasicMaterial, KingSyTextMaterial, KingSyText, NodeRenderView, KingSyGeometryConverter, Assets, AssetType, HybridCameraController, KingSyRenderer, SectionToolEvent, StencilOutlineType, GPass, BaseGPass, ProgressiveGPass, DepthPass, GeometryPass, NormalsPass, OutputPass, ViewportPass, BlendPass, DepthNormalPass, ShadedPass as BasitPass, ProgressiveAOPass, TAAPass, StencilPass, StencilMaskPass, EdgesPass, PassOptions, EdgesPassOptions as EdgePassOptions, BlendPassOptions, DepthPassOptions, OutputPassOptions, ProgressiveAOPassOptions, ViewportPassOptions, DefaultEdgesPassOptions, DefaultProgressiveAOPassOptions, ClearFlags, ObjectVisibility, InputType, Pipeline, ProgressivePipeline, DefaultPipeline, EdgesPipeline, SolidViewPipeline, PenViewPipeline, ArcticViewPipeline, TAAPipeline, ShadedViewPipeline, DefaultPipelineOptions, DefaultEdgesPipelineOptions, ViewModes, ViewMode, FilterMaterial, FilterMaterialType, FilterMaterialOptions, KingSyOfflineLoader, NOT_INTERSECTED, INTERSECTED, CONTAINED, ViewModeEvent, KingSyMesh, KingSyInstancedMesh, CameraControllerOptions, NearPlaneCalculation };
|
|
88
|
+
export type { IViewer, ViewerParams, SelectionEvent, PropertyInfo, StringPropertyInfo, NumericPropertyInfo, LightConfiguration, SunLightConfiguration, KingSyObject, KingSyReference, KingSyView, CanonicalView, InlineView, TreeNode, NodeData, PointQuery, IntersectionQuery, QueryResult, PointQueryResult, IntersectionQueryResult, Utils, DiffResult, MeasurementOptions, FilteringState, ExtendedIntersection, ViewerEventPayload, InputEventPayload, SectionToolEventPayload, CameraEventPayload, SelectionExtensionOptions, DefaultSelectionExtensionOptions, ViewModeEventPayload };
|
|
89
|
+
export * as UrlHelper from './modules/UrlHelper.js';
|