@realsee/five 6.7.0-alpha.9 → 6.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/docs/assets/hierarchy.js +1 -1
  2. package/docs/assets/navigation.js +1 -1
  3. package/docs/assets/search.js +1 -1
  4. package/docs/classes/five.AdaptiveLuminancePass.html +22 -0
  5. package/docs/classes/five.AnimationFrameLoop.html +4 -4
  6. package/docs/classes/five.BoundingMesh.html +4 -0
  7. package/docs/classes/five.Camera.html +6 -5
  8. package/docs/classes/five.EffectComposer.html +21 -0
  9. package/docs/classes/five.EyeDomeLightingPass.html +21 -0
  10. package/docs/classes/five.Five.html +90 -76
  11. package/docs/classes/five.FivePass.html +18 -0
  12. package/docs/classes/five.FiveRenderer.html +9 -0
  13. package/docs/classes/five.FullScreenQuad.html +6 -0
  14. package/docs/classes/five.InternalWebGLRenderer.html +1 -1
  15. package/docs/classes/five.Model.html +32 -31
  16. package/docs/classes/five.ModelScene.html +23 -20
  17. package/docs/classes/five.NetworkSubscribe.html +1 -1
  18. package/docs/classes/five.PBMContainer.html +1 -1
  19. package/docs/classes/five.PBMGroup.html +1 -1
  20. package/docs/classes/five.PBMMesh.html +1 -1
  21. package/docs/classes/five.PBMMeshMaterial.html +6 -7
  22. package/docs/classes/five.PBMPointCloud.html +1 -1
  23. package/docs/classes/five.PBMPointCloudMaterial.html +5 -6
  24. package/docs/classes/five.PBMSkinnedMesh.html +1 -1
  25. package/docs/classes/five.PanoCircleMesh.html +3 -3
  26. package/docs/classes/five.PanoCircleMeshCustom.html +4 -4
  27. package/docs/classes/five.PanoCircleMeshSolid.html +5 -5
  28. package/docs/classes/five.Parameter.html +44 -47
  29. package/docs/classes/five.Scene.html +1 -1
  30. package/docs/classes/five.Subscribe.html +1 -1
  31. package/docs/classes/five.TextureLoader.html +2 -2
  32. package/docs/classes/five.Tile3D.html +21 -21
  33. package/docs/classes/five.TileNode.html +4 -3
  34. package/docs/classes/five.Tileset.html +4 -4
  35. package/docs/classes/five.TrajectoryNode.html +1 -1
  36. package/docs/classes/five.Work.html +16 -16
  37. package/docs/classes/five.WorkResolvedObserver.html +20 -21
  38. package/docs/classes/gltf-loader.DDSLoader.html +1 -1
  39. package/docs/classes/gltf-loader.DRACOLoader.html +1 -1
  40. package/docs/classes/gltf-loader.GLTFLoader.html +1 -1
  41. package/docs/classes/gltf-loader.GLTFObject.html +1 -1
  42. package/docs/classes/gltf-loader.THREEGLTFLoader.html +1 -1
  43. package/docs/classes/line.Line.html +1 -1
  44. package/docs/classes/line.LineGeometry.html +1 -1
  45. package/docs/classes/line.LineMaterial.html +1 -1
  46. package/docs/classes/line.LineSegmentsGeometry.html +1 -1
  47. package/docs/classes/line.THREE_Line2.html +1 -1
  48. package/docs/classes/line.THREE_LineSegments2.html +1 -1
  49. package/docs/classes/plugins.BasePlugin.Controller.html +1 -1
  50. package/docs/classes/plugins.RoundedBoxGeometry.html +1 -1
  51. package/docs/classes/sticker.Sticker.html +1 -1
  52. package/docs/classes/vfx.Airflow.html +1 -1
  53. package/docs/classes/vfx.Flame.html +1 -1
  54. package/docs/classes/vfx.Particle.html +1 -1
  55. package/docs/classes/vfx.ParticleGPU.html +1 -1
  56. package/docs/classes/vfx.SpotLight.html +1 -1
  57. package/docs/functions/five.loadAt3d.html +1 -1
  58. package/docs/functions/five.parseWork.html +1 -1
  59. package/docs/functions/five.workToJson.html +1 -1
  60. package/docs/functions/plugins.DynamicPathLinePlugin.html +1 -0
  61. package/docs/functions/react.withFive.html +1 -1
  62. package/docs/functions/vue.useFiveWorks.html +2 -2
  63. package/docs/hierarchy.html +1 -1
  64. package/docs/interfaces/five.AddableObject.html +1 -1
  65. package/docs/interfaces/five.AjaxOptions.html +1 -1
  66. package/docs/interfaces/five.AnimationFrame.html +3 -2
  67. package/docs/interfaces/five.AnimationFrameContext.html +2 -2
  68. package/docs/interfaces/five.BaseEvent.html +1 -1
  69. package/docs/interfaces/five.EventCallback.html +1 -1
  70. package/docs/interfaces/five.FiveInitArgs.html +3 -3
  71. package/docs/interfaces/five.FiveLoadOptions.html +8 -10
  72. package/docs/interfaces/five.GestureEvent.html +1 -1
  73. package/docs/interfaces/five.ImageOptions.html +1 -1
  74. package/docs/interfaces/five.IntersectEvent.html +1 -1
  75. package/docs/interfaces/five.IntersectMesh.html +2 -2
  76. package/docs/interfaces/five.IntersectMeshInterface.html +1 -1
  77. package/docs/interfaces/five.Intersection.html +1 -1
  78. package/docs/interfaces/five.LoosePanoWork.html +2 -2
  79. package/docs/interfaces/five.LooseWork.html +2 -2
  80. package/docs/interfaces/five.LooseWorkInitial.html +2 -2
  81. package/docs/interfaces/five.LooseWorkModel.html +3 -2
  82. package/docs/interfaces/five.LooseWorkObserver.html +3 -2
  83. package/docs/interfaces/five.LooseWorkPanorama.html +8 -8
  84. package/docs/interfaces/five.LooseWorkVideo.html +2 -2
  85. package/docs/interfaces/five.LooseWorkWithExtrinsics.html +7 -7
  86. package/docs/interfaces/five.ModeChangeEvent.html +2 -2
  87. package/docs/interfaces/five.ModelControllerCustomInitArgs.html +5 -3
  88. package/docs/interfaces/five.ModelEvent.html +2 -2
  89. package/docs/interfaces/five.ModelOptions.html +11 -0
  90. package/docs/interfaces/five.ModelSceneEvent.html +2 -2
  91. package/docs/interfaces/five.MovePanoOptions.html +1 -1
  92. package/docs/interfaces/five.NetworkAbortError.html +1 -1
  93. package/docs/interfaces/five.NetworkFirbiddenError.html +1 -1
  94. package/docs/interfaces/five.NetworkOptions.html +1 -1
  95. package/docs/interfaces/five.NetworkProxyError.html +1 -1
  96. package/docs/interfaces/five.NetworkResourceEvent.html +2 -2
  97. package/docs/interfaces/five.NetworkResponseError.html +1 -1
  98. package/docs/interfaces/five.NetworkTimeoutError.html +1 -1
  99. package/docs/interfaces/five.ObjectEvent.html +2 -2
  100. package/docs/interfaces/five.PBMMaterial.html +1 -1
  101. package/docs/interfaces/five.PBMMeshMaterialParameters.html +2 -3
  102. package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +2 -3
  103. package/docs/interfaces/five.PanoCircleMeshInterface.html +1 -1
  104. package/docs/interfaces/five.PanoCircleMeshSolidOptions.html +2 -2
  105. package/docs/interfaces/five.PanoEvent.html +1 -1
  106. package/docs/interfaces/five.PanoTextureEvent.html +1 -1
  107. package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +12 -10
  108. package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +5 -3
  109. package/docs/interfaces/five.ParameterMaterialValue.html +29 -31
  110. package/docs/interfaces/five.ParameterTilesetValue.html +15 -16
  111. package/docs/interfaces/five.ParameterValue.html +43 -46
  112. package/docs/interfaces/five.Pass.html +9 -0
  113. package/docs/interfaces/five.Pose.html +1 -1
  114. package/docs/interfaces/five.RenderEvent.html +2 -2
  115. package/docs/interfaces/five.ResolvedParameterValue.html +43 -46
  116. package/docs/interfaces/five.State.html +1 -1
  117. package/docs/interfaces/five.StateEvent.html +1 -1
  118. package/docs/interfaces/five.TextureOptions.html +1 -1
  119. package/docs/interfaces/five.TilesetOptions.html +2 -2
  120. package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -3
  121. package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +12 -10
  122. package/docs/interfaces/five.ViewLayer.html +21 -21
  123. package/docs/interfaces/five.WorkCubeImage.html +2 -2
  124. package/docs/interfaces/five.WorkImage.html +5 -3
  125. package/docs/interfaces/five.WorkInitial.html +8 -8
  126. package/docs/interfaces/five.WorkModel.html +9 -7
  127. package/docs/interfaces/five.WorkModelJson.html +3 -2
  128. package/docs/interfaces/five.WorkModelLayer.html +7 -2
  129. package/docs/interfaces/five.WorkModelLayerJson.html +2 -2
  130. package/docs/interfaces/five.WorkObserver.html +21 -22
  131. package/docs/interfaces/five.WorkObserverJson.html +4 -2
  132. package/docs/interfaces/five.WorkPanoramaJson.html +2 -2
  133. package/docs/interfaces/five.WorkPanoramasJson.html +2 -2
  134. package/docs/interfaces/five.WorkTile.html +4 -4
  135. package/docs/interfaces/five.WorkVideo.html +4 -4
  136. package/docs/interfaces/five.WorksEvent.html +2 -3
  137. package/docs/interfaces/five.XRControllerEvent.html +1 -1
  138. package/docs/interfaces/five.XRGestureEvent.html +1 -1
  139. package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +12 -10
  140. package/docs/interfaces/five.XRSessionEvent.html +1 -1
  141. package/docs/interfaces/plugins.BackgroundPluginController.html +1 -1
  142. package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +1 -1
  143. package/docs/interfaces/plugins.BasePlugin.State.html +1 -1
  144. package/docs/interfaces/plugins.DynamicPathLinePluginController.html +83 -0
  145. package/docs/interfaces/plugins.DynamicPathLinePluginType.Config.html +36 -0
  146. package/docs/interfaces/plugins.DynamicPathLinePluginType.EventMap.html +26 -0
  147. package/docs/interfaces/plugins.DynamicPathLinePluginType.Params.html +6 -0
  148. package/docs/interfaces/plugins.DynamicPathLinePluginType.PathConfig.html +28 -0
  149. package/docs/interfaces/plugins.DynamicPathLinePluginType.State.html +10 -0
  150. package/docs/interfaces/plugins.ItemMaskController.html +1 -1
  151. package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +1 -1
  152. package/docs/interfaces/plugins.ItemMaskPluginType.State.html +1 -1
  153. package/docs/interfaces/plugins.OrientationPluginController.html +1 -1
  154. package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +1 -1
  155. package/docs/interfaces/plugins.OrientationPluginType.State.html +1 -1
  156. package/docs/interfaces/plugins.PanoAnimeController.html +1 -1
  157. package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +1 -1
  158. package/docs/interfaces/plugins.PanoAnimePluginType.State.html +1 -1
  159. package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +1 -1
  160. package/docs/interfaces/plugins.PluginTemplateType.State.html +1 -1
  161. package/docs/interfaces/plugins.TrajectoryController.html +1 -1
  162. package/docs/interfaces/react.FiveInjectionTypes.html +4 -4
  163. package/docs/modules/five.html +1 -1
  164. package/docs/modules/plugins.DynamicPathLinePluginType.html +1 -0
  165. package/docs/modules/plugins.html +1 -1
  166. package/docs/types/five.AnimationFrameLoopType.html +1 -1
  167. package/docs/types/five.Models.html +4 -4
  168. package/docs/types/five.ParseOptions.html +6 -6
  169. package/docs/types/five.PostProcessingType.html +1 -1
  170. package/docs/types/five.RequestAnimationFrameArgs.html +1 -0
  171. package/docs/types/five.TilesetFrameState.html +2 -3
  172. package/docs/types/plugins.BasePlugin.EventMap.html +1 -1
  173. package/docs/types/plugins.DynamicPathLinePluginType.PluginData.html +3 -0
  174. package/docs/types/plugins.DynamicPathLinePluginType.ServerData.html +3 -0
  175. package/docs/types/vue.FiveProviderComponent.html +1 -1
  176. package/five/index.d.ts +311 -85
  177. package/five/index.js +299 -198
  178. package/five/index.mjs +7306 -6940
  179. package/gltf-loader/index.js +3 -3
  180. package/gltf-loader/index.mjs +146 -146
  181. package/line/index.js +3 -3
  182. package/line/index.mjs +10 -10
  183. package/package.json +1 -1
  184. package/plugins/index.d.ts +314 -0
  185. package/plugins/index.js +296 -15
  186. package/plugins/index.mjs +2615 -1503
  187. package/react/index.d.ts +1 -1
  188. package/react/index.js +2 -2
  189. package/react/index.mjs +2 -2
  190. package/shader-lib/index.d.ts +24 -1
  191. package/shader-lib/index.js +22 -13
  192. package/shader-lib/index.mjs +408 -171
  193. package/sticker/index.js +3 -3
  194. package/sticker/index.mjs +7 -7
  195. package/umd/five-gltf-loader.js +3 -3
  196. package/umd/five-line.js +3 -3
  197. package/umd/five-plugins.js +296 -15
  198. package/umd/five-react.js +2 -2
  199. package/umd/five-shader-lib.js +22 -13
  200. package/umd/five-sticker.js +3 -3
  201. package/umd/five-vfx.js +2 -2
  202. package/umd/five-vue.js +2 -2
  203. package/umd/five.js +299 -198
  204. package/vfx/index.js +2 -2
  205. package/vfx/index.mjs +2 -2
  206. package/vue/index.d.ts +1 -1
  207. package/vue/index.js +2 -2
  208. package/vue/index.mjs +2 -2
  209. package/work-downloader/index.js +3 -3
  210. package/work-downloader/index.mjs +13 -11
  211. package/docs/interfaces/five.ModelLike.html +0 -3
  212. package/docs/types/five.Tile3dOptions.html +0 -1
