@3driseai/3drise-viewer 0.1.40 → 0.1.41

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 (297) hide show
  1. package/dist/animationsV2/ClipsRuntime.d.ts.map +1 -1
  2. package/dist/animationsV2/ClipsRuntime.js +9 -5
  3. package/dist/animationsV2/clipUtils.d.ts +9 -0
  4. package/dist/animationsV2/clipUtils.d.ts.map +1 -1
  5. package/dist/animationsV2/clipUtils.js +11 -2
  6. package/dist/animationsV2/normalize.d.ts.map +1 -1
  7. package/dist/animationsV2/normalize.js +2 -0
  8. package/dist/animationsV2/types.d.ts +4 -0
  9. package/dist/animationsV2/types.d.ts.map +1 -1
  10. package/dist/api/sceneHandle.d.ts +40 -3
  11. package/dist/api/sceneHandle.d.ts.map +1 -1
  12. package/dist/api/sceneHandle.js +40 -0
  13. package/dist/components/GalleryObject.d.ts +13 -0
  14. package/dist/components/GalleryObject.d.ts.map +1 -0
  15. package/dist/components/GalleryObject.js +46 -0
  16. package/dist/components/ImageObject.d.ts +9 -0
  17. package/dist/components/ImageObject.d.ts.map +1 -0
  18. package/dist/components/ImageObject.js +26 -0
  19. package/dist/components/ObjectNode.d.ts.map +1 -1
  20. package/dist/components/ObjectNode.js +11 -5
  21. package/dist/components/ProjectLoader.d.ts +2 -0
  22. package/dist/components/ProjectLoader.d.ts.map +1 -1
  23. package/dist/components/ProjectLoader.js +2 -2
  24. package/dist/components/SceneBuilder.d.ts +10 -0
  25. package/dist/components/SceneBuilder.d.ts.map +1 -1
  26. package/dist/components/SceneBuilder.js +3 -2
  27. package/dist/components/gallery/BasicCarouselGallery.d.ts +18 -0
  28. package/dist/components/gallery/BasicCarouselGallery.d.ts.map +1 -0
  29. package/dist/components/gallery/BasicCarouselGallery.js +9 -0
  30. package/dist/components/gallery/ContourLinesGallery.d.ts +18 -0
  31. package/dist/components/gallery/ContourLinesGallery.d.ts.map +1 -0
  32. package/dist/components/gallery/ContourLinesGallery.js +9 -0
  33. package/dist/components/gallery/DepthLayersGallery.d.ts +18 -0
  34. package/dist/components/gallery/DepthLayersGallery.d.ts.map +1 -0
  35. package/dist/components/gallery/DepthLayersGallery.js +9 -0
  36. package/dist/components/gallery/EngravingGallery.d.ts +18 -0
  37. package/dist/components/gallery/EngravingGallery.d.ts.map +1 -0
  38. package/dist/components/gallery/EngravingGallery.js +9 -0
  39. package/dist/components/gallery/FlowLinesGallery.d.ts +18 -0
  40. package/dist/components/gallery/FlowLinesGallery.d.ts.map +1 -0
  41. package/dist/components/gallery/FlowLinesGallery.js +9 -0
  42. package/dist/components/gallery/FoldGallery.d.ts +18 -0
  43. package/dist/components/gallery/FoldGallery.d.ts.map +1 -0
  44. package/dist/components/gallery/FoldGallery.js +9 -0
  45. package/dist/components/gallery/GlassPanesGallery.d.ts +18 -0
  46. package/dist/components/gallery/GlassPanesGallery.d.ts.map +1 -0
  47. package/dist/components/gallery/GlassPanesGallery.js +9 -0
  48. package/dist/components/gallery/HaloGallery.d.ts +18 -0
  49. package/dist/components/gallery/HaloGallery.d.ts.map +1 -0
  50. package/dist/components/gallery/HaloGallery.js +9 -0
  51. package/dist/components/gallery/LightThreadsGallery.d.ts +18 -0
  52. package/dist/components/gallery/LightThreadsGallery.d.ts.map +1 -0
  53. package/dist/components/gallery/LightThreadsGallery.js +9 -0
  54. package/dist/components/gallery/LoomGallery.d.ts +18 -0
  55. package/dist/components/gallery/LoomGallery.d.ts.map +1 -0
  56. package/dist/components/gallery/LoomGallery.js +9 -0
  57. package/dist/components/gallery/PaperLanternsGallery.d.ts +18 -0
  58. package/dist/components/gallery/PaperLanternsGallery.d.ts.map +1 -0
  59. package/dist/components/gallery/PaperLanternsGallery.js +9 -0
  60. package/dist/components/gallery/ParticleShiftGallery.d.ts +18 -0
  61. package/dist/components/gallery/ParticleShiftGallery.d.ts.map +1 -0
  62. package/dist/components/gallery/ParticleShiftGallery.js +9 -0
  63. package/dist/components/gallery/PinscreenGallery.d.ts +18 -0
  64. package/dist/components/gallery/PinscreenGallery.d.ts.map +1 -0
  65. package/dist/components/gallery/PinscreenGallery.js +9 -0
  66. package/dist/components/gallery/PopUpGallery.d.ts +18 -0
  67. package/dist/components/gallery/PopUpGallery.d.ts.map +1 -0
  68. package/dist/components/gallery/PopUpGallery.js +9 -0
  69. package/dist/components/gallery/PrismSplitGallery.d.ts +18 -0
  70. package/dist/components/gallery/PrismSplitGallery.d.ts.map +1 -0
  71. package/dist/components/gallery/PrismSplitGallery.js +9 -0
  72. package/dist/components/gallery/RidgelinesGallery.d.ts +18 -0
  73. package/dist/components/gallery/RidgelinesGallery.d.ts.map +1 -0
  74. package/dist/components/gallery/RidgelinesGallery.js +9 -0
  75. package/dist/components/gallery/ShadowBoxGallery.d.ts +18 -0
  76. package/dist/components/gallery/ShadowBoxGallery.d.ts.map +1 -0
  77. package/dist/components/gallery/ShadowBoxGallery.js +9 -0
  78. package/dist/components/gallery/SilkGallery.d.ts +18 -0
  79. package/dist/components/gallery/SilkGallery.d.ts.map +1 -0
  80. package/dist/components/gallery/SilkGallery.js +9 -0
  81. package/dist/components/gallery/SlatsGallery.d.ts +18 -0
  82. package/dist/components/gallery/SlatsGallery.d.ts.map +1 -0
  83. package/dist/components/gallery/SlatsGallery.js +9 -0
  84. package/dist/components/gallery/StrataGallery.d.ts +18 -0
  85. package/dist/components/gallery/StrataGallery.d.ts.map +1 -0
  86. package/dist/components/gallery/StrataGallery.js +9 -0
  87. package/dist/components/gallery/TerracesGallery.d.ts +18 -0
  88. package/dist/components/gallery/TerracesGallery.d.ts.map +1 -0
  89. package/dist/components/gallery/TerracesGallery.js +9 -0
  90. package/dist/components/gallery/WireReliefGallery.d.ts +18 -0
  91. package/dist/components/gallery/WireReliefGallery.d.ts.map +1 -0
  92. package/dist/components/gallery/WireReliefGallery.js +9 -0
  93. package/dist/components/gallery/index.d.ts +46 -0
  94. package/dist/components/gallery/index.d.ts.map +1 -0
  95. package/dist/components/gallery/index.js +22 -0
  96. package/dist/components/gallery/kit/GalleryVariant.d.ts +68 -0
  97. package/dist/components/gallery/kit/GalleryVariant.d.ts.map +1 -0
  98. package/dist/components/gallery/kit/GalleryVariant.js +231 -0
  99. package/dist/components/gallery/kit/feeds.d.ts +7 -0
  100. package/dist/components/gallery/kit/feeds.d.ts.map +1 -0
  101. package/dist/components/gallery/kit/feeds.js +83 -0
  102. package/dist/components/gallery/kit/galleryKit.d.ts +118 -0
  103. package/dist/components/gallery/kit/galleryKit.d.ts.map +1 -0
  104. package/dist/components/gallery/kit/galleryKit.js +298 -0
  105. package/dist/components/gallery/kit/lookBase.d.ts +157 -0
  106. package/dist/components/gallery/kit/lookBase.d.ts.map +1 -0
  107. package/dist/components/gallery/kit/lookBase.js +211 -0
  108. package/dist/components/gallery/kit/pictures.d.ts +14 -0
  109. package/dist/components/gallery/kit/pictures.d.ts.map +1 -0
  110. package/dist/components/gallery/kit/pictures.js +81 -0
  111. package/dist/components/gallery/looks/basicCarousel.d.ts +177 -0
  112. package/dist/components/gallery/looks/basicCarousel.d.ts.map +1 -0
  113. package/dist/components/gallery/looks/basicCarousel.js +315 -0
  114. package/dist/components/gallery/looks/contourLines.d.ts +153 -0
  115. package/dist/components/gallery/looks/contourLines.d.ts.map +1 -0
  116. package/dist/components/gallery/looks/contourLines.js +91 -0
  117. package/dist/components/gallery/looks/depthLayers.d.ts +155 -0
  118. package/dist/components/gallery/looks/depthLayers.d.ts.map +1 -0
  119. package/dist/components/gallery/looks/depthLayers.js +87 -0
  120. package/dist/components/gallery/looks/engraving.d.ts +162 -0
  121. package/dist/components/gallery/looks/engraving.d.ts.map +1 -0
  122. package/dist/components/gallery/looks/engraving.js +96 -0
  123. package/dist/components/gallery/looks/flowLines.d.ts +180 -0
  124. package/dist/components/gallery/looks/flowLines.d.ts.map +1 -0
  125. package/dist/components/gallery/looks/flowLines.js +113 -0
  126. package/dist/components/gallery/looks/fold.d.ts +209 -0
  127. package/dist/components/gallery/looks/fold.d.ts.map +1 -0
  128. package/dist/components/gallery/looks/fold.js +155 -0
  129. package/dist/components/gallery/looks/glassPanes.d.ts +133 -0
  130. package/dist/components/gallery/looks/glassPanes.d.ts.map +1 -0
  131. package/dist/components/gallery/looks/glassPanes.js +208 -0
  132. package/dist/components/gallery/looks/halo.d.ts +100 -0
  133. package/dist/components/gallery/looks/halo.d.ts.map +1 -0
  134. package/dist/components/gallery/looks/halo.js +119 -0
  135. package/dist/components/gallery/looks/lightThreads.d.ts +199 -0
  136. package/dist/components/gallery/looks/lightThreads.d.ts.map +1 -0
  137. package/dist/components/gallery/looks/lightThreads.js +246 -0
  138. package/dist/components/gallery/looks/loom.d.ts +238 -0
  139. package/dist/components/gallery/looks/loom.d.ts.map +1 -0
  140. package/dist/components/gallery/looks/loom.js +256 -0
  141. package/dist/components/gallery/looks/paperLanterns.d.ts +181 -0
  142. package/dist/components/gallery/looks/paperLanterns.d.ts.map +1 -0
  143. package/dist/components/gallery/looks/paperLanterns.js +399 -0
  144. package/dist/components/gallery/looks/particleShift.d.ts +193 -0
  145. package/dist/components/gallery/looks/particleShift.d.ts.map +1 -0
  146. package/dist/components/gallery/looks/particleShift.js +282 -0
  147. package/dist/components/gallery/looks/pinscreen.d.ts +175 -0
  148. package/dist/components/gallery/looks/pinscreen.d.ts.map +1 -0
  149. package/dist/components/gallery/looks/pinscreen.js +96 -0
  150. package/dist/components/gallery/looks/popUp.d.ts +206 -0
  151. package/dist/components/gallery/looks/popUp.d.ts.map +1 -0
  152. package/dist/components/gallery/looks/popUp.js +132 -0
  153. package/dist/components/gallery/looks/prismSplit.d.ts +151 -0
  154. package/dist/components/gallery/looks/prismSplit.d.ts.map +1 -0
  155. package/dist/components/gallery/looks/prismSplit.js +84 -0
  156. package/dist/components/gallery/looks/ridgelines.d.ts +179 -0
  157. package/dist/components/gallery/looks/ridgelines.d.ts.map +1 -0
  158. package/dist/components/gallery/looks/ridgelines.js +111 -0
  159. package/dist/components/gallery/looks/shadowBox.d.ts +152 -0
  160. package/dist/components/gallery/looks/shadowBox.d.ts.map +1 -0
  161. package/dist/components/gallery/looks/shadowBox.js +82 -0
  162. package/dist/components/gallery/looks/silk.d.ts +140 -0
  163. package/dist/components/gallery/looks/silk.d.ts.map +1 -0
  164. package/dist/components/gallery/looks/silk.js +346 -0
  165. package/dist/components/gallery/looks/slats.d.ts +176 -0
  166. package/dist/components/gallery/looks/slats.d.ts.map +1 -0
  167. package/dist/components/gallery/looks/slats.js +93 -0
  168. package/dist/components/gallery/looks/strata.d.ts +172 -0
  169. package/dist/components/gallery/looks/strata.d.ts.map +1 -0
  170. package/dist/components/gallery/looks/strata.js +88 -0
  171. package/dist/components/gallery/looks/terraces.d.ts +168 -0
  172. package/dist/components/gallery/looks/terraces.d.ts.map +1 -0
  173. package/dist/components/gallery/looks/terraces.js +91 -0
  174. package/dist/components/gallery/looks/wireRelief.d.ts +153 -0
  175. package/dist/components/gallery/looks/wireRelief.d.ts.map +1 -0
  176. package/dist/components/gallery/looks/wireRelief.js +128 -0
  177. package/dist/components/image/ContourImage.d.ts +7 -0
  178. package/dist/components/image/ContourImage.d.ts.map +1 -0
  179. package/dist/components/image/ContourImage.js +6 -0
  180. package/dist/components/image/EngravingImage.d.ts +7 -0
  181. package/dist/components/image/EngravingImage.d.ts.map +1 -0
  182. package/dist/components/image/EngravingImage.js +6 -0
  183. package/dist/components/image/FrostImage.d.ts +7 -0
  184. package/dist/components/image/FrostImage.d.ts.map +1 -0
  185. package/dist/components/image/FrostImage.js +6 -0
  186. package/dist/components/image/LenticularImage.d.ts +7 -0
  187. package/dist/components/image/LenticularImage.d.ts.map +1 -0
  188. package/dist/components/image/LenticularImage.js +6 -0
  189. package/dist/components/image/PinscreenImage.d.ts +7 -0
  190. package/dist/components/image/PinscreenImage.d.ts.map +1 -0
  191. package/dist/components/image/PinscreenImage.js +6 -0
  192. package/dist/components/image/PrismImage.d.ts +7 -0
  193. package/dist/components/image/PrismImage.d.ts.map +1 -0
  194. package/dist/components/image/PrismImage.js +6 -0
  195. package/dist/components/image/ProjectorImage.d.ts +7 -0
  196. package/dist/components/image/ProjectorImage.d.ts.map +1 -0
  197. package/dist/components/image/ProjectorImage.js +6 -0
  198. package/dist/components/image/ReliefImage.d.ts +7 -0
  199. package/dist/components/image/ReliefImage.d.ts.map +1 -0
  200. package/dist/components/image/ReliefImage.js +6 -0
  201. package/dist/components/image/RollImage.d.ts +7 -0
  202. package/dist/components/image/RollImage.d.ts.map +1 -0
  203. package/dist/components/image/RollImage.js +6 -0
  204. package/dist/components/image/ShardsImage.d.ts +126 -0
  205. package/dist/components/image/ShardsImage.d.ts.map +1 -0
  206. package/dist/components/image/ShardsImage.js +470 -0
  207. package/dist/components/image/core/contour.d.ts +126 -0
  208. package/dist/components/image/core/contour.d.ts.map +1 -0
  209. package/dist/components/image/core/contour.js +123 -0
  210. package/dist/components/image/core/engraving.d.ts +135 -0
  211. package/dist/components/image/core/engraving.d.ts.map +1 -0
  212. package/dist/components/image/core/engraving.js +163 -0
  213. package/dist/components/image/core/frost.d.ts +126 -0
  214. package/dist/components/image/core/frost.d.ts.map +1 -0
  215. package/dist/components/image/core/frost.js +156 -0
  216. package/dist/components/image/core/imageCore.d.ts +110 -0
  217. package/dist/components/image/core/imageCore.d.ts.map +1 -0
  218. package/dist/components/image/core/imageCore.js +269 -0
  219. package/dist/components/image/core/lenticular.d.ts +129 -0
  220. package/dist/components/image/core/lenticular.d.ts.map +1 -0
  221. package/dist/components/image/core/lenticular.js +132 -0
  222. package/dist/components/image/core/pinscreen.d.ts +126 -0
  223. package/dist/components/image/core/pinscreen.d.ts.map +1 -0
  224. package/dist/components/image/core/pinscreen.js +147 -0
  225. package/dist/components/image/core/prism.d.ts +120 -0
  226. package/dist/components/image/core/prism.d.ts.map +1 -0
  227. package/dist/components/image/core/prism.js +164 -0
  228. package/dist/components/image/core/projector.d.ts +135 -0
  229. package/dist/components/image/core/projector.d.ts.map +1 -0
  230. package/dist/components/image/core/projector.js +225 -0
  231. package/dist/components/image/core/relief.d.ts +111 -0
  232. package/dist/components/image/core/relief.d.ts.map +1 -0
  233. package/dist/components/image/core/relief.js +94 -0
  234. package/dist/components/image/core/roll.d.ts +114 -0
  235. package/dist/components/image/core/roll.d.ts.map +1 -0
  236. package/dist/components/image/core/roll.js +116 -0
  237. package/dist/components/image/imageVariant.d.ts +46 -0
  238. package/dist/components/image/imageVariant.d.ts.map +1 -0
  239. package/dist/components/image/imageVariant.js +128 -0
  240. package/dist/components/image/index.d.ts +22 -0
  241. package/dist/components/image/index.d.ts.map +1 -0
  242. package/dist/components/image/index.js +10 -0
  243. package/dist/components/image/pictureCycle.d.ts +15 -0
  244. package/dist/components/image/pictureCycle.d.ts.map +1 -0
  245. package/dist/components/image/pictureCycle.js +82 -0
  246. package/dist/components/index.d.ts +4 -0
  247. package/dist/components/index.d.ts.map +1 -1
  248. package/dist/components/index.js +4 -0
  249. package/dist/components/volumetricClouds/VolumetricCloudsPass.d.ts +9 -7
  250. package/dist/components/volumetricClouds/VolumetricCloudsPass.d.ts.map +1 -1
  251. package/dist/components/volumetricClouds/VolumetricCloudsPass.js +39 -27
  252. package/dist/constants.d.ts.map +1 -1
  253. package/dist/constants.js +2 -0
  254. package/dist/galleryRuntime.d.ts +57 -0
  255. package/dist/galleryRuntime.d.ts.map +1 -0
  256. package/dist/galleryRuntime.js +105 -0
  257. package/dist/hooks/useConfigLive.d.ts +1 -1
  258. package/dist/hooks/useConfigLive.d.ts.map +1 -1
  259. package/dist/index.d.ts +4 -1
  260. package/dist/index.d.ts.map +1 -1
  261. package/dist/index.js +4 -0
  262. package/dist/keyPad/KeyPadControls.d.ts +16 -0
  263. package/dist/keyPad/KeyPadControls.d.ts.map +1 -0
  264. package/dist/keyPad/KeyPadControls.js +176 -0
  265. package/dist/keyPad/index.d.ts +16 -0
  266. package/dist/keyPad/index.d.ts.map +1 -0
  267. package/dist/keyPad/index.js +8 -0
  268. package/dist/keyPad/keyBindings.d.ts +43 -0
  269. package/dist/keyPad/keyBindings.d.ts.map +1 -0
  270. package/dist/keyPad/keyBindings.js +92 -0
  271. package/dist/keyPad/keyPadAnimation.d.ts +28 -0
  272. package/dist/keyPad/keyPadAnimation.d.ts.map +1 -0
  273. package/dist/keyPad/keyPadAnimation.js +131 -0
  274. package/dist/keyPad/keyPadMotion.d.ts +68 -0
  275. package/dist/keyPad/keyPadMotion.d.ts.map +1 -0
  276. package/dist/keyPad/keyPadMotion.js +283 -0
  277. package/dist/keyPad/keyPadStore.d.ts +25 -0
  278. package/dist/keyPad/keyPadStore.d.ts.map +1 -0
  279. package/dist/keyPad/keyPadStore.js +63 -0
  280. package/dist/keyPad/types.d.ts +23 -0
  281. package/dist/keyPad/types.d.ts.map +1 -0
  282. package/dist/keyPad/types.js +9 -0
  283. package/dist/operations/catalogue/visibility.d.ts.map +1 -1
  284. package/dist/operations/catalogue/visibility.js +23 -1
  285. package/dist/shaders/clouds/CloudResolveMaterial.d.ts +2 -1
  286. package/dist/shaders/clouds/CloudResolveMaterial.d.ts.map +1 -1
  287. package/dist/shaders/clouds/CloudResolveMaterial.js +37 -12
  288. package/dist/shaders/clouds/CloudVolumeMaterial.d.ts +4 -0
  289. package/dist/shaders/clouds/CloudVolumeMaterial.d.ts.map +1 -1
  290. package/dist/shaders/clouds/CloudVolumeMaterial.js +15 -3
  291. package/dist/triggers/kinds/gallery.d.ts +2 -0
  292. package/dist/triggers/kinds/gallery.d.ts.map +1 -0
  293. package/dist/triggers/kinds/gallery.js +39 -0
  294. package/dist/triggers/kinds/index.d.ts +1 -0
  295. package/dist/triggers/kinds/index.d.ts.map +1 -1
  296. package/dist/triggers/kinds/index.js +1 -0
  297. package/package.json +2 -2
