three-cad-viewer 4.3.4 → 4.3.6

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 (59) hide show
  1. package/dist/scene/clipping.d.ts +6 -0
  2. package/dist/three-cad-viewer.esm.js +20 -5
  3. package/dist/three-cad-viewer.esm.js.map +1 -1
  4. package/dist/three-cad-viewer.esm.min.js +1 -1
  5. package/dist/three-cad-viewer.js +20 -5
  6. package/dist/three-cad-viewer.min.js +1 -1
  7. package/package.json +2 -3
  8. package/src/_version.ts +0 -1
  9. package/src/camera/camera.ts +0 -445
  10. package/src/camera/controls/CADOrbitControls.ts +0 -241
  11. package/src/camera/controls/CADTrackballControls.ts +0 -598
  12. package/src/camera/controls.ts +0 -380
  13. package/src/core/patches.ts +0 -16
  14. package/src/core/studio-manager.ts +0 -652
  15. package/src/core/types.ts +0 -892
  16. package/src/core/viewer-state.ts +0 -784
  17. package/src/core/viewer.ts +0 -4821
  18. package/src/index.ts +0 -151
  19. package/src/rendering/environment.ts +0 -840
  20. package/src/rendering/light-detection.ts +0 -327
  21. package/src/rendering/material-factory.ts +0 -735
  22. package/src/rendering/material-presets.ts +0 -289
  23. package/src/rendering/raycast.ts +0 -291
  24. package/src/rendering/room-environment.ts +0 -192
  25. package/src/rendering/studio-composer.ts +0 -577
  26. package/src/rendering/studio-floor.ts +0 -108
  27. package/src/rendering/texture-cache.ts +0 -324
  28. package/src/rendering/tree-model.ts +0 -542
  29. package/src/rendering/triplanar.ts +0 -329
  30. package/src/scene/animation.ts +0 -343
  31. package/src/scene/axes.ts +0 -108
  32. package/src/scene/bbox.ts +0 -223
  33. package/src/scene/clipping.ts +0 -640
  34. package/src/scene/grid.ts +0 -864
  35. package/src/scene/nestedgroup.ts +0 -1444
  36. package/src/scene/objectgroup.ts +0 -866
  37. package/src/scene/orientation.ts +0 -259
  38. package/src/scene/render-shape.ts +0 -634
  39. package/src/tools/cad_tools/measure.ts +0 -811
  40. package/src/tools/cad_tools/select.ts +0 -100
  41. package/src/tools/cad_tools/tools.ts +0 -231
  42. package/src/tools/cad_tools/ui.ts +0 -454
  43. package/src/tools/cad_tools/zebra.ts +0 -369
  44. package/src/types/html.d.ts +0 -5
  45. package/src/types/n8ao.d.ts +0 -28
  46. package/src/types/three-augmentation.d.ts +0 -60
  47. package/src/ui/display.ts +0 -3295
  48. package/src/ui/index.html +0 -505
  49. package/src/ui/info.ts +0 -177
  50. package/src/ui/slider.ts +0 -206
  51. package/src/ui/toolbar.ts +0 -347
  52. package/src/ui/treeview.ts +0 -945
  53. package/src/utils/decode-instances.ts +0 -233
  54. package/src/utils/font.ts +0 -60
  55. package/src/utils/gpu-tracker.ts +0 -265
  56. package/src/utils/logger.ts +0 -92
  57. package/src/utils/sizeof.ts +0 -116
  58. package/src/utils/timer.ts +0 -69
  59. package/src/utils/utils.ts +0 -446