package/umd/five-react.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 10/23/2025
5
- * Version: 6.7.0-alpha.9
4
+ * Generated: 12/29/2025
5
+ * Version: 6.7.0
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 10/23/2025
5
- * Version: 6.7.0-alpha.9
4
+ * Generated: 12/29/2025
5
+ * Version: 6.7.0
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
@@ -252,7 +252,7 @@
252
252
  * No amendment to or modification of this Agreement will be binding unless in
253
253
  * writing and signed by Realsee. You and Realsee hereto confirm that this
254
254
  * Agreement and all related documents shall be drafted in English.
255
- */(function(x,P){typeof exports=="object"&&typeof module!="undefined"?P(exports,require("@realsee/five"),require("three")):typeof define=="function"&&define.amd?define(["exports","@realsee/five","three"],P):(x=typeof globalThis!="undefined"?globalThis:x||self,P(x.FiveSDK_ShaderLib={},x.FiveSDK,x.THREE))})(this,(function(x,P,J){"use strict";function V(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>r[n]})}}return e.default=r,Object.freeze(e)}const a=V(J);var F=function(r,e){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(n[t]=o[t])},F(r,e)};function S(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");F(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function z(r,e,n){if(n||arguments.length===2)for(var o=0,t=e.length,l;o<t;o++)(l||!(o in e))&&(l||(l=Array.prototype.slice.call(e,0,o)),l[o]=e[o]);return r.concat(l||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var W=`
255
+ */(function(y,E){typeof exports=="object"&&typeof module!="undefined"?E(exports,require("@realsee/five"),require("three")):typeof define=="function"&&define.amd?define(["exports","@realsee/five","three"],E):(y=typeof globalThis!="undefined"?globalThis:y||self,E(y.FiveSDK_ShaderLib={},y.FiveSDK,y.THREE))})(this,(function(y,E,R){"use strict";function V(a){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const e in a)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(n,e,o.get?o:{enumerable:!0,get:()=>a[e]})}}return n.default=a,Object.freeze(n)}const l=V(R);var M=function(a,n){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])},M(a,n)};function _(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");M(a,n);function e(){this.constructor=a}a.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}function L(a,n,e,o){function t(r){return r instanceof e?r:new e(function(s){s(r)})}return new(e||(e=Promise))(function(r,s){function f(u){try{i(o.next(u))}catch(d){s(d)}}function c(u){try{i(o.throw(u))}catch(d){s(d)}}function i(u){u.done?r(u.value):t(u.value).then(f,c)}i((o=o.apply(a,n||[])).next())})}function W(a,n){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,t,r,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=f(0),s.throw=f(1),s.return=f(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function f(i){return function(u){return c([i,u])}}function c(i){if(o)throw new TypeError("Generator is already executing.");for(;s&&(s=0,i[0]&&(e=0)),e;)try{if(o=1,t&&(r=i[0]&2?t.return:i[0]?t.throw||((r=t.return)&&r.call(t),0):t.next)&&!(r=r.call(t,i[1])).done)return r;switch(t=0,r&&(i=[i[0]&2,r.value]),i[0]){case 0:case 1:r=i;break;case 4:return e.label++,{value:i[1],done:!1};case 5:e.label++,t=i[1],i=[0];continue;case 7:i=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(i[0]===6||i[0]===2)){e=0;continue}if(i[0]===3&&(!r||i[1]>r[0]&&i[1]<r[3])){e.label=i[1];break}if(i[0]===6&&e.label<r[1]){e.label=r[1],r=i;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(i);break}r[2]&&e.ops.pop(),e.trys.pop();continue}i=n.call(a,e)}catch(u){i=[6,u],t=0}finally{o=r=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}function O(a,n,e){if(e||arguments.length===2)for(var o=0,t=n.length,r;o<t;o++)(r||!(o in n))&&(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return a.concat(r||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;var j=`
256
256
  #if defined(USE_PLANE_DISTANCE)
257
257
  struct Plane {
258
258
  vec3 normal;
@@ -263,7 +263,7 @@
263
263
  uniform float evennessPlaneConstant;
264
264
  uniform float evennessPlaneDepth;
265
265
  #endif
266
- `,H=`
266
+ `,J=`
267
267
  #if defined(USE_PLANE_DISTANCE)
268
268
 
269
269
  bool inside = true;
@@ -283,7 +283,7 @@
283
283
  }
284
284
  }