@@ -0,0 +1,179 @@
1
+ import * as THREE from 'three';
2
+ export declare const catalog: {
3
+ key: string;
4
+ name: string;
5
+ camera: {
6
+ position: number[];
7
+ target: number[];
8
+ };
9
+ description: string;
10
+ tags: string[];
11
+ };
12
+ export declare const DEFAULTS: {
13
+ type: string;
14
+ aspect: number;
15
+ width: number;
16
+ rows: number;
17
+ relief: number;
18
+ lineWidth: number;
19
+ smoothing: number;
20
+ lineColor: string;
21
+ fillColor: string;
22
+ fillOpacity: number;
23
+ changeTime: number;
24
+ wave: number;
25
+ slant: number;
26
+ dim: number;
27
+ pointerMode: string;
28
+ pointerRadius: number;
29
+ raise: number;
30
+ enabled: boolean;
31
+ lean: number;
32
+ imageUrls: any[];
33
+ autoplay: number;
34
+ intensity: number;
35
+ opacity: number;
36
+ layout: string;
37
+ spacing: number;
38
+ depth: number;
39
+ visible: number;
40
+ shape: number;
41
+ stiffness: number;
42
+ damping: number;
43
+ throwing: number;
44
+ pointerStrength: number;
45
+ };
46
+ export declare const STRUCTURAL: string[];
47
+ export declare const POINTER_MODES: string[];
48
+ export declare const GUI: ({
49
+ key: string;
50
+ options: string[];
51
+ tip: string;
52
+ min?: undefined;
53
+ max?: undefined;
54
+ step?: undefined;
55
+ } | {
56
+ key: string;
57
+ min: number;
58
+ max: number;
59
+ step: number;
60
+ } | {
61
+ key: string;
62
+ options: string[];
63
+ color?: undefined;
64
+ } | {
65
+ key: string;
66
+ color: boolean;
67
+ options?: undefined;
68
+ })[];
69
+ export declare const PRESETS: ({
70
+ name: string;
71
+ description: string;
72
+ patch: {
73
+ rows?: undefined;
74
+ relief?: undefined;
75
+ lineWidth?: undefined;
76
+ smoothing?: undefined;
77
+ };
78
+ } | {
79
+ name: string;
80
+ description: string;
81
+ patch: {
82
+ rows: number;
83
+ relief: number;
84
+ lineWidth: number;
85
+ smoothing?: undefined;
86
+ };
87
+ } | {
88
+ name: string;
89
+ description: string;
90
+ patch: {
91
+ rows: number;
92
+ relief: number;
93
+ smoothing: number;
94
+ lineWidth: number;
95
+ };
96
+ })[];
97
+ export declare function createUniforms(): {
98
+ uRows: {
99
+ value: number;
100
+ };
101
+ uRelief: {
102
+ value: number;
103
+ };
104
+ uLine: {
105
+ value: number;
106
+ };
107
+ uSmooth: {
108
+ value: number;
109
+ };
110
+ uRaise: {
111
+ value: number;
112
+ };
113
+ uLineColor: {
114
+ value: THREE.Color;
115
+ };
116
+ uFillColor: {
117
+ value: THREE.Color;
118
+ };
119
+ uFillA: {
120
+ value: number;
121
+ };
122
+ uTex: {
123
+ value: any;
124
+ };
125
+ uS: {
126
+ value: number;
127
+ };
128
+ uCount: {
129
+ value: number;
130
+ };
131
+ uTime: {
132
+ value: number;
133
+ };
134
+ uAct: {
135
+ value: Float32Array<ArrayBuffer>;
136
+ };
137
+ uW: {
138
+ value: number;
139
+ };
140
+ uH: {
141
+ value: number;
142
+ };
143
+ uWave: {
144
+ value: number;
145
+ };
146
+ uSlant: {
147
+ value: number;
148
+ };
149
+ uDim: {
150
+ value: number;
151
+ };
152
+ uIntensity: {
153
+ value: number;
154
+ };
155
+ uOpacity: {
156
+ value: number;
157
+ };
158
+ uPointer: {
159
+ value: THREE.Vector3;
160
+ };
161
+ uPointerActive: {
162
+ value: number;
163
+ };
164
+ uPointerMode: {
165
+ value: number;
166
+ };
167
+ uPointerStrength: {
168
+ value: number;
169
+ };
170
+ uPointerRadius: {
171
+ value: number;
172
+ };
173
+ uPlace: {
174
+ value: THREE.Matrix4[];
175
+ };
176
+ };
177
+ export declare function applyConfig(u: any, c: any): void;
178
+ export declare function build(u: any, c: any): any;
179
+ //# sourceMappingURL=ridgelines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ridgelines.d.ts","sourceRoot":"","sources":["../../../../src/components/gallery/looks/ridgelines.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,OAAO;;;;;;;;;CAE+D,CAAC;AAEpF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKpB,CAAC;AACF,eAAO,MAAM,UAAU,UAA2C,CAAC;AACnE,eAAO,MAAM,aAAa,UAAY,CAAC;AACvC,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;IASf,CAAC;AACF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;IAInB,CAAC;AACF,wBAAgB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B;AACD,wBAAgB,WAAW,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,QAG/B;AA+CD,wBAAgB,KAAK,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,OAA6C"}
@@ -0,0 +1,111 @@
1
+ // The approved lab module, verbatim but for its import paths and the lab's picture loader (Claude outputs/gallery-lab/
2
+ // ridgelines.mjs). Plain JS-shaped code (the viewer compiles non-strict); typed at its one door, kit/GalleryVariant.tsx. Its own DEFAULTS only fill knobs the
3
+ // core defaults (DEFAULT_GALLERY_OBJECTS.ridgelines) do not carry; its own autoplay is never used.
4
+ // ridgelines — every picture is a stack of horizontal hairlines, each lifted by the brightness along its own row,
5
+ // the rows set one behind another in depth so every ridge hides the lines behind it (the "joy plot" look). Each row
6
+ // is a strip from its ridge down over the rows below: its top edge is the line (anti-aliased with fwidth), its body
7
+ // is the fill that does the hiding. An inactive picture is flat grey lines over a dark fill. When it becomes the
8
+ // active one a soft wave crosses it: behind the wave the ridges rise into the picture's own relief and the fills take
9
+ // the picture's colour, so the picture is whole, drawn in ridges. The cursor raises the ridges near it. Self-coloured.
10
+ import * as THREE from 'three';
11
+ import { BASE_DEFAULTS, BASE_GUI_MOTION, BASE_GUI_TAIL, LAYOUT_GUI, baseUniforms, applyBase, baseGlsl, instanced, shaderMaterial, makeGallery, withLean, fragHead } from '../kit/lookBase.js';
12
+ export const catalog = { key: 'ridgelines', name: 'Ridgelines', camera: { position: [0.5, 0.6, 4.5], target: [0, 0, 0] },
13
+ description: 'Pictures as stacked horizontal hairlines lifted by their brightness, each ridge hiding the lines behind it: inactive ones are flat grey lines, the active one rises into ridges and fills with the picture’s colour behind a soft wave; the cursor raises the ridges. Use for music, data, tech and editorial showcases.',
14
+ tags: ['gallery', 'ridgelines', 'lines', 'relief', 'joy-plot', 'interactive'] };
15
+ export const DEFAULTS = {
16
+ ...BASE_DEFAULTS, type: 'ridgelines', aspect: 1.4, width: 2.2, rows: 64, // structural
17
+ relief: 0.15, lineWidth: 0.0035, smoothing: 1.8, lineColor: '#e8ecf4', fillColor: '#07080c', fillOpacity: 1,
18
+ changeTime: 2.0, wave: 0.4, slant: 0.1, dim: 0.55,
19
+ pointerMode: 'raise', pointerRadius: 0.5, raise: 0.08,
20
+ };
21
+ export const STRUCTURAL = ['imageUrls', 'aspect', 'width', 'rows'];
22
+ export const POINTER_MODES = ['raise'];
23
+ export const GUI = [
24
+ { key: 'lean', min: 0, max: 3, step: 0.01, tip: 'The gallery turns toward the cursor' },
25
+ { key: 'aspect', min: 0.6, max: 2.5, step: 0.01 }, { key: 'width', min: 1, max: 4, step: 0.01 }, { key: 'rows', min: 12, max: 160, step: 1, tip: 'Ridgelines down a picture' },
26
+ ...LAYOUT_GUI, ...BASE_GUI_MOTION,
27
+ { key: 'relief', min: 0, max: 0.4, step: 0.005, tip: 'How high the brightest point lifts its ridge' }, { key: 'lineWidth', min: 0.001, max: 0.015, step: 0.0005, tip: 'Width of a ridgeline' },
28
+ { key: 'smoothing', min: 0, max: 5, step: 0.1, tip: 'How much the brightness is smoothed before it lifts the ridges' },
29
+ { key: 'fillOpacity', min: 0, max: 1, step: 0.01, tip: 'Opacity of an inactive picture’s fill (what hides the lines behind)' },
30
+ { key: 'pointerMode', options: ['none', ...POINTER_MODES] }, ...BASE_GUI_TAIL, { key: 'raise', min: 0, max: 0.3, step: 0.005, tip: 'How far the cursor raises the ridges' },
31
+ { key: 'lineColor', color: true }, { key: 'fillColor', color: true },
32
+ ];
33
+ export const PRESETS = [
34
+ { name: 'Ridgelines', description: 'The default.', patch: {} },
35
+ { name: 'Pulsar', description: 'Many fine rows, tall ridges.', patch: { rows: 110, relief: 0.16, lineWidth: 0.0025 } },
36
+ { name: 'Hills', description: 'Few rows, broad soft ridges.', patch: { rows: 28, relief: 0.07, smoothing: 3.2, lineWidth: 0.005 } },
37
+ ];
38
+ export function createUniforms() {
39
+ return { ...baseUniforms(), uRows: { value: 64 }, uRelief: { value: 0.09 }, uLine: { value: 0.0035 }, uSmooth: { value: 1.8 }, uRaise: { value: 0.08 },
40
+ uLineColor: { value: new THREE.Color('#e8ecf4') }, uFillColor: { value: new THREE.Color('#07080c') }, uFillA: { value: 1 } };
41
+ }
42
+ export function applyConfig(u, c) {
43
+ const set = applyBase(u, c, POINTER_MODES);
44
+ set('uRelief', c.relief);
45
+ set('uLine', c.lineWidth);
46
+ set('uSmooth', c.smoothing);
47
+ set('uRaise', c.raise);
48
+ set('uLineColor', c.lineColor);
49
+ set('uFillColor', c.fillColor);
50
+ set('uFillA', c.fillOpacity);
51
+ }
52
+ const vert = /* glsl */ `
53
+ precision highp sampler2DArray;
54
+ uniform sampler2DArray uTex;
55
+ attribute vec4 aI; // picture, row
56
+ ${baseGlsl}
57
+ uniform float uRows, uRelief, uSmooth, uRaise;
58
+ varying vec2 vUv; varying float vImg; varying float vD; varying float vW; varying float vAlpha;
59
+ void main(){
60
+ float img = aI.x, j = aI.y; float act = actOf(img);
61
+ float yj = (j + 0.5) / uRows; // the row's place, 0 at the bottom
62
+ vec2 g = vec2(position.x + 0.5, yj);
63
+ float L = lumOf(textureLod(uTex, vec3(g, img), uSmooth).rgb);
64
+ float w = waveAt(act, g);
65
+ vec2 p0 = vec2(position.x * uW, (yj - 0.5) * uH);
66
+ float h = (uRelief * L + uRaise * maskAt(p0)) * w;
67
+ float rowH = uH / uRows;
68
+ float top = step(0.0, position.y);
69
+ float yTop = p0.y + h, yBot = p0.y - rowH * 4.0; // the fill reaches down over the rows in front
70
+ float y = mix(yBot, yTop, top);
71
+ vD = (1.0 - top) * (yTop - yBot); // distance below this row's line
72
+ vUv = vec2(g.x, clamp((y + uH * 0.5) / uH, 0.0, 1.0)); vImg = img; vW = w; vAlpha = fadeAt(img);
73
+ vec3 local = vec3(p0.x, max(y, -uH * 0.5), -j * 0.0025); // rows further up stand further back
74
+ gl_Position = projectionMatrix * modelViewMatrix * vec4(placeAt(img, local), 1.0);
75
+ }
76
+ `;
77
+ const frag = /* glsl */ `
78
+ ${fragHead}
79
+ precision highp sampler2DArray;
80
+ uniform sampler2DArray uTex;
81
+ ${baseGlsl}
82
+ uniform float uLine, uFillA; uniform vec3 uLineColor, uFillColor;
83
+ varying vec2 vUv; varying float vImg; varying float vD; varying float vW; varying float vAlpha;
84
+ void main(){
85
+ vec3 pic = texture(uTex, vec3(vUv, vImg)).rgb;
86
+ float fw = max(fwidth(vD), 1e-5);
87
+ float line = 1.0 - smoothstep(uLine - fw, uLine + fw, vD);
88
+ vec3 lineC = mix(fadedOf(pic) * 0.8 + uLineColor * uDim * 0.9, mix(uLineColor, pic * 1.4, 0.5), vW);
89
+ vec3 fill = mix(uFillColor, pic, vW);
90
+ vec3 c = mix(fill, lineC, line * mix(1.0, 0.45, vW));
91
+ float a = mix(mix(uFillA, 1.0, vW), 1.0, line) * vAlpha * uOpacity;
92
+ if (a < 0.003) discard;
93
+ gl_FragColor = vec4(c * uIntensity * a, a);
94
+ #include <tonemapping_fragment>
95
+ #include <colorspace_fragment>
96
+ }
97
+ `;
98
+ export function build(u, c) { return withLean(buildGallery(u, c), c); }
99
+ function buildGallery(u, c) {
100
+ const W = c.width, H = W / c.aspect, R = Math.max(4, c.rows | 0);
101
+ u.uRows.value = R;
102
+ const geo = instanced(new THREE.PlaneGeometry(1, 1, 180, 1), R, () => [0, 0]);
103
+ const mat = shaderMaterial(u, vert, frag);
104
+ const mesh = new THREE.Mesh(geo, mat);
105
+ mesh.frustumCulled = false;
106
+ mesh.raycast = () => { };
107
+ const g = makeGallery(u, c, { W, H, meshes: [mesh], setCount: (n) => { geo.instanceCount = n * R; } });
108
+ const apply = g.apply;
109
+ g.apply = (k) => { apply(k); applyConfig(u, k); };
110
+ return g;
111
+ }
@@ -0,0 +1,152 @@
1
+ import * as THREE from 'three';
2
+ export declare const catalog: {
3
+ key: string;
4
+ name: string;
5
+ camera: {
6
+ position: number[];
7
+ target: number[];
8
+ };
9
+ description: string;
10
+ tags: string[];
11
+ };
12
+ export declare const DEFAULTS: {
13
+ type: string;
14
+ aspect: number;
15
+ width: number;
16
+ sheets: number;
17
+ separation: number;
18
+ smoothing: number;
19
+ roughness: number;
20
+ changeTime: number;
21
+ dim: number;
22
+ pointerMode: string;
23
+ pointerRadius: number;
24
+ enabled: boolean;
25
+ lean: number;
26
+ imageUrls: any[];
27
+ autoplay: number;
28
+ intensity: number;
29
+ opacity: number;
30
+ layout: string;
31
+ spacing: number;
32
+ depth: number;
33
+ visible: number;
34
+ shape: number;
35
+ stiffness: number;
36
+ damping: number;
37
+ throwing: number;
38
+ wave: number;
39
+ slant: number;
40
+ pointerStrength: number;
41
+ };
42
+ export declare const STRUCTURAL: string[];
43
+ export declare const POINTER_MODES: string[];
44
+ export declare const GUI: ({
45
+ key: string;
46
+ options: string[];
47
+ tip: string;
48
+ min?: undefined;
49
+ max?: undefined;
50
+ step?: undefined;
51
+ } | {
52
+ key: string;
53
+ min: number;
54
+ max: number;
55
+ step: number;
56
+ } | {
57
+ key: string;
58
+ options: string[];
59
+ })[];
60
+ export declare const PRESETS: ({
61
+ name: string;
62
+ description: string;
63
+ patch: {
64
+ sheets?: undefined;
65
+ separation?: undefined;
66
+ smoothing?: undefined;
67
+ };
68
+ } | {
69
+ name: string;
70
+ description: string;
71
+ patch: {
72
+ sheets: number;
73
+ separation: number;
74
+ smoothing?: undefined;
75
+ };
76
+ } | {
77
+ name: string;
78
+ description: string;
79
+ patch: {
80
+ sheets: number;
81
+ separation: number;
82
+ smoothing: number;
83
+ };
84
+ })[];
85
+ export declare function createUniforms(): {
86
+ uSheets: {
87
+ value: number;
88
+ };
89
+ uSep: {
90
+ value: number;
91
+ };
92
+ uSmooth: {
93
+ value: number;
94
+ };
95
+ uTex: {
96
+ value: any;
97
+ };
98
+ uS: {
99
+ value: number;
100
+ };
101
+ uCount: {
102
+ value: number;
103
+ };
104
+ uTime: {
105
+ value: number;
106
+ };
107
+ uAct: {
108
+ value: Float32Array<ArrayBuffer>;
109
+ };
110
+ uW: {
111
+ value: number;
112
+ };
113
+ uH: {
114
+ value: number;
115
+ };
116
+ uWave: {
117
+ value: number;
118
+ };
119
+ uSlant: {
120
+ value: number;
121
+ };
122
+ uDim: {
123
+ value: number;
124
+ };
125
+ uIntensity: {
126
+ value: number;
127
+ };
128
+ uOpacity: {
129
+ value: number;
130
+ };
131
+ uPointer: {
132
+ value: THREE.Vector3;
133
+ };
134
+ uPointerActive: {
135
+ value: number;
136
+ };
137
+ uPointerMode: {
138
+ value: number;
139
+ };
140
+ uPointerStrength: {
141
+ value: number;
142
+ };
143
+ uPointerRadius: {
144
+ value: number;
145
+ };
146
+ uPlace: {
147
+ value: THREE.Matrix4[];
148
+ };
149
+ };
150
+ export declare function applyConfig(u: any, c: any): void;
151
+ export declare function build(u: any, c: any): any;
152
+ //# sourceMappingURL=shadowBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadowBox.d.ts","sourceRoot":"","sources":["../../../../src/components/gallery/looks/shadowBox.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,OAAO;;;;;;;;;CAE6D,CAAC;AAElF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpB,CAAC;AACF,eAAO,MAAM,UAAU,UAA6C,CAAC;AACrE,eAAO,MAAM,aAAa,UAAW,CAAC;AACtC,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;IAQf,CAAC;AACF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;IAInB,CAAC;AACF,wBAAgB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0G;AACxI,wBAAgB,WAAW,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,QAAyG;AA4BzI,wBAAgB,KAAK,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,OAA6C"}
@@ -0,0 +1,82 @@
1
+ // The approved lab module, verbatim but for its import paths and the lab's picture loader (Claude outputs/gallery-lab/
2
+ // shadowbox.mjs). Plain JS-shaped code (the viewer compiles non-strict); typed at its one door, kit/GalleryVariant.tsx. Its own DEFAULTS only fill knobs the
3
+ // core defaults (DEFAULT_GALLERY_OBJECTS.shadowBox) do not carry; its own autoplay is never used.
4
+ // shadowbox — "Shadow Box". Depth Layers made of cut paper and lit by the scene: every picture is split by its
5
+ // own brightness into a few paper sheets, each cut along its level (the back sheet whole, every sheet in front
6
+ // holding only what is brighter than its level), standing one behind another in a shallow box. Because the sheets
7
+ // are real geometry lit by the scene and cast their own cut-out shadows (a matching depth material), every layer
8
+ // throws a soft shadow onto the one behind it. An inactive picture's sheets are pressed together, grey and flat.
9
+ // When it becomes the active one the sheets open into depth and take their colour; leaving presses them together
10
+ // again. The cursor opens the sheets a little further. Scene-lit (standard material + shadows); the gallery adds no
11
+ // light — the shadows are the studio lights'.
12
+ import * as THREE from 'three';
13
+ import { BASE_DEFAULTS, BASE_GUI_MOTION, BASE_GUI_TAIL, LAYOUT_GUI, baseUniforms, applyBase, instanced, litMaterial, litDepthMaterial, makeGallery, withLean } from '../kit/lookBase.js';
14
+ export const catalog = { key: 'shadowBox', name: 'Shadow Box', camera: { position: [1.2, 0.35, 4.4], target: [0, 0, 0] },
15
+ description: 'Pictures as cut-paper layers in a shadow box, lit by the scene so each sheet casts a real soft shadow on the one behind: inactive ones are pressed flat and grey, the active one opens into depth in full colour. Use for editorial, craft, kids and storytelling showcases.',
16
+ tags: ['gallery', 'paper', 'layers', 'shadows', 'scene-lit', 'interactive'] };
17
+ export const DEFAULTS = {
18
+ ...BASE_DEFAULTS, type: 'shadowBox', aspect: 1.4, width: 2.2, sheets: 5, // structural
19
+ separation: 0.1, smoothing: 2.6, roughness: 0.85, changeTime: 1.8, dim: 0.5,
20
+ pointerMode: 'open', pointerRadius: 0.6,
21
+ };
22
+ export const STRUCTURAL = ['imageUrls', 'aspect', 'width', 'sheets'];
23
+ export const POINTER_MODES = ['open'];
24
+ export const GUI = [
25
+ { key: 'lean', min: 0, max: 3, step: 0.01, tip: 'The gallery turns toward the cursor' },
26
+ { key: 'aspect', min: 0.6, max: 2.5, step: 0.01 }, { key: 'width', min: 1, max: 4, step: 0.01 }, { key: 'sheets', min: 2, max: 9, step: 1, tip: 'Paper sheets per picture' },
27
+ ...LAYOUT_GUI, ...BASE_GUI_MOTION,
28
+ { key: 'separation', min: 0, max: 0.4, step: 0.005, tip: 'Distance between the sheets when open' },
29
+ { key: 'smoothing', min: 0, max: 5, step: 0.1, tip: 'How much the brightness is smoothed before the sheets are cut (rounder cuts)' },
30
+ { key: 'roughness', min: 0, max: 1, step: 0.01 },
31
+ { key: 'pointerMode', options: ['none', ...POINTER_MODES] }, ...BASE_GUI_TAIL,
32
+ ];
33
+ export const PRESETS = [
34
+ { name: 'Shadow box', description: 'The default.', patch: {} },
35
+ { name: 'Deep box', description: 'Few sheets far apart: long shadows.', patch: { sheets: 3, separation: 0.22 } },
36
+ { name: 'Diorama', description: 'Many close sheets.', patch: { sheets: 8, separation: 0.06, smoothing: 3.2 } },
37
+ ];
38
+ export function createUniforms() { return { ...baseUniforms(), uSheets: { value: 5 }, uSep: { value: 0.1 }, uSmooth: { value: 2.6 } }; }
39
+ export function applyConfig(u, c) { const set = applyBase(u, c, POINTER_MODES); set('uSep', c.separation); set('uSmooth', c.smoothing); }
40
+ const vertex = {
41
+ head: /* glsl */ `uniform float uSheets, uSep; varying vec2 vUv; varying float vImg; varying float vK; varying float vE; varying float vAlpha;`,
42
+ body: /* glsl */ `
43
+ float img = aI.x, k = aI.y; float act = actOf(img);
44
+ float e = act * act * (3.0 - 2.0 * act);
45
+ vec2 p = vec2(position.x * uW, position.y * uH);
46
+ float open = e * (1.0 + 1.2 * maskAt(p));
47
+ gPos = vec3(p, k * (uSep * open + 0.003)); // never quite coplanar: no z-fighting when pressed
48
+ vUv = position.xy + 0.5; vImg = img; vK = k; vE = e; vAlpha = fadeAt(img);
49
+ `,
50
+ };
51
+ const cut = /* glsl */ `
52
+ float L = lumOf(textureLod(uTex, vec3(vUv, vImg), uSmooth).rgb);
53
+ if (vK > 0.5 && L < vK / uSheets) discard; // each sheet is cut along its level
54
+ `;
55
+ const fragment = {
56
+ head: /* glsl */ `uniform float uSheets, uSmooth; varying vec2 vUv; varying float vImg; varying float vK; varying float vE; varying float vAlpha;`,
57
+ body: /* glsl */ `
58
+ ${cut}
59
+ vec3 pic = texture(uTex, vec3(vUv, vImg)).rgb;
60
+ diffuseColor.rgb = mix(fadedOf(pic) * 1.8, pic, vE) * uIntensity;
61
+ diffuseColor.a *= vAlpha * uOpacity; if (diffuseColor.a < 0.01) discard;
62
+ `,
63
+ };
64
+ const depthCut = { head: /* glsl */ `uniform float uSheets, uSmooth; varying vec2 vUv; varying float vImg; varying float vK; varying float vE; varying float vAlpha;`, body: cut + 'if (vAlpha < 0.5) discard;' };
65
+ export function build(u, c) { return withLean(buildGallery(u, c), c); }
66
+ function buildGallery(u, c) {
67
+ const W = c.width, H = W / c.aspect, N = Math.max(2, c.sheets | 0);
68
+ u.uSheets.value = N;
69
+ const geo = instanced(new THREE.PlaneGeometry(1, 1, 8, 6), N, () => [0, 0]);
70
+ const mat = litMaterial(u, 'shadowbox', vertex, fragment, { roughness: c.roughness });
71
+ const mesh = new THREE.Mesh(geo, mat);
72
+ mesh.frustumCulled = false;
73
+ mesh.raycast = () => { };
74
+ mesh.castShadow = true;
75
+ mesh.receiveShadow = true;
76
+ mesh.customDepthMaterial = litDepthMaterial(u, 'shadowbox', vertex, depthCut);
77
+ const g = makeGallery(u, c, { W, H, meshes: [mesh], setCount: (n) => { geo.instanceCount = n * N; }, dispose: () => mesh.customDepthMaterial.dispose() });
78
+ const apply = g.apply;
79
+ g.apply = (k) => { apply(k); applyConfig(u, k); if (k.roughness !== undefined)
80
+ mat.roughness = k.roughness; };
81
+ return g;
82
+ }
@@ -0,0 +1,140 @@
1
+ import * as THREE from 'three';
2
+ export declare const catalog: {
3
+ key: string;
4
+ name: string;
5
+ camera: {
6
+ position: number[];
7
+ target: number[];
8
+ };
9
+ description: string;
10
+ tags: string[];
11
+ };
12
+ export declare const DEFAULTS: {
13
+ type: string;
14
+ enabled: boolean;
15
+ lean: number;
16
+ imageUrls: any[];
17
+ autoplay: number;
18
+ intensity: number;
19
+ opacity: number;
20
+ aspect: number;
21
+ width: number;
22
+ resolution: number;
23
+ layout: string;
24
+ spacing: number;
25
+ depth: number;
26
+ visible: number;
27
+ shape: number;
28
+ dim: number;
29
+ stiffness: number;
30
+ damping: number;
31
+ throwing: number;
32
+ wind: number;
33
+ gravity: number;
34
+ drag: number;
35
+ iterations: number;
36
+ fallTime: number;
37
+ sheen: number;
38
+ pointerMode: string;
39
+ pointerStrength: number;
40
+ pointerRadius: number;
41
+ pointerColor: string;
42
+ };
43
+ export declare const STRUCTURAL: string[];
44
+ export declare const POINTER_MODES: string[];
45
+ export declare const GUI: ({
46
+ key: string;
47
+ options: string[];
48
+ tip: string;
49
+ min?: undefined;
50
+ max?: undefined;
51
+ step?: undefined;
52
+ } | {
53
+ key: string;
54
+ min: number;
55
+ max: number;
56
+ step: number;
57
+ tip: string;
58
+ options?: undefined;
59
+ } | {
60
+ key: string;
61
+ min: number;
62
+ max: number;
63
+ step: number;
64
+ options?: undefined;
65
+ color?: undefined;
66
+ } | {
67
+ key: string;
68
+ options: string[];
69
+ min?: undefined;
70
+ max?: undefined;
71
+ step?: undefined;
72
+ color?: undefined;
73
+ } | {
74
+ key: string;
75
+ color: boolean;
76
+ min?: undefined;
77
+ max?: undefined;
78
+ step?: undefined;
79
+ options?: undefined;
80
+ })[];
81
+ export declare const PRESETS: ({
82
+ name: string;
83
+ description: string;
84
+ patch: {
85
+ wind?: undefined;
86
+ gravity?: undefined;
87
+ fallTime?: undefined;
88
+ drag?: undefined;
89
+ };
90
+ } | {
91
+ name: string;
92
+ description: string;
93
+ patch: {
94
+ wind: number;
95
+ gravity: number;
96
+ fallTime: number;
97
+ drag?: undefined;
98
+ };
99
+ } | {
100
+ name: string;
101
+ description: string;
102
+ patch: {
103
+ wind: number;
104
+ gravity: number;
105
+ drag: number;
106
+ fallTime?: undefined;
107
+ };
108
+ })[];
109
+ export declare function createUniforms(): {
110
+ uTex: {
111
+ value: any;
112
+ };
113
+ uKey: {
114
+ value: THREE.Vector3;
115
+ };
116
+ uKeyColor: {
117
+ value: THREE.Color;
118
+ };
119
+ uBackColor: {
120
+ value: THREE.Color;
121
+ };
122
+ uTrans: {
123
+ value: number;
124
+ };
125
+ uSheen: {
126
+ value: number;
127
+ };
128
+ uIntensity: {
129
+ value: number;
130
+ };
131
+ uOpacity: {
132
+ value: number;
133
+ };
134
+ uPointerColor: {
135
+ value: THREE.Color;
136
+ };
137
+ };
138
+ export declare function applyConfig(u: any, c: any): void;
139
+ export declare function build(u: any, c: any): any;
140
+ //# sourceMappingURL=silk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"silk.d.ts","sourceRoot":"","sources":["../../../../src/components/gallery/looks/silk.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,eAAO,MAAM,OAAO;;;;;;;;;CAE2E,CAAC;AAEhG,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQpB,CAAC;AACF,eAAO,MAAM,UAAU,UAAiD,CAAC;AACzE,eAAO,MAAM,aAAa,UAAsB,CAAC;AACjD,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWf,CAAC;AACF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;IAInB,CAAC;AAEF,wBAAgB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7B;AACD,wBAAgB,WAAW,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,QAI/B;AAkFD,wBAAgB,KAAK,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,OAA6C"}