package/src/index.ts DELETED
@@ -1,151 +0,0 @@
1
- /**
2
- * three-cad-viewer - A CAD viewer built on Three.js
3
- *
4
- * This is the main entry point for the library.
5
- * It exports the core classes and all public TypeScript types.
6
- */
7
-
8
- // CSS imports
9
- import "../css/global.css";
10
- import "../css/ui.css";
11
- import "../css/treeview.css";
12
- import "../css/tools.css";
13
-
14
- // =============================================================================
15
- // Core Classes
16
- // =============================================================================
17
-
18
- import { Viewer } from "./core/viewer.js";
19
- import { Display } from "./ui/display.js";
20
- import { EnvironmentManager } from "./rendering/environment.js";
21
- import { Timer } from "./utils/timer.js";
22
- import { logger } from "./utils/logger.js";
23
- import { gpuTracker } from "./utils/gpu-tracker.js";
24
- import { version } from "./_version.js";
25
-
26
- export { Viewer, Display, EnvironmentManager, Timer, logger, gpuTracker, version };
27
-
28
- // Material presets
29
- export { MATERIAL_PRESETS, MATERIAL_PRESET_NAMES } from "./rendering/material-presets.js";
30
-
31
- // Logger type export
32
- export type { LogLevel } from "./utils/logger.js";
33
-
34
- // GPU tracker type exports
35
- export type { ResourceType, TrackedResource, ResourceSummary } from "./utils/gpu-tracker.js";
36
-
37
- // =============================================================================
38
- // Type Exports
39
- // =============================================================================
40
-
41
- // Re-export Three.js tuple types used in our API
42
- export type { Vector3Tuple, QuaternionTuple } from "three";
43
-
44
- // Basic types
45
- export type {
46
- ThemeInput,
47
- Theme,
48
- ControlType,
49
- UpDirection,
50
- AnimationMode,
51
- ActiveTab,
52
- ZebraColorScheme,
53
- ZebraMappingMode,
54
- ShapeType,
55
- ShapeSubtype,
56
- Axis,
57
- ClipIndex,
58
- ColorValue,
59
- RGBColor,
60
- RGBAColor,
61
- AxisColors,
62
- AxisColorsFlatArray,
63
- } from "./core/types.js";
64
-
65
- // Type guards, constants, and enums
66
- export { CLIP_INDICES, isClipIndex, CollapseState } from "./core/types.js";
67
-
68
- // State change types
69
- export type {
70
- StateChange,
71
- StateSubscriber,
72
- GlobalStateSubscriber,
73
- } from "./core/types.js";
74
-
75
- // Bounding box/sphere types
76
- export type {
77
- BoundingBox,
78
- BoundingSphere,
79
- BoundingBoxFlat,
80
- } from "./core/types.js";
81
-
82
- // Pick info
83
- export type { PickInfo } from "./core/types.js";
84
-
85
- // Change notification types
86
- export type {
87
- ChangeInfos,
88
- ChangeNotification,
89
- NotificationCallback,
90
- } from "./core/types.js";
91
-
92
- // Options types - these are the main configuration interfaces
93
- export type {
94
- DisplayOptions,
95
- RenderOptions,
96
- ViewerOptions,
97
- ZebraOptions,
98
- CombinedOptions,
99
- } from "./core/types.js";
100
-
101
- // Viewer state shape
102
- export type {
103
- ViewerStateShape,
104
- StateKey,
105
- } from "./core/types.js";
106
-
107
- // Shape and texture types - for working with CAD data
108
- export type {
109
- Texture,
110
- Shape,
111
- ShapeBinary,
112
- ShapeNested,
113
- Location,
114
- VisibilityValue,
115
- VisibilityState,
116
- Shapes,
117
- } from "./core/types.js";
118
-
119
- // Shape type guards
120
- export {
121
- isShapeBinaryFormat,
122
- hasTrianglesPerFace,
123
- hasSegmentsPerEdge,
124
- } from "./core/types.js";
125
-
126
- // DOM event callback
127
- export type { DomEventCallback } from "./core/types.js";
128
-
129
- // Material types
130
- export type { ColoredMaterial } from "./core/types.js";
131
-
132
- // Studio mode & PBR material types
133
- export type {
134
- MaterialAppearance,
135
- MaterialXMaterial,
136
- StudioOptions,
137
- StudioBackground,
138
- StudioModeOptions,
139
- StudioEnvironment,
140
- StudioToneMapping,
141
- StudioTextureMapping,
142
- } from "./core/types.js";
143
-
144
- // MaterialX type guard
145
- export { isMaterialXMaterial } from "./core/types.js";
146
-
147
- // Instanced/compressed format decoding
148
- export { isInstancedFormat, decodeInstancedFormat } from "./utils/decode-instances.js";
149
-
150
- // Subscription options
151
- export type { SubscribeOptions } from "./core/types.js";