285
285
  #endif
286
- `,R="",L={type:["pointcloud"],fragment:{mainBefore:W,mainStart:R,mainEnd:H},uniforms:{evennessPlaneNormal:new a.Uniform(new a.Vector3),evennessPlaneConstant:new a.Uniform(0),evennessPlanes:new a.Uniform([]),evennessPlaneDepth:new a.Uniform(0)},defines:{USE_PLANE_DISTANCE:!1}},j=(function(r){S(e,r);function e(){var n=r.call(this,L)||this;return Object.defineProperties(n,{evennessPlane:{get:function(){return{depth:this.uniforms.evennessPlaneDepth.value,points:this.uniforms.evennessPoints.value}},set:function(o){var t=o.points,l=o.depth,m=!1;if(t.length!==0&&t.length%4===0){m=!0;var d=t[0],u=t[1],p=t[2],i=t[3],g=new a.Vector3().subVectors(u,d),y=new a.Vector3().subVectors(p,d),c=new a.Vector3().crossVectors(g,y).normalize(),h=-c.dot(d),s=l,f=d.clone().add(c.clone().negate().multiplyScalar(s)),v=d.clone().add(c.clone().multiplyScalar(s)),E=u.clone().add(c.clone().negate().multiplyScalar(s)),_=u.clone().add(c.clone().multiplyScalar(s)),w=p.clone().add(c.clone().negate().multiplyScalar(s)),C=p.clone().add(c.clone().multiplyScalar(s)),B=i.clone().add(c.clone().negate().multiplyScalar(s)),O=i.clone().add(c.clone().multiplyScalar(s)),T=new a.Plane().setFromCoplanarPoints(v,_,C),b=new a.Plane().setFromCoplanarPoints(w,E,f),D=new a.Plane().setFromCoplanarPoints(_,v,f),U=new a.Plane().setFromCoplanarPoints(B,O,C),I=new a.Plane().setFromCoplanarPoints(C,_,E),A=new a.Plane().setFromCoplanarPoints(f,v,O);this.uniforms.evennessPlanes.value=[{normal:T.normal,constant:T.constant},{normal:b.normal,constant:b.constant},{normal:D.normal,constant:D.constant},{normal:U.normal,constant:U.constant},{normal:I.normal,constant:I.constant},{normal:A.normal,constant:A.constant}],this.uniforms.evennessPlaneDepth.value=l,this.uniforms.evennessPlaneNormal.value=c,this.uniforms.evennessPlaneConstant.value=h}this.defines.USE_PLANE_DISTANCE=m,this.needsUpdate=!0}}}),n.evennessPlane={depth:0,points:[]},n}return e})(P.CustomShader),G=`
286
+ `,H="",q={type:["pointcloud"],fragment:{mainBefore:j,mainStart:H,mainEnd:J},uniforms:{evennessPlaneNormal:new l.Uniform(new l.Vector3),evennessPlaneConstant:new l.Uniform(0),evennessPlanes:new l.Uniform([]),evennessPlaneDepth:new l.Uniform(0)},defines:{USE_PLANE_DISTANCE:!1}},G=(function(a){_(n,a);function n(){var e=a.call(this,q)||this;return Object.defineProperties(e,{evennessPlane:{get:function(){return{depth:this.uniforms.evennessPlaneDepth.value,points:this.uniforms.evennessPoints.value}},set:function(o){var t=o.points,r=o.depth,s=!1;if(t.length!==0&&t.length%4===0){s=!0;var f=t[0],c=t[1],i=t[2],u=t[3],d=new l.Vector3().subVectors(c,f),h=new l.Vector3().subVectors(i,f),m=new l.Vector3().crossVectors(d,h).normalize(),P=-m.dot(f),p=r,g=f.clone().add(m.clone().negate().multiplyScalar(p)),v=f.clone().add(m.clone().multiplyScalar(p)),x=c.clone().add(m.clone().negate().multiplyScalar(p)),w=c.clone().add(m.clone().multiplyScalar(p)),C=i.clone().add(m.clone().negate().multiplyScalar(p)),S=i.clone().add(m.clone().multiplyScalar(p)),z=u.clone().add(m.clone().negate().multiplyScalar(p)),F=u.clone().add(m.clone().multiplyScalar(p)),b=new l.Plane().setFromCoplanarPoints(v,w,S),B=new l.Plane().setFromCoplanarPoints(C,x,g),I=new l.Plane().setFromCoplanarPoints(w,v,g),U=new l.Plane().setFromCoplanarPoints(z,F,S),A=new l.Plane().setFromCoplanarPoints(S,w,x),k=new l.Plane().setFromCoplanarPoints(g,v,F);this.uniforms.evennessPlanes.value=[{normal:b.normal,constant:b.constant},{normal:B.normal,constant:B.constant},{normal:I.normal,constant:I.constant},{normal:U.normal,constant:U.constant},{normal:A.normal,constant:A.constant},{normal:k.normal,constant:k.constant}],this.uniforms.evennessPlaneDepth.value=r,this.uniforms.evennessPlaneNormal.value=m,this.uniforms.evennessPlaneConstant.value=P}this.defines.USE_PLANE_DISTANCE=s,this.needsUpdate=!0}}}),e.evennessPlane={depth:0,points:[]},e}return n})(E.CustomShader),$=`
287
287
  #if NUM_SWEEP_OBJECTS > 0
