@soonspacejs/plugin-sbmz-loader 2.5.0-alpha.0 → 2.5.0-rc.1

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/dist/index.esm.js CHANGED
@@ -12,4 +12,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
14
  ***************************************************************************** */
15
- function t(t,o,s,n){return new(s||(s=Promise))((function(i,e){function a(t){try{l(n.next(t))}catch(t){e(t)}}function c(t){try{l(n.throw(t))}catch(t){e(t)}}function l(t){var o;t.done?i(t.value):(o=t.value,o instanceof s?o:new s((function(t){t(o)}))).then(a,c)}l((n=n.apply(t,o||[])).next())}))}class o{constructor(t){this.modelData=[],this.modelList=[],this.ssp=t}load(o){return t(this,void 0,void 0,(function*(){const{fetchFile:t}=this.ssp.utils,s=yield t(`${o}/metadata.json`).then((t=>t.json()));this.modelData=s.items;const n=`${o}_group`;this.ssp.createGroup({id:n});const i=yield this.ssp.addModelForGroup(n,this.modelData.map((({name:t,position:o,rotation:s,scale:n,path:i},e)=>({id:e,name:t,url:`./AFCssss-out/${i}`,position:{x:o[0],y:o[1],z:o[2]},rotation:{x:s[0],y:s[1],z:s[2]},scale:{x:n[0],y:n[1],z:n[2]}}))));this.modelList=null==i?void 0:i.children}))}}export{o as default};
15
+ function t(t,o,n,i){return new(n||(n=Promise))((function(s,e){function a(t){try{l(i.next(t))}catch(t){e(t)}}function c(t){try{l(i.throw(t))}catch(t){e(t)}}function l(t){var o;t.done?s(t.value):(o=t.value,o instanceof n?o:new n((function(t){t(o)}))).then(a,c)}l((i=i.apply(t,o||[])).next())}))}class o{constructor(t){this.modelData=[],this.modelList=[],this.ssp=t}load(o){return t(this,void 0,void 0,(function*(){const{fetchFile:t}=this.ssp.utils,n=yield t(`${o}/metadata.json`).then((t=>t.json()));this.modelData=n.items;const i=`${o}_group`;this.ssp.createGroup({id:i});const s=yield this.ssp.addModelForGroup(i,this.modelData.map((({name:t,position:n,rotation:i,scale:s,path:e},a)=>({id:a,name:t,url:`${o}/${e}`,position:{x:n[0],y:n[1],z:n[2]},rotation:{x:i[0],y:i[1],z:i[2]},scale:{x:s[0],y:s[1],z:s[2]}}))));this.modelList=null==s?void 0:s.children}))}}export{o as default};
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(t,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(t="undefined"!=typeof globalThis?globalThis:t||self).SbmzLoaderPlugin=o()}(this,(function(){"use strict";
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).SbmzLoaderPlugin=e()}(this,(function(){"use strict";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,4 +12,4 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function t(t,o,e,n){return new(e||(e=Promise))((function(i,s){function a(t){try{l(n.next(t))}catch(t){s(t)}}function d(t){try{l(n.throw(t))}catch(t){s(t)}}function l(t){var o;t.done?i(t.value):(o=t.value,o instanceof e?o:new e((function(t){t(o)}))).then(a,d)}l((n=n.apply(t,o||[])).next())}))}return class{constructor(t){this.modelData=[],this.modelList=[],this.ssp=t}load(o){return t(this,void 0,void 0,(function*(){const{fetchFile:t}=this.ssp.utils,e=yield t(`${o}/metadata.json`).then((t=>t.json()));this.modelData=e.items;const n=`${o}_group`;this.ssp.createGroup({id:n});const i=yield this.ssp.addModelForGroup(n,this.modelData.map((({name:t,position:o,rotation:e,scale:n,path:i},s)=>({id:s,name:t,url:`./AFCssss-out/${i}`,position:{x:o[0],y:o[1],z:o[2]},rotation:{x:e[0],y:e[1],z:e[2]},scale:{x:n[0],y:n[1],z:n[2]}}))));this.modelList=null==i?void 0:i.children}))}}}));
15
+ ***************************************************************************** */function t(t,e,o,n){return new(o||(o=Promise))((function(i,s){function a(t){try{l(n.next(t))}catch(t){s(t)}}function d(t){try{l(n.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(a,d)}l((n=n.apply(t,e||[])).next())}))}return class{constructor(t){this.modelData=[],this.modelList=[],this.ssp=t}load(e){return t(this,void 0,void 0,(function*(){const{fetchFile:t}=this.ssp.utils,o=yield t(`${e}/metadata.json`).then((t=>t.json()));this.modelData=o.items;const n=`${e}_group`;this.ssp.createGroup({id:n});const i=yield this.ssp.addModelForGroup(n,this.modelData.map((({name:t,position:o,rotation:n,scale:i,path:s},a)=>({id:a,name:t,url:`${e}/${s}`,position:{x:o[0],y:o[1],z:o[2]},rotation:{x:n[0],y:n[1],z:n[2]},scale:{x:i[0],y:i[1],z:i[2]}}))));this.modelList=null==i?void 0:i.children}))}}}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soonspacejs/plugin-sbmz-loader",
3
3
  "pluginName": "SbmzLoaderPlugin",
4
- "version": "2.5.0-alpha.0",
4
+ "version": "2.5.0-rc.1",
5
5
  "description": "Sbmz-loader plugin for SoonSpace.js",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.esm.js",
@@ -13,5 +13,5 @@
13
13
  ],
14
14
  "author": "xuek",
15
15
  "license": "UNLICENSED",
16
- "gitHead": "9aa8dc558c241c313b1db6b365c14bb6835df579"
17
- }
16
+ "gitHead": "50b1248bbdb82c6600be04fcbe35e6f1f3d1e8d3"
17
+ }