@realsee/five 6.4.0-alpha.0 → 6.4.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/five.Camera.html +5 -4
- package/docs/classes/five.Five.html +45 -35
- package/docs/classes/five.InternalWebGLRenderer.html +1 -1
- package/docs/classes/five.Model.html +24 -37
- package/docs/classes/five.ModelViewLayer.html +6 -6
- package/docs/classes/five.PBMMeshMaterial.html +37 -37
- package/docs/classes/five.PBMPointCloudMaterial.html +34 -34
- package/docs/classes/five.Tile.html +2 -1
- package/docs/classes/five.Tile3DModel.html +5 -4
- package/docs/classes/five.TileRequestScheduler.html +2 -2
- package/docs/classes/five.Tileset.html +12 -2
- package/docs/classes/five.Trajectory.html +2 -2
- package/docs/classes/five.Work.html +14 -14
- package/docs/classes/plugins-1.TrajectoryController.html +4 -4
- package/docs/functions/five.loadB3dm.html +1 -1
- package/docs/functions/five.loadDome.html +1 -1
- package/docs/functions/five.loadDomez.html +1 -1
- package/docs/functions/five.loadPbm.html +1 -1
- package/docs/functions/five.loadPly.html +1 -1
- package/docs/functions/five.loadX3p.html +1 -0
- package/docs/functions/five.parseWork.html +1 -1
- package/docs/functions/react.useFiveAction.html +1 -1
- package/docs/functions/vue.useFiveAction.html +1 -1
- package/docs/interfaces/five.FiveInitArgs.html +2 -2
- package/docs/interfaces/five.FiveLoadOptions.html +13 -26
- package/docs/interfaces/five.PBMParameters.html +13 -13
- package/docs/interfaces/five.Tile3DModelLoaderOptions.html +2 -2
- package/docs/interfaces/five.Tile3dLayerOptions.html +27 -0
- package/docs/interfaces/five.TileHeader.html +2 -2
- package/docs/interfaces/five.TilesetHeader.html +16 -3
- package/docs/interfaces/five.TrajectoryHeader.html +2 -2
- package/docs/interfaces/five.WorkCubeImage.html +8 -8
- package/docs/interfaces/five.WorkImage.html +10 -10
- package/docs/interfaces/five.WorkInitial.html +8 -8
- package/docs/interfaces/five.WorkModel.html +6 -6
- package/docs/interfaces/five.WorkModelLayer.html +5 -0
- package/docs/interfaces/five.WorkObserver.html +20 -20
- package/docs/interfaces/five.WorkResolvedObserver.html +20 -20
- package/docs/interfaces/five.WorkTile.html +2 -2
- package/docs/interfaces/five.WorkVideo.html +4 -4
- package/docs/interfaces/react.FiveActionReactCallbacks.html +19 -8
- package/docs/interfaces/react.FiveInjectionTypes.html +32 -23
- package/docs/interfaces/vue.FiveActionVueCallbacks.html +20 -9
- package/docs/modules/five.html +4 -0
- package/docs/types/five.ModelMaterialValues.html +1 -1
- package/docs/types/five.Models.html +5 -5
- package/docs/types/five.ParseWorkOptions.html +1 -1
- package/docs/types/five.ParsedResultType.html +1 -1
- package/docs/types/five.Tile3dOptions.html +1 -0
- package/docs/types/five.TileRequestOrder.html +1 -1
- package/docs/types/five.TileRequestSchedulerOptions.html +1 -1
- package/docs/types/five.TrajectoryContentData.html +1 -1
- package/docs/types/five.Works.html +1 -1
- package/five/index.d.ts +122 -79
- package/five/index.js +88 -88
- package/five/index.mjs +6386 -6037
- package/gltf-loader/index.js +5 -5
- package/gltf-loader/index.mjs +534 -515
- package/line/index.js +3 -3
- package/line/index.mjs +3 -3
- package/package.json +1 -1
- package/plugins/index.js +10 -10
- package/plugins/index.mjs +237 -231
- package/react/index.d.ts +26 -1
- package/react/index.js +3 -3
- package/react/index.mjs +33 -39
- package/shader-lib/index.js +2 -2
- package/shader-lib/index.mjs +2 -2
- package/sticker/index.js +3 -3
- package/sticker/index.mjs +3 -3
- package/umd/five-gltf-loader.js +5 -5
- package/umd/five-line.js +3 -3
- package/umd/five-plugins.js +10 -10
- package/umd/five-react.js +3 -3
- package/umd/five-shader-lib.js +2 -2
- package/umd/five-sticker.js +3 -3
- package/umd/five-vfx.js +2 -2
- package/umd/five-vue.js +3 -3
- package/umd/five.js +45 -45
- package/vfx/index.js +2 -2
- package/vfx/index.mjs +2 -2
- package/vue/index.d.ts +26 -1
- package/vue/index.js +3 -3
- package/vue/index.mjs +27 -29
package/react/index.d.ts
CHANGED
|
@@ -213,9 +213,34 @@ export declare interface FiveActionReactCallbacks {
|
|
|
213
213
|
* @param width - 获取像素区域的宽度
|
|
214
214
|
* @param height - 获取像素区域的高度
|
|
215
215
|
* @param pixelRatio - 获取区域的像素比
|
|
216
|
+
* @param flipY - 是否Y轴翻转
|
|
217
|
+
* @param buffer - 存储数组
|
|
216
218
|
* @returns rgba颜色平铺的 Uint8Array
|
|
217
219
|
*/
|
|
218
|
-
getPixels(x: number, y: number, width: number, height: number, pixelRatio?: number):
|
|
220
|
+
getPixels<T extends Uint8Array | Uint8ClampedArray = Uint8Array>(x: number, y: number, width: number, height: number, pixelRatio?: number, flipY?: boolean, buffer?: T): T;
|
|
221
|
+
/**
|
|
222
|
+
* 获取画面中的像素颜色
|
|
223
|
+
* @param options - 参数
|
|
224
|
+
* @returns
|
|
225
|
+
*/
|
|
226
|
+
getPixels<T extends Uint8Array | Uint8ClampedArray = Uint8Array>(options: {
|
|
227
|
+
/** 获取像素区域的起始坐标 x */
|
|
228
|
+
x: number;
|
|
229
|
+
/** 获取像素区域的起始坐标 y */
|
|
230
|
+
y: number;
|
|
231
|
+
/** 获取像素区域的宽度 */
|
|
232
|
+
width: number;
|
|
233
|
+
/** 获取像素区域的高度 */
|
|
234
|
+
height: number;
|
|
235
|
+
/** 获取区域的像素比 */
|
|
236
|
+
pixelRatio?: number;
|
|
237
|
+
helperVisible?: boolean;
|
|
238
|
+
skipPanorama?: boolean;
|
|
239
|
+
/** 是否Y轴翻转 */
|
|
240
|
+
flipY?: boolean;
|
|
241
|
+
/** 存储数组 */
|
|
242
|
+
buffer?: T;
|
|
243
|
+
}): T;
|
|
219
244
|
/**
|
|
220
245
|
* 强制渲染
|
|
221
246
|
* @description
|
package/react/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five
|
|
4
|
-
* Generated:
|
|
5
|
-
* Version: 6.4.0-alpha.
|
|
4
|
+
* Generated: 1/8/2025
|
|
5
|
+
* Version: 6.4.0-alpha.10
|
|
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
|
-
*/"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ce=require("react"),fe=require("three"),j=require("@realsee/five");function B(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const u=B(ce),h=B(fe);var k=function(e,n){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},k(e,n)};function A(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");k(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var g=function(){return g=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])}return n},g.apply(this,arguments)};function w(e,n,t){if(t||arguments.length===2)for(var r=0,o=n.length,a;r<o;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return e.concat(a||Array.prototype.slice.call(n))}var E=[],R=[];function le(e){var n=e===void 0?{}:e,t=n.backgroundColor,r=t===void 0?1579548:t,o=n.backgroundAlpha,a=o===void 0?1:o,i=n.preserveDrawingBuffer,s=i===void 0?!0:i,c=n.pixelRatio,l=c===void 0?1:c,v=n.webgl2,y=v===void 0?!1:v;if(typeof window!="undefined"){var d=null;if(y?d=E.shift():d=R.shift(),!d){if(y){var m=document.createElement("canvas"),S=m.getContext("webgl2");S?d=new h.WebGLRenderer({preserveDrawingBuffer:s,antialias:!0,alpha:!0,stencil:!0,canvas:m,context:S}):(console.error("error occurred when getting webgl2 canvas context, mybe webgl2 not support, fallback to webgl."),d=new h.WebGLRenderer({preserveDrawingBuffer:s,antialias:!1,alpha:!0,stencil:!0}))}else d=new h.WebGLRenderer({preserveDrawingBuffer:s,antialias:!1,alpha:!0,stencil:!0});d.outputEncoding=h.sRGBEncoding}return d.setPixelRatio(l),d.setClearColor(r,a),d.autoClear=!0,d}}function ve(e){if(e){var n=e.capabilities.isWebGL2;n?R.indexOf(e)===-1&&R.push(e):E.indexOf(e)===-1&&E.push(e)}}var L=u.createContext(null);function p(){var e=u.useContext(L);if(!e)throw new Error("FiveProvider never found.");return e.five}function G(){var e=u.useContext(L);if(!e)throw new Error("FiveProvider never found.");return e.loadWork}function de(e,n){var t=Array.isArray(e)?e:[e],r=Array.isArray(n)?n:[n];if(t.length!==r.length)return!1;for(var o=0;o<t.length;o++)if(t[o].workCode!==r[o].workCode)return!1;return!0}function pe(e){return e===void 0&&(e={}),function(n){A(t,n);function t(r){var o=n.call(this,r)||this;return o.__fiveEventDisposers=[],o.__fiveDisposeTimer=null,o.five=new j.Five(g(g({},e),{renderer:void 0})),o.loadWork=o.loadWork.bind(o),o.state={},o}return t.prototype.loadWork=function(r,o,a,i){if(i===void 0&&(i=!0),this.props.work)throw new Error("props 'works' is set in fiveProvider, if you need modify work internal, use 'initialWork' instead.");return this.five.load(r,o,a,i)},t.prototype.shouldComponentUpdate=function(r){return this.five.renderer&&this.five&&r.work&&!de(r.work,this.five.works)&&this.five.load(r.work,r.initialState,r.initialOptions),!0},t.prototype.componentDidMount=function(){var r=this,o;clearTimeout(this.__fiveDisposeTimer),this.__fiveDisposeTimer=null;var a;if(typeof window!="undefined"){var i=j.getViewportScale(),s=i===1?window.devicePixelRatio:1;a=le({pixelRatio:s,backgroundAlpha:e.backgroundAlpha,backgroundColor:e.backgroundColor,webgl2:e==null?void 0:e.webgl2,preserveDrawingBuffer:e==null?void 0:e.preserveDrawingBuffer})}this.five.renderer=a,this.setState({renderer:a}),this.__fiveEventDisposers.push(this.five.on("load",function(){r.props.onWorksChange&&r.props.onWorksChange(r.five.works)})),this.__fiveEventDisposers.push(this.five.on("stateChange",function(l,v){r.props.onStateChange&&r.props.onStateChange(l,v)})),this.__fiveEventDisposers.push(this.five.on("currentStateChange",function(l,v){r.props.onCurrentStateChange&&r.props.onCurrentStateChange(l,v)})),this.__fiveEventDisposers.push(this.five.on("error",function(l){r.props.onError?r.props.onError(l):console.warn(l.message)}));var c=this.props.work||this.props.initialWork;c&&this.five.load(c,this.props.initialState,this.props.initialOptions,(o=this.props.initialUserAction)!==null&&o!==void 0?o:!0)},t.prototype.componentWillUnmount=function(){var r=this,o;(o=this.five.controller)===null||o===void 0||o.destroy();var a=this.five.renderer;this.five.renderer=void 0,ve(a),this.setState({renderer:void 0}),this.__fiveDisposeTimer=setTimeout(function(){r.__fiveDisposeTimer=null,r.five.dispose()},1e3)},t.prototype.render=function(){var r=this.five,o=this.loadWork,a=this.state.renderer;return u.createElement(L.Provider,{value:{renderer:a,five:r,loadWork:o}},this.props.children)},t}(u.Component)}var he=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,ge={display:"inline-block",overflow:"hidden"},ye=function(e){var n=e.width,t=e.height,r=p(),o=u.createRef(),a=g({width:n,height:t},ge);return he(function(){var i=o.current;if(i&&r.renderer){var s=r.renderer.domElement;if(s.parentNode!==null&&s.parentNode!==i)throw new Error("There are more than 2 fiveCanvas in this context.");return s.parentNode!==i&&i.appendChild(s),r.camera.aspect=n/t,r.camera.updateProjectionMatrix(),r.renderer.setSize(n,t),r.refresh({width:n,height:t}),r.needsRender=!0,function(){s.parentNode===i&&i.removeChild(s)}}},[r,r.renderer,n,t,o.current]),u.createElement("div",{ref:o,style:a})};function me(){return p()}function I(e,n){var t=p(),r=[t];n!==void 0&&(r=r.concat(n)),u.useLayoutEffect(function(){return e(t.scene)},r)}var Se=I;function be(){var e=p(),n=G(),t=u.useState(function(){return e.works}),r=t[0],o=t[1];return u.useLayoutEffect(function(){return e.on("load",function(){return o(e.works)})},[e]),[r,n]}function U(e){return g({},e.state)}function we(){var e=p(),n=u.useState(function(){return U(e)}),t=n[0],r=n[1],o=u.useCallback(function(a,i,s){i===void 0&&(i=!1),s===void 0&&(s=!0);var c=typeof a=="function"?a(e.getCurrentState()):a;e.setState(c,i,s)},[e]);return u.useLayoutEffect(function(){return e.on("stateChange",function(){return r(U(e))})},[e]),[t,o]}function Ce(){var e=p(),n=u.useState(function(){return e.getCurrentState()}),t=n[0],r=n[1],o=u.useCallback(function(a,i,s){i===void 0&&(i=!1),s===void 0&&(s=!0);var c=typeof a=="function"?a(e.getCurrentState()):a;e.setState(c,i,s)},[e]);return u.useLayoutEffect(function(){return e.on("currentStateChange",function(){return r(e.getCurrentState())})},[e]),[t,o]}function Fe(){var e=p(),n=u.useState(function(){return e.getCurrentState()}),t=n[0],r=n[1];return u.useLayoutEffect(function(){return e.on("currentStateChange",function(){return r(e.getCurrentState())})},[e]),e.works.getResolvedObserver(t)}function ke(e,n,t){var r=p(),o=[r,e];t!==void 0&&(o=o.concat(t)),u.useLayoutEffect(function(){return r.on(e,n)},o)}function Ee(){var e=p(),n=u.useCallback(function(i,s){return e.updateCamera(i,s)},[e]),t=u.useCallback(function(i,s,c,l,v){return e.getPixels(i,s,c,l,v)},[e]),r=u.useCallback(function(i){return e.render(i)},[e]),o=u.useCallback(function(){return e.needsRender=!0},[e]),a=u.useCallback(function(i,s){return e.preloadPano(i,s)},[e]);return{updateCamera:n,getPixels:t,render:r,needsRender:o,preloadPano:a}}function Re(){var e=p(),n=u.useState(function(){return Symbol()});n[0];var t=n[1];u.useLayoutEffect(function(){return e.on("cameraUpdate",function(){return t(Symbol())})},[e]);var r=u.useCallback(function(o,a){return e.project2d(o,a)},[e]);return r}function T(e){var n=e.camera.getWorldDirection(new h.Vector3),t=new h.Raycaster(e.camera.position,n);return t}function Le(){var e=p(),n=u.useState(function(){return T(e)}),t=n[0],r=n[1];return u.useLayoutEffect(function(){return e.on("cameraUpdate",function(){return r(T(e))})},[e]),t}function N(e){return e.camera.getWorldDirection(new h.Vector3)}function _e(){var e=p(),n=u.useState(function(){return N(e)}),t=n[0],r=n[1];return u.useLayoutEffect(function(){return e.on("cameraUpdate",function(){return r(N(e))})},[e]),t}function Pe(){var e=p(),n=u.useCallback(function(t){return e.model.intersectRaycaster(t)},[e]);return n}function $(e){return e.model.empty?"Empty":"Loaded"}function Ve(){var e=p(),n=u.useState(function(){return $(e)}),t=n[0],r=n[1];return u.useLayoutEffect(function(){return e.on("modelLoaded",function(){return r($(e))})},[e]),t}function Oe(){var e=p(),n=u.useState(e.model.shownFloor),t=n[0],r=n[1],o=u.useState(e.model.floorLength),a=o[0],i=o[1],s=u.useCallback(function(c){typeof c=="number"?e.model.show(c):e.model.show()},[e]);return u.useLayoutEffect(function(){var c=[];return c.push(e.on("modelShownFloorChange",function(){return r(e.model.shownFloor)})),c.push(e.on("modelLoaded",function(){return i(e.model.floorLength)})),function(){for(var l;l=c.shift();)l()}},[e]),[t,a,s]}function xe(){var e=p(),n=u.useState(e.helperVisible),t=n[0],r=n[1],o=u.useCallback(function(a){e.helperVisible=a},[e]);return u.useLayoutEffect(function(){return e.on("helpersVisibleChange",function(a){return r(a)})},[e]),[t,o]}var De="$five";function f(e,n){return n.indexOf(e)>=0}function H(e,n){for(var t=0,r=Object.keys(n);t<r.length;t++){var o=r[t];n[o]!==void 0&&(e[o]=n[o])}}function We(e,n){var t=f("state",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return g({},e.state)},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("stateChange",function(){return a(Symbol())})},[e]),[i,o]}function Me(e,n){var t=f("currentState",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.getCurrentState()},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("currentStateChange",function(){return a(Symbol())})},[e]),[i,o]}function je(e,n){var t=f("currentObserver",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.getCurrentState()},[e,o]);u.useLayoutEffect(function(){if(t)return e.on("currentStateChange",function(){return a(Symbol())})},[e]);var s=void 0;return i&&(s=e.works.getResolvedObserver(i)),[s,o]}function Ue(e,n){var t=f("unsafe__fiveInstance",n);return[t?e:void 0]}function Te(e,n){var t=f("works",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.works},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("load",function(){return a(Symbol())})},[e]),[i,o]}function Ne(e,n){var t=f("model",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.model},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("modelLoaded",function(){return a(Symbol())})},[e]),[i,o]}function $e(e,n){var t=f("scene",n);return[t?e.scene:void 0]}function He(e,n){var t=f("cameraDirection",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.camera.getWorldDirection(new h.Vector3)},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("cameraUpdate",function(){return a(Symbol())})},[e]),[i,o]}function Be(e,n){var t=f("cameraRaycaster",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t){var s=e.camera.getWorldDirection(new h.Vector3),c=new h.Raycaster(e.camera.position,s);return c}},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("cameraUpdate",function(){return a(Symbol())})},[e]),[i,o]}function Ae(e,n){var t=f("modelReadyState",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.model.empty?"Empty":"Loaded"},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("modelLoaded",function(){return a(Symbol())})},[e]),[i,o]}function Ge(e,n){var t=f("shownFloor",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.model.shownFloor},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("modelShownFloorChange",function(){return a(Symbol())})},[e]),[i,o]}function Ie(e,n){var t=f("helperVisible",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.helperVisible},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("helpersVisibleChange",function(){return a(Symbol())})},[e]),[i,o]}function qe(e,n){if(f("loadWork",n))return e}function ze(e,n){if(f("setState",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.setState.apply(e,t)}}function Je(e,n){if(f("on",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.on.apply(e,t)}}function Ke(e,n){if(f("on",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.once.apply(e,t)}}function Qe(e,n){if(f("off",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.off.apply(e,t)}}function Xe(e,n){if(f("intersectRaycaster",n))return function(){for(var t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return(t=e.model).intersectRaycaster.apply(t,r)}}function Ye(e,n){if(f("project2d",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.project2d.apply(e,t)}}function Ze(e,n){if(f("updateCamera",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.updateCamera.apply(e,t)}}function er(e,n){if(f("getPixels",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.getPixels.apply(e,t)}}function rr(e,n){if(f("render",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.render.apply(e,t)}}function tr(e,n){if(f("needsRender",n))return function(){e.needsRender=!0}}function nr(e,n){if(f("preloadPano",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.preloadPano.apply(e,t)}}function or(e,n){if(f("showFloor",n))return function(t){typeof t=="number"?e.model.show(t):e.model.show()}}function ar(e,n){if(f("toggleHelperVisible",n))return function(t){e.helperVisible=t}}function ur(e){return function(n){return u.forwardRef(function(t,r){var o=p(),a=G(),i=Ue(o,e)[0],s=We(o,e),c=s[0],l=s[1],v=Me(o,e),y=v[0],d=v[1],m=je(o,e),S=m[0],C=m[1],_=Te(o,e),z=_[0],J=_[1],P=Ne(o,e),K=P[0],Q=P[1],X=$e(o,e)[0],V=He(o,e),Y=V[0],Z=V[1],O=Be(o,e),ee=O[0],re=O[1],x=Ae(o,e),te=x[0],ne=x[1],D=Ge(o,e),oe=D[0],ae=D[1],W=Ie(o,e),ue=W[0],ie=W[1],M=u.useMemo(function(){var b={};return H(b,{setState:ze(o,e),loadWork:qe(a,e),on:Je(o,e),once:Ke(o,e),off:Qe(o,e),intersectRaycaster:Xe(o,e),project2d:Ye(o,e),updateCamera:Ze(o,e),getPixels:er(o,e),render:rr(o,e),needsRender:tr(o,e),preloadPano:nr(o,e),showFloor:or(o,e),toggleHelperVisible:ar(o,e)}),b},[o,a]),se=u.useMemo(function(){var b=g({},M);return H(b,{unsafe__fiveInstance:i,state:c,currentState:y,currentObserver:S,work:z,model:K,scene:X,cameraDirection:Y,cameraRaycaster:ee,modelReadyState:te,shownFloor:oe,helperVisible:ue}),b},[o,M,l,d,C,J,Q,Z,re,ne,ae,ie]);return u.createElement(n,g({ref:r,$five:se},t))})}}function ir(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e}function F(e,n){for(var t={},r=n.length,o=-1;++o<r;){var a=n[o];a in e&&(t[a]=e[a])}return t}function sr(e,n){return typeof e=="number"&&typeof n=="number"&&isNaN(e)&&isNaN(n)?!0:e===n}function cr(e,n){for(var t=0;t<e.length;t++)for(var r=0;r<n.length;r++)if(e[t]===n[r])return!0;return!1}var q=function(){function e(n,t){this.values=n,this.listeners=[],this.onValuesChange=t}return e.prototype.on=function(n,t){var r=this,o=[n,t];return this.listeners.push(o),function(){var a=r.listeners.indexOf(o);a>=0&&r.listeners.splice(a,1)}},e.prototype.getValues=function(n){return F(this.values,n)},e.prototype.setValues=function(n,t){var r=[];for(var o in t)n.indexOf(o)>=0&&!sr(t[o],this.values[o])&&r.push(o);if(r.length!==0){for(var a=g({},this.values),i=0,s=r;i<s.length;i++){var c=s[i];this.values[c]=t[c]}this.onValuesChange&&this.onValuesChange(this.values,a);for(var l=0,v=this.listeners;l<v.length;l++){var y=v[l],d=y[0],m=y[1];if(cr(d,r)){var S=F(a,d),C=F(this.values,d);m(C,S)}}}},e}();function fr(e){var n=u.createContext(null);return{useStore:function(t){var r=u.useContext(n);if(r===null)throw new Error("StoreProvider never found.");var o=u.useRef(!0),a=u.useState(r.getValues(t)),i=a[0],s=a[1],c=w([r],t,!0);u.useLayoutEffect(function(){return o.current?o.current=!1:s(r.getValues(t)),r.on(t,function(v){return s(v)})},c);var l=u.useCallback(function(v){return r.setValues(t,v)},c);return[i,l]},useStoreSetter:function(t){var r=u.useContext(n);if(r===null)throw new Error("StoreProvider never found.");var o=u.useCallback(function(a){return r.setValues(t,a)},w([r],t,!0));return o},watchStore:function(t,r,o){var a=u.useContext(n);if(a===null)throw new Error("StoreProvider never found.");var i=w([a],t,!0);o!==void 0&&(i=i.concat(o)),u.useLayoutEffect(function(){return a.on(t,r)},i)},useStoreAction:function(t){var r=u.useContext(n);if(r===null)throw new Error("StoreProvider never found.");var o=u.useCallback(function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var s=e[t],c=s[0],l=s.slice(1),v=function(){return r.getValues(l)},y=function(d){return r.setValues(l,d)};return c.apply(void 0,w([v,y],a,!1))},[]);return o},StoreProvider:function(t){A(r,t);function r(o){var a=t.call(this,o)||this;return a.store=new q(o.initialValue,function(){for(var i,s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];a.props.onValuesChange&&(i=a.props).onValuesChange.apply(i,s)}),a}return r.prototype.shouldComponentUpdate=function(o){return o.children!==this.props.children},r.prototype.render=function(){return u.createElement(n.Provider,{value:this.store},this.props.children)},r}(u.Component)}}exports.FiveCanvas=ye;exports.INJECTION_PROPNAME=De;exports.Store=q;exports.createFiveFeature=ir;exports.createFiveProvider=pe;exports.createStore=fr;exports.unsafe__useFiveInstance=me;exports.useFiveAction=Ee;exports.useFiveCameraDirection=_e;exports.useFiveCameraRaycaster=Le;exports.useFiveCurrentObserver=Fe;exports.useFiveCurrentState=Ce;exports.useFiveEventCallback=ke;exports.useFiveFloor=Oe;exports.useFiveHelper=xe;exports.useFiveModelIntersectRaycaster=Pe;exports.useFiveModelReadyState=Ve;exports.useFiveProject2d=Re;exports.useFiveScene=Se;exports.useFiveSceneEffect=I;exports.useFiveState=we;exports.useFiveWork=be;exports.withFive=ur;
|
|
255
|
+
*/"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ce=require("react"),fe=require("three"),j=require("@realsee/five");function B(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const u=B(ce),h=B(fe);var k=function(e,n){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},k(e,n)};function A(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");k(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var g=function(){return g=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])}return n},g.apply(this,arguments)};function w(e,n,t){if(t||arguments.length===2)for(var r=0,o=n.length,a;r<o;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return e.concat(a||Array.prototype.slice.call(n))}var E=[],R=[];function le(e){var n=e===void 0?{}:e,t=n.backgroundColor,r=t===void 0?1579548:t,o=n.backgroundAlpha,a=o===void 0?1:o,i=n.preserveDrawingBuffer,s=i===void 0?!0:i,c=n.pixelRatio,l=c===void 0?1:c,d=n.webgl2,y=d===void 0?!1:d;if(typeof window!="undefined"){var v=null;if(y?v=E.shift():v=R.shift(),!v){if(y){var m=document.createElement("canvas"),S=m.getContext("webgl2");S?v=new h.WebGLRenderer({preserveDrawingBuffer:s,antialias:!0,alpha:!0,stencil:!0,canvas:m,context:S}):(console.error("error occurred when getting webgl2 canvas context, mybe webgl2 not support, fallback to webgl."),v=new h.WebGLRenderer({preserveDrawingBuffer:s,antialias:!1,alpha:!0,stencil:!0}))}else v=new h.WebGLRenderer({preserveDrawingBuffer:s,antialias:!1,alpha:!0,stencil:!0});v.outputEncoding=h.sRGBEncoding}return v.setPixelRatio(l),v.setClearColor(r,a),v.autoClear=!0,v}}function ve(e){if(e){var n=e.capabilities.isWebGL2;n?R.indexOf(e)===-1&&R.push(e):E.indexOf(e)===-1&&E.push(e)}}var _=u.createContext(null);function p(){var e=u.useContext(_);if(!e)throw new Error("FiveProvider never found.");return e.five}function G(){var e=u.useContext(_);if(!e)throw new Error("FiveProvider never found.");return e.loadWork}function de(e,n){var t=Array.isArray(e)?e:[e],r=Array.isArray(n)?n:[n];if(t.length!==r.length)return!1;for(var o=0;o<t.length;o++)if(t[o].workCode!==r[o].workCode)return!1;return!0}function pe(e){return e===void 0&&(e={}),function(n){A(t,n);function t(r){var o=n.call(this,r)||this;return o.__fiveEventDisposers=[],o.__fiveDisposeTimer=null,o.five=new j.Five(g(g({},e),{renderer:void 0})),o.loadWork=o.loadWork.bind(o),o.state={},o}return t.prototype.loadWork=function(r,o,a,i){if(i===void 0&&(i=!0),this.props.work)throw new Error("props 'works' is set in fiveProvider, if you need modify work internal, use 'initialWork' instead.");return this.five.load(r,o,a,i)},t.prototype.shouldComponentUpdate=function(r){return this.five.renderer&&this.five&&r.work&&!de(r.work,this.five.works)&&this.five.load(r.work,r.initialState,r.initialOptions),!0},t.prototype.componentDidMount=function(){var r=this,o;clearTimeout(this.__fiveDisposeTimer),this.__fiveDisposeTimer=null;var a;if(typeof window!="undefined"){var i=j.getViewportScale(),s=i===1?window.devicePixelRatio:1;a=le({pixelRatio:s,backgroundAlpha:e.backgroundAlpha,backgroundColor:e.backgroundColor,webgl2:e==null?void 0:e.webgl2,preserveDrawingBuffer:e==null?void 0:e.preserveDrawingBuffer})}this.five.renderer=a,this.setState({renderer:a}),this.__fiveEventDisposers.push(this.five.on("load",function(){r.props.onWorksChange&&r.props.onWorksChange(r.five.works)})),this.__fiveEventDisposers.push(this.five.on("stateChange",function(l,d){r.props.onStateChange&&r.props.onStateChange(l,d)})),this.__fiveEventDisposers.push(this.five.on("currentStateChange",function(l,d){r.props.onCurrentStateChange&&r.props.onCurrentStateChange(l,d)})),this.__fiveEventDisposers.push(this.five.on("error",function(l){r.props.onError?r.props.onError(l):console.warn(l.message)}));var c=this.props.work||this.props.initialWork;c&&this.five.load(c,this.props.initialState,this.props.initialOptions,(o=this.props.initialUserAction)!==null&&o!==void 0?o:!0)},t.prototype.componentWillUnmount=function(){var r=this,o;(o=this.five.controller)===null||o===void 0||o.destroy();var a=this.five.renderer;this.five.renderer=void 0,ve(a),this.setState({renderer:void 0}),this.__fiveDisposeTimer=setTimeout(function(){r.__fiveDisposeTimer=null,r.five.dispose()},1e3)},t.prototype.render=function(){var r=this.five,o=this.loadWork,a=this.state.renderer;return u.createElement(_.Provider,{value:{renderer:a,five:r,loadWork:o}},this.props.children)},t}(u.Component)}var he=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,ge={display:"inline-block",overflow:"hidden"},ye=function(e){var n=e.width,t=e.height,r=p(),o=u.createRef(),a=g({width:n,height:t},ge);return he(function(){var i=o.current;if(i&&r.renderer){var s=r.renderer.domElement;if(s.parentNode!==null&&s.parentNode!==i)throw new Error("There are more than 2 fiveCanvas in this context.");return s.parentNode!==i&&i.appendChild(s),r.camera.aspect=n/t,r.camera.updateProjectionMatrix(),r.renderer.setSize(n,t),r.refresh({width:n,height:t}),r.needsRender=!0,function(){s.parentNode===i&&i.removeChild(s)}}},[r,r.renderer,n,t,o.current]),u.createElement("div",{ref:o,style:a})};function me(){return p()}function I(e,n){var t=p(),r=[t];n!==void 0&&(r=r.concat(n)),u.useLayoutEffect(function(){return e(t.scene)},r)}var Se=I;function be(){var e=p(),n=G(),t=u.useState(function(){return e.works}),r=t[0],o=t[1];return u.useLayoutEffect(function(){return e.on("load",function(){return o(e.works)})},[e]),[r,n]}function U(e){return g({},e.state)}function we(){var e=p(),n=u.useState(function(){return U(e)}),t=n[0],r=n[1],o=u.useCallback(function(a,i,s){i===void 0&&(i=!1),s===void 0&&(s=!0);var c=typeof a=="function"?a(e.getCurrentState()):a;e.setState(c,i,s)},[e]);return u.useLayoutEffect(function(){return e.on("stateChange",function(){return r(U(e))})},[e]),[t,o]}function Ce(){var e=p(),n=u.useState(function(){return e.getCurrentState()}),t=n[0],r=n[1],o=u.useCallback(function(a,i,s){i===void 0&&(i=!1),s===void 0&&(s=!0);var c=typeof a=="function"?a(e.getCurrentState()):a;e.setState(c,i,s)},[e]);return u.useLayoutEffect(function(){return e.on("currentStateChange",function(){return r(e.getCurrentState())})},[e]),[t,o]}function Fe(){var e=p(),n=u.useState(function(){return e.getCurrentState()}),t=n[0],r=n[1];return u.useLayoutEffect(function(){return e.on("currentStateChange",function(){return r(e.getCurrentState())})},[e]),e.works.getResolvedObserver(t)}function ke(e,n,t){var r=p(),o=[r,e];t!==void 0&&(o=o.concat(t)),u.useLayoutEffect(function(){return r.on(e,n)},o)}function Ee(){var e=p(),n=u.useCallback(function(i,s){return e.updateCamera(i,s)},[e]),t=u.useCallback(e.getPixels.bind(e),[e]),r=u.useCallback(function(i){return e.render(i)},[e]),o=u.useCallback(function(){return e.needsRender=!0},[e]),a=u.useCallback(function(i,s){return e.preloadPano(i,s)},[e]);return{updateCamera:n,getPixels:t,render:r,needsRender:o,preloadPano:a}}function Re(){var e=p(),n=u.useState(function(){return Symbol()});n[0];var t=n[1];u.useLayoutEffect(function(){return e.on("cameraUpdate",function(){return t(Symbol())})},[e]);var r=u.useCallback(function(o,a){return e.project2d(o,a)},[e]);return r}function T(e){var n=e.camera.getWorldDirection(new h.Vector3),t=new h.Raycaster(e.camera.position,n);return t}function _e(){var e=p(),n=u.useState(function(){return T(e)}),t=n[0],r=n[1];return u.useLayoutEffect(function(){return e.on("cameraUpdate",function(){return r(T(e))})},[e]),t}function N(e){return e.camera.getWorldDirection(new h.Vector3)}function Le(){var e=p(),n=u.useState(function(){return N(e)}),t=n[0],r=n[1];return u.useLayoutEffect(function(){return e.on("cameraUpdate",function(){return r(N(e))})},[e]),t}function Pe(){var e=p(),n=u.useCallback(function(t){return e.model.intersectRaycaster(t)},[e]);return n}function $(e){return e.model.empty?"Empty":"Loaded"}function Ve(){var e=p(),n=u.useState(function(){return $(e)}),t=n[0],r=n[1];return u.useLayoutEffect(function(){return e.on("modelLoaded",function(){return r($(e))})},[e]),t}function Oe(){var e=p(),n=u.useState(e.model.shownFloor),t=n[0],r=n[1],o=u.useState(e.model.floorLength),a=o[0],i=o[1],s=u.useCallback(function(c){typeof c=="number"?e.model.show(c):e.model.show()},[e]);return u.useLayoutEffect(function(){var c=[];return c.push(e.on("modelShownFloorChange",function(){return r(e.model.shownFloor)})),c.push(e.on("modelLoaded",function(){return i(e.model.floorLength)})),function(){for(var l;l=c.shift();)l()}},[e]),[t,a,s]}function xe(){var e=p(),n=u.useState(e.helperVisible),t=n[0],r=n[1],o=u.useCallback(function(a){e.helperVisible=a},[e]);return u.useLayoutEffect(function(){return e.on("helpersVisibleChange",function(a){return r(a)})},[e]),[t,o]}var De="$five";function f(e,n){return n.indexOf(e)>=0}function H(e,n){for(var t=0,r=Object.keys(n);t<r.length;t++){var o=r[t];n[o]!==void 0&&(e[o]=n[o])}}function We(e,n){var t=f("state",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return g({},e.state)},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("stateChange",function(){return a(Symbol())})},[e]),[i,o]}function Me(e,n){var t=f("currentState",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.getCurrentState()},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("currentStateChange",function(){return a(Symbol())})},[e]),[i,o]}function je(e,n){var t=f("currentObserver",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.getCurrentState()},[e,o]);u.useLayoutEffect(function(){if(t)return e.on("currentStateChange",function(){return a(Symbol())})},[e]);var s=void 0;return i&&(s=e.works.getResolvedObserver(i)),[s,o]}function Ue(e,n){var t=f("unsafe__fiveInstance",n);return[t?e:void 0]}function Te(e,n){var t=f("works",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.works},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("load",function(){return a(Symbol())})},[e]),[i,o]}function Ne(e,n){var t=f("model",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.model},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("modelLoaded",function(){return a(Symbol())})},[e]),[i,o]}function $e(e,n){var t=f("scene",n);return[t?e.scene:void 0]}function He(e,n){var t=f("cameraDirection",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.camera.getWorldDirection(new h.Vector3)},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("cameraUpdate",function(){return a(Symbol())})},[e]),[i,o]}function Be(e,n){var t=f("cameraRaycaster",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t){var s=e.camera.getWorldDirection(new h.Vector3),c=new h.Raycaster(e.camera.position,s);return c}},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("cameraUpdate",function(){return a(Symbol())})},[e]),[i,o]}function Ae(e,n){var t=f("modelReadyState",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.model.empty?"Empty":"Loaded"},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("modelLoaded",function(){return a(Symbol())})},[e]),[i,o]}function Ge(e,n){var t=f("shownFloor",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.model.shownFloor},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("modelShownFloorChange",function(){return a(Symbol())})},[e]),[i,o]}function Ie(e,n){var t=f("helperVisible",n),r=u.useState(Symbol()),o=r[0],a=r[1],i=u.useMemo(function(){if(t)return e.helperVisible},[e,o]);return u.useLayoutEffect(function(){if(t)return e.on("helpersVisibleChange",function(){return a(Symbol())})},[e]),[i,o]}function qe(e,n){if(f("loadWork",n))return e}function ze(e,n){if(f("setState",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.setState.apply(e,t)}}function Je(e,n){if(f("on",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.on.apply(e,t)}}function Ke(e,n){if(f("on",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.once.apply(e,t)}}function Qe(e,n){if(f("off",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.off.apply(e,t)}}function Xe(e,n){if(f("intersectRaycaster",n))return function(){for(var t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return(t=e.model).intersectRaycaster.apply(t,r)}}function Ye(e,n){if(f("project2d",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.project2d.apply(e,t)}}function Ze(e,n){if(f("updateCamera",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.updateCamera.apply(e,t)}}function er(e,n){if(f("getPixels",n))return e.getPixels.bind(e)}function rr(e,n){if(f("render",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.render.apply(e,t)}}function tr(e,n){if(f("needsRender",n))return function(){e.needsRender=!0}}function nr(e,n){if(f("preloadPano",n))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.preloadPano.apply(e,t)}}function or(e,n){if(f("showFloor",n))return function(t){typeof t=="number"?e.model.show(t):e.model.show()}}function ar(e,n){if(f("toggleHelperVisible",n))return function(t){e.helperVisible=t}}function ur(e){return function(n){return u.forwardRef(function(t,r){var o=p(),a=G(),i=Ue(o,e)[0],s=We(o,e),c=s[0],l=s[1],d=Me(o,e),y=d[0],v=d[1],m=je(o,e),S=m[0],C=m[1],L=Te(o,e),z=L[0],J=L[1],P=Ne(o,e),K=P[0],Q=P[1],X=$e(o,e)[0],V=He(o,e),Y=V[0],Z=V[1],O=Be(o,e),ee=O[0],re=O[1],x=Ae(o,e),te=x[0],ne=x[1],D=Ge(o,e),oe=D[0],ae=D[1],W=Ie(o,e),ue=W[0],ie=W[1],M=u.useMemo(function(){var b={};return H(b,{setState:ze(o,e),loadWork:qe(a,e),on:Je(o,e),once:Ke(o,e),off:Qe(o,e),intersectRaycaster:Xe(o,e),project2d:Ye(o,e),updateCamera:Ze(o,e),getPixels:er(o,e),render:rr(o,e),needsRender:tr(o,e),preloadPano:nr(o,e),showFloor:or(o,e),toggleHelperVisible:ar(o,e)}),b},[o,a]),se=u.useMemo(function(){var b=g({},M);return H(b,{unsafe__fiveInstance:i,state:c,currentState:y,currentObserver:S,work:z,model:K,scene:X,cameraDirection:Y,cameraRaycaster:ee,modelReadyState:te,shownFloor:oe,helperVisible:ue}),b},[o,M,l,v,C,J,Q,Z,re,ne,ae,ie]);return u.createElement(n,g({ref:r,$five:se},t))})}}function ir(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e}function F(e,n){for(var t={},r=n.length,o=-1;++o<r;){var a=n[o];a in e&&(t[a]=e[a])}return t}function sr(e,n){return typeof e=="number"&&typeof n=="number"&&isNaN(e)&&isNaN(n)?!0:e===n}function cr(e,n){for(var t=0;t<e.length;t++)for(var r=0;r<n.length;r++)if(e[t]===n[r])return!0;return!1}var q=function(){function e(n,t){this.values=n,this.listeners=[],this.onValuesChange=t}return e.prototype.on=function(n,t){var r=this,o=[n,t];return this.listeners.push(o),function(){var a=r.listeners.indexOf(o);a>=0&&r.listeners.splice(a,1)}},e.prototype.getValues=function(n){return F(this.values,n)},e.prototype.setValues=function(n,t){var r=[];for(var o in t)n.indexOf(o)>=0&&!sr(t[o],this.values[o])&&r.push(o);if(r.length!==0){for(var a=g({},this.values),i=0,s=r;i<s.length;i++){var c=s[i];this.values[c]=t[c]}this.onValuesChange&&this.onValuesChange(this.values,a);for(var l=0,d=this.listeners;l<d.length;l++){var y=d[l],v=y[0],m=y[1];if(cr(v,r)){var S=F(a,v),C=F(this.values,v);m(C,S)}}}},e}();function fr(e){var n=u.createContext(null);return{useStore:function(t){var r=u.useContext(n);if(r===null)throw new Error("StoreProvider never found.");var o=u.useRef(!0),a=u.useState(r.getValues(t)),i=a[0],s=a[1],c=w([r],t,!0);u.useLayoutEffect(function(){return o.current?o.current=!1:s(r.getValues(t)),r.on(t,function(d){return s(d)})},c);var l=u.useCallback(function(d){return r.setValues(t,d)},c);return[i,l]},useStoreSetter:function(t){var r=u.useContext(n);if(r===null)throw new Error("StoreProvider never found.");var o=u.useCallback(function(a){return r.setValues(t,a)},w([r],t,!0));return o},watchStore:function(t,r,o){var a=u.useContext(n);if(a===null)throw new Error("StoreProvider never found.");var i=w([a],t,!0);o!==void 0&&(i=i.concat(o)),u.useLayoutEffect(function(){return a.on(t,r)},i)},useStoreAction:function(t){var r=u.useContext(n);if(r===null)throw new Error("StoreProvider never found.");var o=u.useCallback(function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var s=e[t],c=s[0],l=s.slice(1),d=function(){return r.getValues(l)},y=function(v){return r.setValues(l,v)};return c.apply(void 0,w([d,y],a,!1))},[]);return o},StoreProvider:function(t){A(r,t);function r(o){var a=t.call(this,o)||this;return a.store=new q(o.initialValue,function(){for(var i,s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];a.props.onValuesChange&&(i=a.props).onValuesChange.apply(i,s)}),a}return r.prototype.shouldComponentUpdate=function(o){return o.children!==this.props.children},r.prototype.render=function(){return u.createElement(n.Provider,{value:this.store},this.props.children)},r}(u.Component)}}exports.FiveCanvas=ye;exports.INJECTION_PROPNAME=De;exports.Store=q;exports.createFiveFeature=ir;exports.createFiveProvider=pe;exports.createStore=fr;exports.unsafe__useFiveInstance=me;exports.useFiveAction=Ee;exports.useFiveCameraDirection=Le;exports.useFiveCameraRaycaster=_e;exports.useFiveCurrentObserver=Fe;exports.useFiveCurrentState=Ce;exports.useFiveEventCallback=ke;exports.useFiveFloor=Oe;exports.useFiveHelper=xe;exports.useFiveModelIntersectRaycaster=Pe;exports.useFiveModelReadyState=Ve;exports.useFiveProject2d=Re;exports.useFiveScene=Se;exports.useFiveSceneEffect=I;exports.useFiveState=we;exports.useFiveWork=be;exports.withFive=ur;
|
package/react/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five
|
|
4
|
-
* Generated:
|
|
5
|
-
* Version: 6.4.0-alpha.
|
|
4
|
+
* Generated: 1/8/2025
|
|
5
|
+
* Version: 6.4.0-alpha.10
|
|
6
6
|
* Terms:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
* Update: July 28, 2021
|
|
@@ -287,18 +287,18 @@ function b(e, n, t) {
|
|
|
287
287
|
}
|
|
288
288
|
var E = [], R = [];
|
|
289
289
|
function ie(e) {
|
|
290
|
-
var n = e === void 0 ? {} : e, t = n.backgroundColor, r = t === void 0 ? 1579548 : t, o = n.backgroundAlpha, a = o === void 0 ? 1 : o, i = n.preserveDrawingBuffer, s = i === void 0 ? !0 : i, c = n.pixelRatio, l = c === void 0 ? 1 : c,
|
|
290
|
+
var n = e === void 0 ? {} : e, t = n.backgroundColor, r = t === void 0 ? 1579548 : t, o = n.backgroundAlpha, a = o === void 0 ? 1 : o, i = n.preserveDrawingBuffer, s = i === void 0 ? !0 : i, c = n.pixelRatio, l = c === void 0 ? 1 : c, v = n.webgl2, m = v === void 0 ? !1 : v;
|
|
291
291
|
if (typeof window != "undefined") {
|
|
292
|
-
var
|
|
293
|
-
if (m ?
|
|
292
|
+
var d = null;
|
|
293
|
+
if (m ? d = E.shift() : d = R.shift(), !d) {
|
|
294
294
|
if (m) {
|
|
295
295
|
var y = document.createElement("canvas"), S = y.getContext("webgl2");
|
|
296
|
-
S ?
|
|
296
|
+
S ? d = new h.WebGLRenderer({ preserveDrawingBuffer: s, antialias: !0, alpha: !0, stencil: !0, canvas: y, context: S }) : (console.error("error occurred when getting webgl2 canvas context, mybe webgl2 not support, fallback to webgl."), d = new h.WebGLRenderer({ preserveDrawingBuffer: s, antialias: !1, alpha: !0, stencil: !0 }));
|
|
297
297
|
} else
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
d = new h.WebGLRenderer({ preserveDrawingBuffer: s, antialias: !1, alpha: !0, stencil: !0 });
|
|
299
|
+
d.outputEncoding = h.sRGBEncoding;
|
|
300
300
|
}
|
|
301
|
-
return
|
|
301
|
+
return d.setPixelRatio(l), d.setClearColor(r, a), d.autoClear = !0, d;
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
function se(e) {
|
|
@@ -359,10 +359,10 @@ function Ge(e) {
|
|
|
359
359
|
}
|
|
360
360
|
this.five.renderer = a, this.setState({ renderer: a }), this.__fiveEventDisposers.push(this.five.on("load", function() {
|
|
361
361
|
r.props.onWorksChange && r.props.onWorksChange(r.five.works);
|
|
362
|
-
})), this.__fiveEventDisposers.push(this.five.on("stateChange", function(l,
|
|
363
|
-
r.props.onStateChange && r.props.onStateChange(l,
|
|
364
|
-
})), this.__fiveEventDisposers.push(this.five.on("currentStateChange", function(l,
|
|
365
|
-
r.props.onCurrentStateChange && r.props.onCurrentStateChange(l,
|
|
362
|
+
})), this.__fiveEventDisposers.push(this.five.on("stateChange", function(l, v) {
|
|
363
|
+
r.props.onStateChange && r.props.onStateChange(l, v);
|
|
364
|
+
})), this.__fiveEventDisposers.push(this.five.on("currentStateChange", function(l, v) {
|
|
365
|
+
r.props.onCurrentStateChange && r.props.onCurrentStateChange(l, v);
|
|
366
366
|
})), this.__fiveEventDisposers.push(this.five.on("error", function(l) {
|
|
367
367
|
r.props.onError ? r.props.onError(l) : console.warn(l.message);
|
|
368
368
|
}));
|
|
@@ -470,9 +470,7 @@ function Xe(e, n, t) {
|
|
|
470
470
|
function Ye() {
|
|
471
471
|
var e = p(), n = u.useCallback(function(i, s) {
|
|
472
472
|
return e.updateCamera(i, s);
|
|
473
|
-
}, [e]), t = u.useCallback(
|
|
474
|
-
return e.getPixels(i, s, c, l, d);
|
|
475
|
-
}, [e]), r = u.useCallback(function(i) {
|
|
473
|
+
}, [e]), t = u.useCallback(e.getPixels.bind(e), [e]), r = u.useCallback(function(i) {
|
|
476
474
|
return e.render(i);
|
|
477
475
|
}, [e]), o = u.useCallback(function() {
|
|
478
476
|
return e.needsRender = !0;
|
|
@@ -739,7 +737,7 @@ function Ve(e, n) {
|
|
|
739
737
|
return e.once.apply(e, t);
|
|
740
738
|
};
|
|
741
739
|
}
|
|
742
|
-
function
|
|
740
|
+
function _e(e, n) {
|
|
743
741
|
if (f("off", n))
|
|
744
742
|
return function() {
|
|
745
743
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -747,7 +745,7 @@ function Pe(e, n) {
|
|
|
747
745
|
return e.off.apply(e, t);
|
|
748
746
|
};
|
|
749
747
|
}
|
|
750
|
-
function
|
|
748
|
+
function Pe(e, n) {
|
|
751
749
|
if (f("intersectRaycaster", n))
|
|
752
750
|
return function() {
|
|
753
751
|
for (var t, r = [], o = 0; o < arguments.length; o++)
|
|
@@ -773,11 +771,7 @@ function De(e, n) {
|
|
|
773
771
|
}
|
|
774
772
|
function We(e, n) {
|
|
775
773
|
if (f("getPixels", n))
|
|
776
|
-
return
|
|
777
|
-
for (var t = [], r = 0; r < arguments.length; r++)
|
|
778
|
-
t[r] = arguments[r];
|
|
779
|
-
return e.getPixels.apply(e, t);
|
|
780
|
-
};
|
|
774
|
+
return e.getPixels.bind(e);
|
|
781
775
|
}
|
|
782
776
|
function Oe(e, n) {
|
|
783
777
|
if (f("render", n))
|
|
@@ -816,15 +810,15 @@ function Te(e, n) {
|
|
|
816
810
|
function ir(e) {
|
|
817
811
|
return function(n) {
|
|
818
812
|
return u.forwardRef(function(t, r) {
|
|
819
|
-
var o = p(), a = H(), i = ge(o, e)[0], s = ve(o, e), c = s[0], l = s[1],
|
|
813
|
+
var o = p(), a = H(), i = ge(o, e)[0], s = ve(o, e), c = s[0], l = s[1], v = pe(o, e), m = v[0], d = v[1], y = he(o, e), S = y[0], C = y[1], V = me(o, e), G = V[0], A = V[1], _ = ye(o, e), I = _[0], q = _[1], z = Se(o, e)[0], P = we(o, e), J = P[0], K = P[1], x = be(o, e), Q = x[0], X = x[1], D = Ce(o, e), Y = D[0], Z = D[1], W = Fe(o, e), ee = W[0], re = W[1], O = ke(o, e), te = O[0], ne = O[1], M = u.useMemo(function() {
|
|
820
814
|
var w = {};
|
|
821
815
|
return $(w, {
|
|
822
816
|
setState: Re(o, e),
|
|
823
817
|
loadWork: Ee(a, e),
|
|
824
818
|
on: Le(o, e),
|
|
825
819
|
once: Ve(o, e),
|
|
826
|
-
off:
|
|
827
|
-
intersectRaycaster:
|
|
820
|
+
off: _e(o, e),
|
|
821
|
+
intersectRaycaster: Pe(o, e),
|
|
828
822
|
project2d: xe(o, e),
|
|
829
823
|
updateCamera: De(o, e),
|
|
830
824
|
getPixels: We(o, e),
|
|
@@ -854,7 +848,7 @@ function ir(e) {
|
|
|
854
848
|
o,
|
|
855
849
|
M,
|
|
856
850
|
l,
|
|
857
|
-
|
|
851
|
+
d,
|
|
858
852
|
C,
|
|
859
853
|
A,
|
|
860
854
|
q,
|
|
@@ -914,10 +908,10 @@ var Be = (
|
|
|
914
908
|
this.values[c] = t[c];
|
|
915
909
|
}
|
|
916
910
|
this.onValuesChange && this.onValuesChange(this.values, a);
|
|
917
|
-
for (var l = 0,
|
|
918
|
-
var m =
|
|
919
|
-
if ($e(
|
|
920
|
-
var S = F(a,
|
|
911
|
+
for (var l = 0, v = this.listeners; l < v.length; l++) {
|
|
912
|
+
var m = v[l], d = m[0], y = m[1];
|
|
913
|
+
if ($e(d, r)) {
|
|
914
|
+
var S = F(a, d), C = F(this.values, d);
|
|
921
915
|
y(C, S);
|
|
922
916
|
}
|
|
923
917
|
}
|
|
@@ -939,12 +933,12 @@ function cr(e) {
|
|
|
939
933
|
throw new Error("StoreProvider never found.");
|
|
940
934
|
var o = u.useRef(!0), a = u.useState(r.getValues(t)), i = a[0], s = a[1], c = b([r], t, !0);
|
|
941
935
|
u.useLayoutEffect(function() {
|
|
942
|
-
return o.current ? o.current = !1 : s(r.getValues(t)), r.on(t, function(
|
|
943
|
-
return s(
|
|
936
|
+
return o.current ? o.current = !1 : s(r.getValues(t)), r.on(t, function(v) {
|
|
937
|
+
return s(v);
|
|
944
938
|
});
|
|
945
939
|
}, c);
|
|
946
|
-
var l = u.useCallback(function(
|
|
947
|
-
return r.setValues(t,
|
|
940
|
+
var l = u.useCallback(function(v) {
|
|
941
|
+
return r.setValues(t, v);
|
|
948
942
|
}, c);
|
|
949
943
|
return [i, l];
|
|
950
944
|
},
|
|
@@ -984,12 +978,12 @@ function cr(e) {
|
|
|
984
978
|
var o = u.useCallback(function() {
|
|
985
979
|
for (var a = [], i = 0; i < arguments.length; i++)
|
|
986
980
|
a[i] = arguments[i];
|
|
987
|
-
var s = e[t], c = s[0], l = s.slice(1),
|
|
981
|
+
var s = e[t], c = s[0], l = s.slice(1), v = function() {
|
|
988
982
|
return r.getValues(l);
|
|
989
|
-
}, m = function(
|
|
990
|
-
return r.setValues(l,
|
|
983
|
+
}, m = function(d) {
|
|
984
|
+
return r.setValues(l, d);
|
|
991
985
|
};
|
|
992
|
-
return c.apply(void 0, b([
|
|
986
|
+
return c.apply(void 0, b([v, m], a, !1));
|
|
993
987
|
}, []);
|
|
994
988
|
return o;
|
|
995
989
|
},
|
package/shader-lib/index.js
CHANGED
package/shader-lib/index.mjs
CHANGED
package/sticker/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five
|
|
4
|
-
* Generated:
|
|
5
|
-
* Version: 6.4.0-alpha.
|
|
4
|
+
* Generated: 1/8/2025
|
|
5
|
+
* Version: 6.4.0-alpha.10
|
|
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
|
-
*/"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("three");function w(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const a=w(g);var m=function(t,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},m(t,n)};function h(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)}var E=new Float32Array([-.5,-.5,0,.5,-.5,0,-.5,.5,0,.5,.5,0]),T=new Float32Array([0,0,1,0,0,1,1,1]),_=new Uint8Array([0,1,2,1,3,2]),d=new a.BufferGeometry;d.setAttribute("position",new a.BufferAttribute(E,3));d.setAttribute("uv",new a.BufferAttribute(T,2));d.setIndex(new a.BufferAttribute(_,1));var u=window,y=u.requestAnimationFrame||u.mozRequestAnimationFrame||u.webkitRequestAnimationFrame||u.msRequestAnimationFrame||function(t){return setTimeout(t,16)},R=typeof performance!="undefined"&&typeof performance.timing!="undefined"?performance.timing.navigationStart:Date.now(),l=typeof performance!="undefined"?function(){return R+performance.now()}:function(){return Date.now()};function S(t,n){t.naturalWidth>0&&y(function(){return n()});var e=function(){return n()};return t.addEventListener("load",e,!1),function(){return t.removeEventListener("load",e,!1)}}function A(t,n){var e=l(),i=!1,r=function(){i=!0,n();var s=l();s-e<3e3?y(r):i=!1},o=function(){e=l(),i===!1&&r()};return t.addEventListener("timeupdate",o,!1),function(){t.removeEventListener("timeupdate",o,!1),i=!1}}function v(t,n){var e=t.dispose;t.dispose=function(){n(),e.call(t)}}var b=function(t){h(n,t);function n(e,i,r){var o=this,s=new a.MeshBasicMaterial;if(o=t.call(this,d,s)||this,o._needsRender=!1,o.scale.set(e,i,1),typeof r=="string"){s.transparent=/\.png$/.test(r);var c=new Image;c.src=r,c.crossOrigin="",r=c}if(r instanceof HTMLImageElement){var p=s.map=new a.Texture;p.wrapS=a.ClampToEdgeWrapping,p.wrapT=a.ClampToEdgeWrapping,p.minFilter=a.LinearFilter,p.encoding=a.sRGBEncoding,v(p,S(r,function(){p.image=r,p.needsUpdate=!0,o._needsRender=!0}))}else if(r instanceof HTMLCanvasElement)s.map=new a.CanvasTexture(r);else if(r instanceof HTMLVideoElement){var f=s.map=new a.VideoTexture(r);f.wrapS=a.ClampToEdgeWrapping,f.wrapT=a.ClampToEdgeWrapping,f.minFilter=a.LinearFilter,f.encoding=a.sRGBEncoding,v(f,A(r,function(){o._needsRender=!0}))}return o}return Object.defineProperty(n,"version",{get:function(){return"6.4.0-alpha.
|
|
255
|
+
*/"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("three");function w(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const a=w(g);var m=function(t,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},m(t,n)};function h(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)}var E=new Float32Array([-.5,-.5,0,.5,-.5,0,-.5,.5,0,.5,.5,0]),T=new Float32Array([0,0,1,0,0,1,1,1]),_=new Uint8Array([0,1,2,1,3,2]),d=new a.BufferGeometry;d.setAttribute("position",new a.BufferAttribute(E,3));d.setAttribute("uv",new a.BufferAttribute(T,2));d.setIndex(new a.BufferAttribute(_,1));var u=window,y=u.requestAnimationFrame||u.mozRequestAnimationFrame||u.webkitRequestAnimationFrame||u.msRequestAnimationFrame||function(t){return setTimeout(t,16)},R=typeof performance!="undefined"&&typeof performance.timing!="undefined"?performance.timing.navigationStart:Date.now(),l=typeof performance!="undefined"?function(){return R+performance.now()}:function(){return Date.now()};function S(t,n){t.naturalWidth>0&&y(function(){return n()});var e=function(){return n()};return t.addEventListener("load",e,!1),function(){return t.removeEventListener("load",e,!1)}}function A(t,n){var e=l(),i=!1,r=function(){i=!0,n();var s=l();s-e<3e3?y(r):i=!1},o=function(){e=l(),i===!1&&r()};return t.addEventListener("timeupdate",o,!1),function(){t.removeEventListener("timeupdate",o,!1),i=!1}}function v(t,n){var e=t.dispose;t.dispose=function(){n(),e.call(t)}}var b=function(t){h(n,t);function n(e,i,r){var o=this,s=new a.MeshBasicMaterial;if(o=t.call(this,d,s)||this,o._needsRender=!1,o.scale.set(e,i,1),typeof r=="string"){s.transparent=/\.png$/.test(r);var c=new Image;c.src=r,c.crossOrigin="",r=c}if(r instanceof HTMLImageElement){var p=s.map=new a.Texture;p.wrapS=a.ClampToEdgeWrapping,p.wrapT=a.ClampToEdgeWrapping,p.minFilter=a.LinearFilter,p.encoding=a.sRGBEncoding,v(p,S(r,function(){p.image=r,p.needsUpdate=!0,o._needsRender=!0}))}else if(r instanceof HTMLCanvasElement)s.map=new a.CanvasTexture(r);else if(r instanceof HTMLVideoElement){var f=s.map=new a.VideoTexture(r);f.wrapS=a.ClampToEdgeWrapping,f.wrapT=a.ClampToEdgeWrapping,f.minFilter=a.LinearFilter,f.encoding=a.sRGBEncoding,v(f,A(r,function(){o._needsRender=!0}))}return o}return Object.defineProperty(n,"version",{get:function(){return"6.4.0-alpha.10"},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,i){this.scale.set(e,i,1),this._needsRender=!0},n.prototype.setTransparent=function(e){this.material.transparent=e,this._needsRender=!0},n.prototype.locationWithIntersection=function(e,i){i===void 0&&(i=.005);var r=e.point,o=e.face;this.position.copy(r),o&&(this.position.add(o.normal.clone().setLength(i)),this.lookAt(r.clone().add(o.normal))),this._needsRender=!0},n.prototype.dispose=function(){var e;(e=this.material.map)===null||e===void 0||e.dispose(),this.material.dispose()},n}(a.Mesh);exports.Sticker=b;
|
package/sticker/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five
|
|
4
|
-
* Generated:
|
|
5
|
-
* Version: 6.4.0-alpha.
|
|
4
|
+
* Generated: 1/8/2025
|
|
5
|
+
* Version: 6.4.0-alpha.10
|
|
6
6
|
* Terms:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
* Update: July 28, 2021
|
|
@@ -366,7 +366,7 @@ var A = (
|
|
|
366
366
|
}
|
|
367
367
|
return Object.defineProperty(n, "version", {
|
|
368
368
|
get: function() {
|
|
369
|
-
return "6.4.0-alpha.
|
|
369
|
+
return "6.4.0-alpha.10";
|
|
370
370
|
},
|
|
371
371
|
enumerable: !1,
|
|
372
372
|
configurable: !0
|