288
288
  uniform float sweepProgress;
289
289
  uniform float sweepRange;
@@ -296,7 +296,7 @@
296
296
  };
297
297
  uniform SWEEP_OBJECT sweepBoxs[NUM_SWEEP_OBJECTS];
298
298
  #endif
299
- `,q=`
299
+ `,K=`
300
300
 
301
301
  #if NUM_SWEEP_OBJECTS > 0
302
302
  #pragma unroll_loop_start
@@ -329,7 +329,7 @@
329
329
  }
330
330
  #pragma unroll_loop_end
331
331
  #endif
332
- `,$="",k=(function(r){S(e,r);function e(){var n=r.call(this,{type:["basic","phong","pointcloud"],fragment:{mainBefore:G,mainStart:$,mainEnd:q},uniforms:{sweepProgress:new a.Uniform(0),sweepRange:new a.Uniform(0),sweepBoxs:new a.Uniform([]),interval:new a.Uniform(.04),threshold:new a.Uniform(.002)},defines:{NUM_SWEEP_OBJECTS:0}})||this;return Object.defineProperties(n,{sweepBoxs:{get:function(){return this.uniforms.sweepBoxs.value},set:function(o){var t=o.length;t>0&&(this.defines.NUM_SWEEP_OBJECTS=t,this.needsUpdate=!0,this.uniforms.sweepBoxs.value=o)}}}),n.sweepBoxs=[],n}return e.prototype.onBeforeCompile=function(n,o){var t=String(this.sweepBoxs.length);n.vertexShader=n.vertexShader.replace(/NUM_SWEEP_OBJECTS/g,t),n.fragmentShader=n.fragmentShader.replace(/NUM_SWEEP_OBJECTS/g,t)},e})(P.CustomShader),K=`
332
+ `,Y="",Q=(function(a){_(n,a);function n(){var e=a.call(this,{type:["basic","phong","pointcloud"],fragment:{mainBefore:$,mainStart:Y,mainEnd:K},uniforms:{sweepProgress:new l.Uniform(0),sweepRange:new l.Uniform(0),sweepBoxs:new l.Uniform([]),interval:new l.Uniform(.04),threshold:new l.Uniform(.002)},defines:{NUM_SWEEP_OBJECTS:0}})||this;return Object.defineProperties(e,{sweepBoxs:{get:function(){return this.uniforms.sweepBoxs.value},set:function(o){var t=o.length;t>0&&(this.defines.NUM_SWEEP_OBJECTS=t,this.needsUpdate=!0,this.uniforms.sweepBoxs.value=o)}}}),e.sweepBoxs=[],e}return n.prototype.onBeforeCompile=function(e,o){var t=String(this.sweepBoxs.length);e.vertexShader=e.vertexShader.replace(/NUM_SWEEP_OBJECTS/g,t),e.fragmentShader=e.fragmentShader.replace(/NUM_SWEEP_OBJECTS/g,t)},n})(E.CustomShader),Z=`
333
333
  uniform float pointCloudExpand_progress;
334
334
 
335
335
  vec4 pointCloudExpand_permute(vec4 x) { return mod(((x * 34.0) + 1.0) * x, 289.0); }
@@ -402,7 +402,7 @@ float pointCloudExpand_gln_simplex(vec3 v) {
402
402
  m = m * m;
403
403
  return 42.0 * dot(m * m, vec4(dot(p0, x0), dot(p1, x1), dot(p2, x2), dot(p3, x3)));
404
404
  }
405
- `,Y=`
405
+ `,X=`
406
406
  float pointCloudExpand_sizeScale = 1.0;
407
407
  float pointCloudExpand_sizeBasis = 0.0;
408
408
  vec4 pointCloudExpand_basis = vec4((modelBoundingMax + modelBoundingMin) / 2.0, 1.0);
