@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.
Files changed (177) hide show
  1. package/dist/IViewer.d.ts +157 -0
  2. package/dist/helpers/flatten.d.ts +11 -0
  3. package/dist/helpers/typeHelper.d.ts +2 -0
  4. package/dist/index.d.ts +89 -0
  5. package/dist/index.js +42 -0
  6. package/dist/modules/Assets.d.ts +15 -0
  7. package/dist/modules/EventEmitter.d.ts +7 -0
  8. package/dist/modules/Helpers.d.ts +3 -0
  9. package/dist/modules/Intersections.d.ts +20 -0
  10. package/dist/modules/KingSyRenderer.d.ts +168 -0
  11. package/dist/modules/LegacyViewer.d.ts +77 -0
  12. package/dist/modules/Shadowcatcher.d.ts +25 -0
  13. package/dist/modules/ShadowcatcherConfig.d.ts +14 -0
  14. package/dist/modules/UrlHelper.d.ts +1 -0
  15. package/dist/modules/Utils.d.ts +10 -0
  16. package/dist/modules/Viewer.d.ts +74 -0
  17. package/dist/modules/WebXrViewer.d.ts +10 -0
  18. package/dist/modules/World.d.ts +31 -0
  19. package/dist/modules/batching/Batch.d.ts +62 -0
  20. package/dist/modules/batching/BatchObject.d.ts +53 -0
  21. package/dist/modules/batching/Batcher.d.ts +60 -0
  22. package/dist/modules/batching/DrawRanges.d.ts +6 -0
  23. package/dist/modules/batching/InstancedBatchObject.d.ts +8 -0
  24. package/dist/modules/batching/InstancedMeshBatch.d.ts +60 -0
  25. package/dist/modules/batching/LineBatch.d.ts +52 -0
  26. package/dist/modules/batching/MeshBatch.d.ts +35 -0
  27. package/dist/modules/batching/PointBatch.d.ts +29 -0
  28. package/dist/modules/batching/PrimitiveBatch.d.ts +57 -0
  29. package/dist/modules/batching/TextBatch.d.ts +41 -0
  30. package/dist/modules/converter/Geometry.d.ts +38 -0
  31. package/dist/modules/converter/MeshTriangulationHelper.d.ts +50 -0
  32. package/dist/modules/converter/Units.d.ts +12 -0
  33. package/dist/modules/extensions/CameraController.d.ts +95 -0
  34. package/dist/modules/extensions/Controls.d.ts +91 -0
  35. package/dist/modules/extensions/DiffExtension.d.ts +50 -0
  36. package/dist/modules/extensions/ExplodeExtension.d.ts +17 -0
  37. package/dist/modules/extensions/Extension.d.ts +15 -0
  38. package/dist/modules/extensions/FilteringExtension.d.ts +55 -0
  39. package/dist/modules/extensions/HybridCameraController.d.ts +14 -0
  40. package/dist/modules/extensions/SelectionExtension.d.ts +53 -0
  41. package/dist/modules/extensions/TransformControls.d.ts +157 -0
  42. package/dist/modules/extensions/ViewModes.d.ts +32 -0
  43. package/dist/modules/extensions/controls/FlyControls.d.ts +82 -0
  44. package/dist/modules/extensions/controls/KingSyControls.d.ts +25 -0
  45. package/dist/modules/extensions/controls/SmoothOrbitControls.d.ts +222 -0
  46. package/dist/modules/extensions/measurements/AreaMeasurement.d.ts +64 -0
  47. package/dist/modules/extensions/measurements/Measurement.d.ts +34 -0
  48. package/dist/modules/extensions/measurements/MeasurementPointGizmo.d.ts +42 -0
  49. package/dist/modules/extensions/measurements/MeasurementsExtension.d.ts +71 -0
  50. package/dist/modules/extensions/measurements/PerpendicularMeasurement.d.ts +19 -0
  51. package/dist/modules/extensions/measurements/PointMeasurement.d.ts +25 -0
  52. package/dist/modules/extensions/measurements/PointToPointMeasurement.d.ts +15 -0
  53. package/dist/modules/extensions/sections/SectionOutlines.d.ts +45 -0
  54. package/dist/modules/extensions/sections/SectionTool.d.ts +219 -0
  55. package/dist/modules/filtering/PropertyManager.d.ts +55 -0
  56. package/dist/modules/input/Input.d.ts +47 -0
  57. package/dist/modules/loaders/GeometryConverter.d.ts +32 -0
  58. package/dist/modules/loaders/KingSy/KingSyConverter.d.ts +118 -0
  59. package/dist/modules/loaders/KingSy/KingSyGeometryConverter.d.ts +127 -0
  60. package/dist/modules/loaders/KingSy/KingSyLoader.d.ts +18 -0
  61. package/dist/modules/loaders/KingSy/KingSyOfflineLoader.d.ts +8 -0
  62. package/dist/modules/loaders/Loader.d.ts +35 -0
  63. package/dist/modules/loaders/OBJ/ObjConverter.d.ts +18 -0
  64. package/dist/modules/loaders/OBJ/ObjGeometryConverter.d.ts +14 -0
  65. package/dist/modules/loaders/OBJ/ObjLoader.d.ts +16 -0
  66. package/dist/modules/materials/KingSyBasicMaterial.d.ts +26 -0
  67. package/dist/modules/materials/KingSyDepthMaterial.d.ts +22 -0
  68. package/dist/modules/materials/KingSyDepthNormalIdMaterial.d.ts +11 -0
  69. package/dist/modules/materials/KingSyDepthNormalMaterial.d.ts +6 -0
  70. package/dist/modules/materials/KingSyDisplaceMaterial.d.ts +11 -0
  71. package/dist/modules/materials/KingSyGhostMaterial.d.ts +8 -0
  72. package/dist/modules/materials/KingSyLineMaterial.d.ts +20 -0
  73. package/dist/modules/materials/KingSyMatcapMaterial.d.ts +19 -0
  74. package/dist/modules/materials/KingSyMaterial.d.ts +65 -0
  75. package/dist/modules/materials/KingSyNormalMaterial.d.ts +18 -0
  76. package/dist/modules/materials/KingSyPointColouredMaterial.d.ts +12 -0
  77. package/dist/modules/materials/KingSyPointMaterial.d.ts +18 -0
  78. package/dist/modules/materials/KingSyShadowcatcherMaterial.d.ts +10 -0
  79. package/dist/modules/materials/KingSyStandardColoredMaterial.d.ts +11 -0
  80. package/dist/modules/materials/KingSyStandardMaterial.d.ts +22 -0
  81. package/dist/modules/materials/KingSyTextMaterial.d.ts +26 -0
  82. package/dist/modules/materials/KingSyViewportMaterial.d.ts +13 -0
  83. package/dist/modules/materials/MaterialOptions.d.ts +6 -0
  84. package/dist/modules/materials/Materials.d.ts +111 -0
  85. package/dist/modules/materials/shaders/kingsy-apply-ao-frag.d.ts +1 -0
  86. package/dist/modules/materials/shaders/kingsy-apply-ao-vert.d.ts +1 -0
  87. package/dist/modules/materials/shaders/kingsy-basic-frag.d.ts +1 -0
  88. package/dist/modules/materials/shaders/kingsy-basic-vert.d.ts +1 -0
  89. package/dist/modules/materials/shaders/kingsy-copy-output-frag.d.ts +1 -0
  90. package/dist/modules/materials/shaders/kingsy-copy-output-vert.d.ts +1 -0
  91. package/dist/modules/materials/shaders/kingsy-depth-frag.d.ts +1 -0
  92. package/dist/modules/materials/shaders/kingsy-depth-normal-frag.d.ts +1 -0
  93. package/dist/modules/materials/shaders/kingsy-depth-normal-id-frag.d.ts +1 -0
  94. package/dist/modules/materials/shaders/kingsy-depth-normal-id-vert.d.ts +1 -0
  95. package/dist/modules/materials/shaders/kingsy-depth-normal-vert.d.ts +1 -0
  96. package/dist/modules/materials/shaders/kingsy-depth-vert.d.ts +1 -0
  97. package/dist/modules/materials/shaders/kingsy-displace-frag.d.ts +1 -0
  98. package/dist/modules/materials/shaders/kingsy-displace.vert.d.ts +1 -0
  99. package/dist/modules/materials/shaders/kingsy-edges-generator-frag.d.ts +1 -0
  100. package/dist/modules/materials/shaders/kingsy-edges-generator-vert.d.ts +1 -0
  101. package/dist/modules/materials/shaders/kingsy-ghost-frag.d.ts +1 -0
  102. package/dist/modules/materials/shaders/kingsy-ghost-vert.d.ts +1 -0
  103. package/dist/modules/materials/shaders/kingsy-line-frag.d.ts +1 -0
  104. package/dist/modules/materials/shaders/kingsy-line-vert.d.ts +1 -0
  105. package/dist/modules/materials/shaders/kingsy-normal-frag.d.ts +1 -0
  106. package/dist/modules/materials/shaders/kingsy-normal-vert.d.ts +1 -0
  107. package/dist/modules/materials/shaders/kingsy-point-frag.d.ts +1 -0
  108. package/dist/modules/materials/shaders/kingsy-point-vert.d.ts +1 -0
  109. package/dist/modules/materials/shaders/kingsy-sao-frag.d.ts +1 -0
  110. package/dist/modules/materials/shaders/kingsy-sao-vert.d.ts +1 -0
  111. package/dist/modules/materials/shaders/kingsy-shadowcatche-frag.d.ts +1 -0
  112. package/dist/modules/materials/shaders/kingsy-shadowcatcher-vert.d.ts +1 -0
  113. package/dist/modules/materials/shaders/kingsy-standard-colored-frag.d.ts +1 -0
  114. package/dist/modules/materials/shaders/kingsy-standard-colored-vert.d.ts +1 -0
  115. package/dist/modules/materials/shaders/kingsy-standard-frag.d.ts +1 -0
  116. package/dist/modules/materials/shaders/kingsy-standard-vert.d.ts +1 -0
  117. package/dist/modules/materials/shaders/kingsy-static-ao-accumulate-frag.d.ts +1 -0
  118. package/dist/modules/materials/shaders/kingsy-static-ao-accumulate-vert.d.ts +1 -0
  119. package/dist/modules/materials/shaders/kingsy-static-ao-generate-frag.d.ts +1 -0
  120. package/dist/modules/materials/shaders/kingsy-static-ao-generate-vert.d.ts +1 -0
  121. package/dist/modules/materials/shaders/kingsy-temporal-supersampling-frag.d.ts +1 -0
  122. package/dist/modules/materials/shaders/kingsy-temporal-supersampling-vert.d.ts +1 -0
  123. package/dist/modules/materials/shaders/kingsy-text-frag.d.ts +1 -0
  124. package/dist/modules/materials/shaders/kingsy-text-vert.d.ts +1 -0
  125. package/dist/modules/materials/shaders/kingsy-viewport-frag.d.ts +1 -0
  126. package/dist/modules/materials/shaders/kingsy-viewport-vert.d.ts +1 -0
  127. package/dist/modules/objects/AccelerationStructure.d.ts +72 -0
  128. package/dist/modules/objects/ExtendedInstancedMesh.d.ts +6 -0
  129. package/dist/modules/objects/JitterQuad.d.ts +10 -0
  130. package/dist/modules/objects/KingSyCamera.d.ts +31 -0
  131. package/dist/modules/objects/KingSyInstancedMesh.d.ts +44 -0
  132. package/dist/modules/objects/KingSyMesh.d.ts +43 -0
  133. package/dist/modules/objects/KingSyRaycaster.d.ts +42 -0
  134. package/dist/modules/objects/KingSyText.d.ts +39 -0
  135. package/dist/modules/objects/KingSyWebGLRenderer.d.ts +24 -0
  136. package/dist/modules/objects/RotatablePMREMGenerator.d.ts +5 -0
  137. package/dist/modules/objects/TopLevelAccelerationStructure.d.ts +41 -0
  138. package/dist/modules/pipeline/Passes/BlendPass.d.ts +17 -0
  139. package/dist/modules/pipeline/Passes/DepthNormalIdPass.d.ts +12 -0
  140. package/dist/modules/pipeline/Passes/DepthNormalPass.d.ts +25 -0
  141. package/dist/modules/pipeline/Passes/DepthPass.d.ts +23 -0
  142. package/dist/modules/pipeline/Passes/EdgesPass.d.ts +25 -0
  143. package/dist/modules/pipeline/Passes/GPass.d.ts +88 -0
  144. package/dist/modules/pipeline/Passes/GeometryPass.d.ts +7 -0
  145. package/dist/modules/pipeline/Passes/NormalsPass.d.ts +8 -0
  146. package/dist/modules/pipeline/Passes/OutputPass.d.ts +23 -0
  147. package/dist/modules/pipeline/Passes/ProgressiveAOPass.d.ts +30 -0
  148. package/dist/modules/pipeline/Passes/ShadedPass.d.ts +26 -0
  149. package/dist/modules/pipeline/Passes/ShadowcatcherPass.d.ts +43 -0
  150. package/dist/modules/pipeline/Passes/StencilMaskPass.d.ts +9 -0
  151. package/dist/modules/pipeline/Passes/StencilPass.d.ts +9 -0
  152. package/dist/modules/pipeline/Passes/TAAPass.d.ts +15 -0
  153. package/dist/modules/pipeline/Passes/ViewportPass.d.ts +22 -0
  154. package/dist/modules/pipeline/Pipelines/ArcticViewPipeline.d.ts +7 -0
  155. package/dist/modules/pipeline/Pipelines/DefaultPipeline.d.ts +6 -0
  156. package/dist/modules/pipeline/Pipelines/EdgesPipeline.d.ts +28 -0
  157. package/dist/modules/pipeline/Pipelines/PenViewPipeline.d.ts +6 -0
  158. package/dist/modules/pipeline/Pipelines/Pipeline.d.ts +43 -0
  159. package/dist/modules/pipeline/Pipelines/ProgressivePipeline.d.ts +24 -0
  160. package/dist/modules/pipeline/Pipelines/ShadedViewPipeline.d.ts +7 -0
  161. package/dist/modules/pipeline/Pipelines/SolidViewPipeline.d.ts +6 -0
  162. package/dist/modules/pipeline/Pipelines/TAAPipeline.d.ts +7 -0
  163. package/dist/modules/queries/IntersectionQuerySolver.d.ts +11 -0
  164. package/dist/modules/queries/PointQuerySolver.d.ts +9 -0
  165. package/dist/modules/queries/Queries.d.ts +9 -0
  166. package/dist/modules/queries/Query.d.ts +51 -0
  167. package/dist/modules/three/stats.d.ts +4 -0
  168. package/dist/modules/tree/NodeMap.d.ts +20 -0
  169. package/dist/modules/tree/NodeRenderView.d.ts +51 -0
  170. package/dist/modules/tree/RenderTree.d.ts +36 -0
  171. package/dist/modules/tree/WorldTree.d.ts +52 -0
  172. package/dist/modules/utils/AngleDamper.d.ts +18 -0
  173. package/dist/modules/utils/Damper.d.ts +17 -0
  174. package/dist/modules/utils/Logger.d.ts +2 -0
  175. package/dist/type-augmentations/three-extensions.d.ts +1 -0
  176. package/package.json +99 -0
  177. 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;
@@ -0,0 +1,2 @@
1
+ export type Maybe<T> = T | null;
2
+ export type Optional<T> = T | undefined;
@@ -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';