@@ -416,7 +416,8 @@ float pointCloudExpand_progress2 = step(pointCloudExpand_progress, 1.0 - pointCl
416
416
  pointCloudExpand_sizeBasis = mix(0.1 * step(abs(pointCloudExpand_noise), 0.5 / pointCloudExpand_boundingRadius), pointCloudExpand_sizeBasis, pointCloudExpand_progress2);
417
417
  gl_PointSize = gl_PointSize * pointCloudExpand_sizeScale + pointCloudExpand_sizeBasis;
418
418
  vPointSize = gl_PointSize;
419
- `,Q=(function(r){S(e,r);function e(){return r.call(this,{type:["pointcloud"],vertex:{mainBefore:K,mainEnd:Y},uniforms:{pointCloudExpand_progress:new a.Uniform(0)}})||this}return Object.defineProperty(e.prototype,"progress",{get:function(){return this.uniforms.pointCloudExpand_progress.value},set:function(n){this.uniforms.pointCloudExpand_progress.value=n},enumerable:!1,configurable:!0}),e})(P.CustomShader),Z=`
419
+ `,ee=(function(a){_(n,a);function n(){return a.call(this,{type:["pointcloud"],vertex:{mainBefore:Z,mainEnd:X},uniforms:{pointCloudExpand_progress:new l.Uniform(0)}})||this}return Object.defineProperty(n.prototype,"progress",{get:function(){return this.uniforms.pointCloudExpand_progress.value},set:function(e){this.uniforms.pointCloudExpand_progress.value=e},enumerable:!1,configurable:!0}),n})(E.CustomShader);const N=`(function(){"use strict";function P(n){onmessage=function(a){Promise.resolve(a.data).then(function(t){return n(t)}).then(function(t){var v=t.output,r=t.transfer;return postMessage(v,r)}).catch(function(t){return postMessage({$$error:t})})}}function y(n,a,t){var v=new OffscreenCanvas(a,t),r=v.getContext("2d");if(!r)throw new Error("Failed to get canvas context");r.clearRect(0,0,a,t),r.fillStyle="rgba(0,0,0,1.0)",r.beginPath();var o=n[0][0],i=n[0][0],u=n[0][1],m=n[0][1];n.forEach(function(e){var f=e[0],s=e[1];o=Math.min(o,f),i=Math.max(i,f),u=Math.min(u,s),m=Math.max(m,s)});var g=i-o,c=m-u,h=g>=c?a/g:a/c,x=n.map(function(e){var f=e[0]-o,s=e[1]-u;return[f,s]}),l=x.map(function(e){return[e[0]*h,e[1]*h]});return l.forEach(function(e,f){var s=e[0],D=e[1];f===0?r.moveTo(s,D):r.lineTo(s,D)}),r.closePath(),r.fill(),r.getImageData(0,0,a,t)}function M(n,a,t){for(var v=new ImageData(a,t),r=n.map(function(s){return y(s.polygon,s.width,s.height)}),o=0;o<a;o++)for(var i=0;i<t;i++){for(var u=0,m=0,g=0,c=0;c<r.length;c++){var h=r[c].data,x=(o+i*a)*4;if(h[x+3]===255){var l=c%8,e=Math.floor(c/8);e===0?u=u|1<<l:e===1?m=m|1<<l:e===2&&(g=g|1<<l)}}var f=(o+i*a)*4;v.data[f]=u,v.data[f+1]=m,v.data[f+2]=g,v.data[f+3]=255}return v}P(function(n){return Promise.resolve(n).then(function(a){var t=a.canvasDataList,v=a.width,r=a.height,o=M(t,v,r);return{output:{imageData:o},transfer:[o.data.buffer]}})})})();
420
+ `,D=typeof self!="undefined"&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",N],{type:"text/javascript;charset=utf-8"});function ne(a){let n;try{if(n=D&&(self.URL||self.webkitURL).createObjectURL(D),!n)throw"";const e=new Worker(n,{name:a==null?void 0:a.name});return e.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),e}catch(e){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(N),{name:a==null?void 0:a.name})}}var oe=(function(){function a(n,e){this.disposed=!1,this.pool=e,this.workerCreator=n,this.queue=[],this.workers=[],this.workerResolvers=[],this.workerStatus=0}return a.prototype.setWorkerCreator=function(n){this.workerCreator=n},a.prototype.initWorker=function(n){if(!this.workerCreator)throw new Error("workerCreator is not defined");if(!this.workers[n]){var e=this.workerCreator(n);e.addEventListener("message",this.onMessage.bind(this,n)),this.workers[n]=e}},a.prototype.getIdleWorker=function(){for(var n=0;n<this.pool;n++)if(!(this.workerStatus&1<<n))return n;return-1},a.prototype.onMessage=function(n,e){var o=this.workerResolvers[n];if(e.data&&"$$error"in e.data?o==null||o.reject(e.data.$$error):o==null||o.resolve(e.data),this.workerResolvers[n]=void 0,this.queue.length){var t=this.queue.shift(),r=t.resolve,s=t.reject,f=t.input,c=t.transfer;this.workerResolvers[n]={resolve:r,reject:s},this.workers[n].postMessage(f,c)}else this.workerStatus^=1<<n},a.prototype.postMessage=function(n,e){var o=this;return e===void 0&&(e=[]),new Promise(function(t,r){if(o.disposed){r(new Error("disposed"));return}var s=o.getIdleWorker();s!==-1?(o.initWorker(s),o.workerStatus|=1<<s,o.workerResolvers[s]={resolve:t,reject:r},o.workers[s].postMessage(n,e)):o.queue.push({resolve:t,reject:r,input:n,transfer:e})})},a.prototype.dispose=function(){this.disposed=!0,this.workers.forEach(function(n){n.terminate()}),this.workers.length=0,this.workerResolvers.forEach(function(n){n==null||n.reject(new Error("disposed"))}),this.workerResolvers.length=0,this.queue.forEach(function(n){n.reject(new Error("disposed"))}),this.queue.length=0,this.workerStatus=0},a})();function te(a){if(a.length<3)throw new Error("At least 3 points are required to compute alignment matrix");var n=a[0],e=a[1],o=a[2],t=new l.Vector3().subVectors(e,n),r=new l.Vector3().subVectors(o,n),s=new l.Vector3().crossVectors(t,r);if(s.lengthSq()<1e-4)for(var f=3;f<a.length&&(o=a[f],r=new l.Vector3().subVectors(o,n),s=new l.Vector3().crossVectors(t,r),!(s.lengthSq()>=1e-4));f++);if(s.lengthSq()<1e-4)throw new Error("All points are collinear, cannot compute normal");s.normalize();var c=new l.Vector3;a.forEach(function(C){return c.add(C)}),c.divideScalar(a.length);var i=new l.Vector3(0,1,0),u=new l.Quaternion,d=s.dot(i);if(!(Math.abs(d-1)<1e-4))if(Math.abs(d+1)<1e-4){var h=new l.Vector3(1,0,0);u.setFromAxisAngle(h,Math.PI)}else{var h=new l.Vector3().crossVectors(s,i).normalize(),m=Math.acos(d);u.setFromAxisAngle(h,m)}var P=new l.Matrix4().makeTranslation(-c.x,-c.y,-c.z),p=new l.Matrix4().makeRotationFromQuaternion(u),g=new l.Matrix4;g.multiplyMatrices(p,P);var v=a.map(function(C){var S=C.clone().applyMatrix4(g);return[S.x,S.z]});if(v.length>0){var x=v[0],w=v[v.length-1];(x[0]!==w[0]||x[1]!==w[1])&&v.push([x[0],x[1]])}return{transformMatrix:g,points2D:v}}var re=`
420
421
  uniform sampler2D polygonTexture;
421
422
 
422
423
  struct PolygonClipper {
@@ -425,12 +426,13 @@ vPointSize = gl_PointSize;
425
426
  vec2 minPos;
426
427
  float polygonScale;
427
428
  bool cutOutSide;
429
+ float floorIndex;
428
430
  };
429
431
 
430
432
  #if NUM_POLYGON_CLIPPER > 0
431
433
  uniform PolygonClipper polygonClippers[NUM_POLYGON_CLIPPER];
432
434
  #endif
433
- `,X=`
435
+ `,ae=`
434
436
 
435
437
  for(int i = 0; i < NUM_POLYGON_CLIPPER; i++){
436
438
  PolygonClipper polygonClipper = polygonClippers[i];
@@ -439,6 +441,13 @@ vPointSize = gl_PointSize;
439
441
  vec2 minPos = polygonClipper.minPos;
440
442
  float polygonScale = polygonClipper.polygonScale;
441
443
  bool cutOutSide = polygonClipper.cutOutSide;
444
+ float clipperFloorIndex = polygonClipper.floorIndex;
445
+
446
+ // 楼层判断:如果 floorIndex < 0,对所有楼层生效;否则只对特定楼层生效
447
+ bool isFloorMatch = clipperFloorIndex < 0.0 || abs(floorIndex - clipperFloorIndex) < 1.0;
448
+ if (!isFloorMatch) {
449
+ continue;
450
+ }
442
451
 
443
452
  vec4 worldPosition = vFinalPosition;
444
453
  vec4 positionInPolygonSpace = polygonTransformInverse * worldPosition;
@@ -500,7 +509,7 @@ vPointSize = gl_PointSize;
500
509
  }
501
510
  }
502
511
 
503
- `,N=(function(){function r(){this.canvasCache=new Map,this.canvas=document.createElement("canvas"),this.canvas.width=512,this.canvas.height=512,this.polygonTexture=new a.CanvasTexture(this.canvas),this.polygonCount=0}return r.prototype.setSize=function(e){this.canvas.width=e,this.canvas.height=e},r.prototype.generatePolygonCanvas=function(e){var n=JSON.stringify(e);if(this.canvasCache.has(n))return this.canvasCache.get(n);var o=document.createElement("canvas");o.width=this.canvas.width,o.height=this.canvas.height;var t=o.getContext("2d");if(!t)throw new Error("Failed to get canvas context");if(this.polygonCount>=24)throw new Error("polygon count exceed 24, please clear the canvas");t.clearRect(0,0,this.canvas.width,this.canvas.height),t.fillStyle="rgba(0,0,0,1.0)",t.beginPath();var l=e[0][0],m=e[0][0],d=e[0][1],u=e[0][1];e.forEach(function(s){var f=s[0],v=s[1];l=Math.min(l,f),m=Math.max(m,f),d=Math.min(d,v),u=Math.max(u,v)});var p=m-l,i=u-d,g=this.canvas.width,y=p>=i?g/p:g/i,c=e.map(function(s){var f=s[0]-l,v=s[1]-d;return[f,v]}),h=c.map(function(s){return[s[0]*y,s[1]*y]});return h.forEach(function(s,f){var v=s[0],E=s[1];f===0?t.moveTo(v,E):t.lineTo(v,E)}),t.closePath(),t.fill(),this.polygonCount++,this.canvasCache.set(n,o),o},r.generatePolygonGeometry=function(e,n){for(var o=new a.BufferGeometry,t=e.slice(0,-1),l=t.map(function(g){return[g[0],0,g[1]]}),m=t.map(function(g){return[g[0],n,g[1]]}),d=z(z([],l,!0),m,!0),u=t.length,p=[],i=1;i<u-1;i++)p.push(0,i,i+1);for(var i=1;i<u-1;i++)p.push(u,u+i,u+i+1);for(var i=0;i<u-1;i++)p.push(i,i+1,u+i),p.push(i+1,i+1+u,u+i);return o.setAttribute("position",new a.Float32BufferAttribute(d.flat(),3)),o.setIndex(p),o.computeVertexNormals(),o},r.prototype.generatePolygonTexture=function(e){var n=this.canvas.getContext("2d",{willReadFrequently:!0});if(!n)throw new Error("Failed to get canvas context");for(var o=n.createImageData(this.canvas.width,this.canvas.height),t=0;t<this.canvas.width;t++)for(var l=0;l<this.canvas.height;l++){for(var m=0,d=0,u=0,p=0;p<e.length;p++){var i=e[p].getContext("2d",{willReadFrequently:!0});if(!i)throw new Error("Failed to get canvas context");var g=i.getImageData(t,l,1,1).data;if(g[3]===255){var y=p%8,c=Math.floor(p/8);c===0?m=m|1<<y:c===1?d=d|1<<y:c===2&&(u=u|1<<y)}}var h=(t+l*this.canvas.width)*4;o.data[h]=m,o.data[h+1]=d,o.data[h+2]=u,o.data[h+3]=255}return n.putImageData(o,0,0),new a.CanvasTexture(this.canvas)},r})(),M=new N,nn=(function(r){S(e,r);function e(){var n=r.call(this,{type:["basic","phong","pointcloud"],fragment:{mainBefore:Z,mainEnd:X},uniforms:{polygonClippers:new a.Uniform([]),polygonTexture:new a.Uniform(null)}})||this;return n._polygonClippers=[],n._radio=512,n}return Object.defineProperty(e.prototype,"polygonClippers",{get:function(){return this._polygonClippers},set:function(n){this._polygonClippers=n;var o=this.uniforms;o.polygonClippers.value=n.map(function(p){var i=new a.Matrix4().getInverse(p.polygonTransform),g=p.polygonHeight,y=p.cutOutSide,c=p.polygon,h=c[0][0],s=c[0][0],f=c[0][1],v=c[0][1];c.forEach(function(w){var C=w[0],B=w[1];h=Math.min(h,C),s=Math.max(s,C),f=Math.min(f,B),v=Math.max(v,B)});var E=new a.Vector2(h,f),_=s-h>=v-f?s-h:v-f;return{polygonTransformInverse:i,polygonHeight:g,minPos:E,polygonScale:_,cutOutSide:y}});for(var t=[],l=0;l<n.length;l++){var m=n[l].polygon,d=M.generatePolygonCanvas(m);t.push(d)}var u=M.generatePolygonTexture(t);this.uniforms.polygonTexture.value=u,this.needsUpdate=!0},enumerable:!1,configurable:!0}),e.prototype.onBeforeCompile=function(n,o){var t=String(this.polygonClippers.length);n.vertexShader=n.vertexShader.replace(/NUM_POLYGON_CLIPPER/g,t),n.fragmentShader=n.fragmentShader.replace(/NUM_POLYGON_CLIPPER/g,t)},e})(P.CustomShader),en=`
512
+ `,T=(function(){function a(){this.canvasCache=new Map,this.canvas=document.createElement("canvas"),this.canvas.width=512,this.canvas.height=512,this.polygonTexture=new l.CanvasTexture(this.canvas),this.polygonCount=0}return a.prototype.setSize=function(n){this.canvas.width=n,this.canvas.height=n},a.prototype.generatePolygonCanvas=function(n){var e=JSON.stringify(n);if(this.canvasCache.has(e))return this.canvasCache.get(e);var o=document.createElement("canvas");o.width=this.canvas.width,o.height=this.canvas.height;var t=o.getContext("2d");if(!t)throw new Error("Failed to get canvas context");if(this.polygonCount>=24)throw new Error("polygon count exceed 24, please clear the canvas");t.clearRect(0,0,this.canvas.width,this.canvas.height),t.fillStyle="rgba(0,0,0,1.0)",t.beginPath();var r=n[0][0],s=n[0][0],f=n[0][1],c=n[0][1];n.forEach(function(p){var g=p[0],v=p[1];r=Math.min(r,g),s=Math.max(s,g),f=Math.min(f,v),c=Math.max(c,v)});var i=s-r,u=c-f,d=this.canvas.width,h=i>=u?d/i:d/u,m=n.map(function(p){var g=p[0]-r,v=p[1]-f;return[g,v]}),P=m.map(function(p){return[p[0]*h,p[1]*h]});return P.forEach(function(p,g){var v=p[0],x=p[1];g===0?t.moveTo(v,x):t.lineTo(v,x)}),t.closePath(),t.fill(),this.polygonCount++,this.canvasCache.set(e,o),o},a.generatePolygonGeometry=function(n,e){for(var o=new l.BufferGeometry,t=n.slice(0,-1),r=t.map(function(h){return[h[0],0,h[1]]}),s=t.map(function(h){return[h[0],e,h[1]]}),f=O(O([],r,!0),s,!0),c=t.length,i=[],u=1;u<c-1;u++)i.push(0,u,u+1);for(var u=1;u<c-1;u++)i.push(c,c+u,c+u+1);for(var u=0;u<c;u++){var d=(u+1)%c;i.push(u,d,c+u),i.push(d,c+d,c+u)}return o.setAttribute("position",new l.Float32BufferAttribute(f.flat(),3)),o.setIndex(i),o.computeVertexNormals(),o},a.prototype.generatePolygonTexture=function(n){var e=this.canvas.getContext("2d",{willReadFrequently:!0});if(!e)throw new Error("Failed to get canvas context");for(var o=e.createImageData(this.canvas.width,this.canvas.height),t=0;t<this.canvas.width;t++)for(var r=0;r<this.canvas.height;r++){for(var s=0,f=0,c=0,i=0;i<n.length;i++){var u=n[i].getContext("2d",{willReadFrequently:!0});if(!u)throw new Error("Failed to get canvas context");var d=u.getImageData(t,r,1,1).data;if(d[3]===255){var h=i%8,m=Math.floor(i/8);m===0?s=s|1<<h:m===1?f=f|1<<h:m===2&&(c=c|1<<h)}}var P=(t+r*this.canvas.width)*4;o.data[P]=s,o.data[P+1]=f,o.data[P+2]=c,o.data[P+3]=255}return e.putImageData(o,0,0),new l.CanvasTexture(this.canvas)},a})(),ie=(function(a){_(n,a);function n(e){e===void 0&&(e=512);var o=a.call(this,{type:["basic","phong","pointcloud"],fragment:{mainBefore:re,mainEnd:ae},uniforms:{polygonClippers:new l.Uniform([]),polygonTexture:new l.Uniform(null)}})||this;return o._polygonClippers=[],o.polygonGenerater=new T,o._radio=512,o.radio=e,o.workerPool=new oe(function(){return new ne},1),o}return n.prototype.setPolygonClippersAsync=function(e){return L(this,void 0,void 0,function(){var o,t,r,s,f,c,i=this;return W(this,function(u){switch(u.label){case 0:return this._polygonClippers=e,o=this.uniforms,o.polygonClippers.value=e.map(function(d){var h=new l.Matrix4().getInverse(d.polygonTransform),m=d.polygonHeight,P=d.cutOutSide,p=d.polygon,g=d.floorIndex!==void 0?d.floorIndex:-1,v=p[0][0],x=p[0][0],w=p[0][1],C=p[0][1];p.forEach(function(F){var b=F[0],B=F[1];v=Math.min(v,b),x=Math.max(x,b),w=Math.min(w,B),C=Math.max(C,B)});var S=new l.Vector2(v,w),z=x-v>=C-w?x-v:C-w;return{polygonTransformInverse:h,polygonHeight:m,minPos:S,polygonScale:z,cutOutSide:P,floorIndex:g}}),t=e.map(function(d){return{polygon:d.polygon,width:i.polygonGenerater.canvas.width,height:i.polygonGenerater.canvas.height}}),[4,this.workerPool.postMessage({canvasDataList:t,width:this.polygonGenerater.canvas.width,height:this.polygonGenerater.canvas.height})];case 1:return r=u.sent(),s=document.createElement("canvas"),s.width=this.polygonGenerater.canvas.width,s.height=this.polygonGenerater.canvas.height,f=s.getContext("2d"),f&&(f.putImageData(r.imageData,0,0),c=new l.CanvasTexture(s),c.minFilter=l.NearestFilter,c.magFilter=l.NearestFilter,this.uniforms.polygonTexture.value=c,this.needsUpdate=!0),[2]}})})},Object.defineProperty(n.prototype,"polygonClippers",{get:function(){return this._polygonClippers},set:function(e){this._polygonClippers=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"radio",{get:function(){return this._radio},set:function(e){this._radio=e,this.polygonGenerater.setSize(e)},enumerable:!1,configurable:!0}),n.prototype.dispose=function(){this.workerPool.dispose()},n.prototype.onBeforeCompile=function(e,o){var t=String(this.polygonClippers.length);e.vertexShader=e.vertexShader.replace(/NUM_POLYGON_CLIPPER/g,t),e.fragmentShader=e.fragmentShader.replace(/NUM_POLYGON_CLIPPER/g,t)},n})(E.CustomShader),se=`
504
513
  #if NUM_SHINE_OBJECTS > 0
505
514
  uniform float shineProgress;
506
515
  struct SHINE_OBJECT {
@@ -509,7 +518,7 @@ vPointSize = gl_PointSize;
509
518
  };
510
519
  uniform SHINE_OBJECT shineBoxes[NUM_SHINE_OBJECTS];
511
520
  #endif
512
- `,on=`
521
+ `,le=`
513
522
  #if NUM_SHINE_OBJECTS > 0
514
523
  #pragma unroll_loop_start
515
524
  for ( int i = 0; i < NUM_SHINE_OBJECTS; i ++ ) {
@@ -525,4 +534,4 @@ vPointSize = gl_PointSize;
525
534
  }
526
535
  #pragma unroll_loop_end
527
536
  #endif
528
- `,tn="",rn=(function(r){S(e,r);function e(){var n=r.call(this,{type:["basic","phong","none"],fragment:{mainBefore:en,mainStart:tn,mainEnd:on},uniforms:{shineProgress:new a.Uniform(0),shineBoxes:new a.Uniform([])},defines:{NUM_SHINE_OBJECTS:0}})||this;return Object.defineProperties(n,{shineBoxes:{get:function(){return this.uniforms.shineBoxes.value},set:function(o){var t=o.length;t>0&&(this.defines.NUM_SHINE_OBJECTS=t,this.uniforms.shineBoxes.value=o)}}}),n.shineBoxes=[],n}return e.prototype.onBeforeCompile=function(n,o){var t=String(this.shineBoxes.length);n.vertexShader=n.vertexShader.replace(/NUM_SHINE_OBJECTS/g,t),n.fragmentShader=n.fragmentShader.replace(/NUM_SHINE_OBJECTS/g,t)},e})(P.CustomShader);x.EvenessPlaneShader=j,x.PointCloudExpandShader=Q,x.PolygonCuterShader=nn,x.PolygonGenerater=N,x.ShineModelShader=rn,x.SweepModelShader=k,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})}));
537
+ `,ue="",ce=(function(a){_(n,a);function n(){var e=a.call(this,{type:["basic","phong","none"],fragment:{mainBefore:se,mainStart:ue,mainEnd:le},uniforms:{shineProgress:new l.Uniform(0),shineBoxes:new l.Uniform([])},defines:{NUM_SHINE_OBJECTS:0}})||this;return Object.defineProperties(e,{shineBoxes:{get:function(){return this.uniforms.shineBoxes.value},set:function(o){var t=o.length;t>0&&(this.defines.NUM_SHINE_OBJECTS=t,this.uniforms.shineBoxes.value=o)}}}),e.shineBoxes=[],e}return n.prototype.onBeforeCompile=function(e,o){var t=String(this.shineBoxes.length);e.vertexShader=e.vertexShader.replace(/NUM_SHINE_OBJECTS/g,t),e.fragmentShader=e.fragmentShader.replace(/NUM_SHINE_OBJECTS/g,t)},n})(E.CustomShader);y.EvenessPlaneShader=G,y.PointCloudExpandShader=ee,y.PolygonCuterShader=ie,y.PolygonGenerater=T,y.ShineModelShader=ce,y.SweepModelShader=Q,y.computeAlignmentMatrix=te,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})}));
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 10/23/2025
5
- * Version: 6.7.0-alpha.9
4
+ * Generated: 12/29/2025
5
+ * Version: 6.7.0
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
@@ -252,4 +252,4 @@
252
252
  * No amendment to or modification of this Agreement will be binding unless in
253
253
  * writing and signed by Realsee. You and Realsee hereto confirm that this
254
254
  * Agreement and all related documents shall be drafted in English.
255
- */(function(s,u){typeof exports=="object"&&typeof module!="undefined"?u(exports,require("three")):typeof define=="function"&&define.amd?define(["exports","three"],u):(s=typeof globalThis!="undefined"?globalThis:s||self,u(s.FiveSDK_Sticker={},s.THREE))})(this,(function(s,u){"use strict";function w(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const o=w(u);var m=function(t,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])},m(t,n)};function T(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");m(t,n);function e(){this.constructor=t}t.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}typeof SuppressedError=="function"&&SuppressedError;var E=new Float32Array([-.5,-.5,0,.5,-.5,0,-.5,.5,0,.5,.5,0]),_=new Float32Array([0,0,1,0,0,1,1,1]),R=new Uint8Array([0,1,2,1,3,2]),c=new o.BufferGeometry;c.setAttribute("position",new o.BufferAttribute(E,3)),c.setAttribute("uv",new o.BufferAttribute(_,2)),c.setIndex(new o.BufferAttribute(R,1));var l=window,g=l.requestAnimationFrame||l.mozRequestAnimationFrame||l.webkitRequestAnimationFrame||l.msRequestAnimationFrame||(function(t){return setTimeout(t,16)}),S=typeof performance!="undefined"&&typeof performance.timing!="undefined"?performance.timing.navigationStart:Date.now(),v=typeof performance!="undefined"?(function(){return S+performance.now()}):(function(){return Date.now()});function A(t,n){t.naturalWidth>0&&g(function(){return n()});var e=function(){return n()};return t.addEventListener("load",e,!1),function(){return t.removeEventListener("load",e,!1)}}function b(t,n){var e=v(),r=!1,i=function(){r=!0,n();var f=v();f-e<3e3?g(i):r=!1},a=function(){e=v(),r===!1&&i()};return t.addEventListener("timeupdate",a,!1),function(){t.removeEventListener("timeupdate",a,!1),r=!1}}function h(t,n){var e=t.dispose;t.dispose=function(){n(),e.call(t)}}var O=(function(t){T(n,t);function n(e,r,i){var a=this,f=new o.MeshBasicMaterial;if(a=t.call(this,c,f)||this,a._needsRender=!1,a.scale.set(e,r,1),typeof i=="string"){f.transparent=/\.png$/.test(i);var y=new Image;y.src=i,y.crossOrigin="",i=y}if(i instanceof HTMLImageElement){var p=f.map=new o.Texture;p.wrapS=o.ClampToEdgeWrapping,p.wrapT=o.ClampToEdgeWrapping,p.minFilter=o.LinearFilter,p.encoding=o.sRGBEncoding,h(p,A(i,function(){p.image=i,p.needsUpdate=!0,a._needsRender=!0}))}else if(i instanceof HTMLCanvasElement)f.map=new o.CanvasTexture(i);else if(i instanceof HTMLVideoElement){var d=f.map=new o.VideoTexture(i);d.wrapS=o.ClampToEdgeWrapping,d.wrapT=o.ClampToEdgeWrapping,d.minFilter=o.LinearFilter,d.encoding=o.sRGBEncoding,h(d,b(i,function(){a._needsRender=!0}))}return a}return Object.defineProperty(n,"version",{get:function(){return"6.7.0-alpha.9"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"needsRender",{get:function(){return this._needsRender},set:function(e){this._needsRender=e,e===!0&&this.material.map&&(this.material.map.needsUpdate=!0)},enumerable:!1,configurable:!0}),n.prototype.setSize=function(e,r){this.scale.set(e,r,1),this._needsRender=!0},n.prototype.setTransparent=function(e){this.material.transparent=e,this._needsRender=!0},n.prototype.locationWithIntersection=function(e,r){r===void 0&&(r=.005);var i=e.point,a=e.face;this.position.copy(i),a&&(this.position.add(a.normal.clone().setLength(r)),this.lookAt(i.clone().add(a.normal))),this._needsRender=!0},n.prototype.dispose=function(){var e;(e=this.material.map)===null||e===void 0||e.dispose(),this.material.dispose()},n})(o.Mesh);s.Sticker=O,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}));
255
+ */(function(s,u){typeof exports=="object"&&typeof module!="undefined"?u(exports,require("three")):typeof define=="function"&&define.amd?define(["exports","three"],u):(s=typeof globalThis!="undefined"?globalThis:s||self,u(s.FiveSDK_Sticker={},s.THREE))})(this,(function(s,u){"use strict";function w(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const o=w(u);var m=function(t,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])},m(t,n)};function T(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");m(t,n);function e(){this.constructor=t}t.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}typeof SuppressedError=="function"&&SuppressedError;var E=new Float32Array([-.5,-.5,0,.5,-.5,0,-.5,.5,0,.5,.5,0]),_=new Float32Array([0,0,1,0,0,1,1,1]),R=new Uint8Array([0,1,2,1,3,2]),c=new o.BufferGeometry;c.setAttribute("position",new o.BufferAttribute(E,3)),c.setAttribute("uv",new o.BufferAttribute(_,2)),c.setIndex(new o.BufferAttribute(R,1));var l=window,g=l.requestAnimationFrame||l.mozRequestAnimationFrame||l.webkitRequestAnimationFrame||l.msRequestAnimationFrame||(function(t){return setTimeout(t,16)}),S=typeof performance!="undefined"&&typeof performance.timing!="undefined"?performance.timing.navigationStart:Date.now(),v=typeof performance!="undefined"?(function(){return S+performance.now()}):(function(){return Date.now()});function A(t,n){t.naturalWidth>0&&g(function(){return n()});var e=function(){return n()};return t.addEventListener("load",e,!1),function(){return t.removeEventListener("load",e,!1)}}function b(t,n){var e=v(),r=!1,i=function(){r=!0,n();var f=v();f-e<3e3?g(i):r=!1},a=function(){e=v(),r===!1&&i()};return t.addEventListener("timeupdate",a,!1),function(){t.removeEventListener("timeupdate",a,!1),r=!1}}function h(t,n){var e=t.dispose;t.dispose=function(){n(),e.call(t)}}var O=(function(t){T(n,t);function n(e,r,i){var a=this,f=new o.MeshBasicMaterial;if(a=t.call(this,c,f)||this,a._needsRender=!1,a.scale.set(e,r,1),typeof i=="string"){f.transparent=/\.png$/.test(i);var y=new Image;y.src=i,y.crossOrigin="",i=y}if(i instanceof HTMLImageElement){var p=f.map=new o.Texture;p.wrapS=o.ClampToEdgeWrapping,p.wrapT=o.ClampToEdgeWrapping,p.minFilter=o.LinearFilter,p.encoding=o.sRGBEncoding,h(p,A(i,function(){p.image=i,p.needsUpdate=!0,a._needsRender=!0}))}else if(i instanceof HTMLCanvasElement)f.map=new o.CanvasTexture(i);else if(i instanceof HTMLVideoElement){var d=f.map=new o.VideoTexture(i);d.wrapS=o.ClampToEdgeWrapping,d.wrapT=o.ClampToEdgeWrapping,d.minFilter=o.LinearFilter,d.encoding=o.sRGBEncoding,h(d,b(i,function(){a._needsRender=!0}))}return a}return Object.defineProperty(n,"version",{get:function(){return"6.7.0"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"needsRender",{get:function(){return this._needsRender},set:function(e){this._needsRender=e,e===!0&&this.material.map&&(this.material.map.needsUpdate=!0)},enumerable:!1,configurable:!0}),n.prototype.setSize=function(e,r){this.scale.set(e,r,1),this._needsRender=!0},n.prototype.setTransparent=function(e){this.material.transparent=e,this._needsRender=!0},n.prototype.locationWithIntersection=function(e,r){r===void 0&&(r=.005);var i=e.point,a=e.face;this.position.copy(i),a&&(this.position.add(a.normal.clone().setLength(r)),this.lookAt(i.clone().add(a.normal))),this._needsRender=!0},n.prototype.dispose=function(){var e;(e=this.material.map)===null||e===void 0||e.dispose(),this.material.dispose()},n})(o.Mesh);s.Sticker=O,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}));
package/umd/five-vfx.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 10/23/2025
5
- * Version: 6.7.0-alpha.9
4
+ * Generated: 12/29/2025
5
+ * Version: 6.7.0
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
package/umd/five-vue.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 10/23/2025
5
- * Version: 6.7.0-alpha.9
4
+ * Generated: 12/29/2025
5
+ * Version: 6.7.0
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021