瀏覽代碼

rebuilt ion example

Petter 4 年之前
父節點
當前提交
b0ba389445
共有 3 個文件被更改,包括 13 次插入14 次删除
  1. 11 12
      example/bundle/ionExample.4422c37a.js
  2. 1 1
      example/bundle/ionExample.4422c37a.js.map
  3. 1 1
      example/bundle/ionExample.js

+ 11 - 12
example/bundle/ionExample.4422c37a.js

@@ -49295,19 +49295,18 @@ function loadIonJson(assetId, accessToken) {
 }
 }
 
 
 function setupTiles() {
 function setupTiles() {
-  tiles.fetchOptions.mode = 'cors';
+  tiles.fetchOptions.mode = 'cors'; // Note the DRACO compression files need to be supplied via an explicit source.
+  // We use unpkg here but in practice should be provided by the application.
+
+  var dracoLoader = new _DRACOLoader.DRACOLoader();
+  dracoLoader.setDecoderPath('https://unpkg.com/three@0.123.0/examples/js/libs/draco/gltf/');
+  dracoLoader.setDecoderConfig({
+    type: "js"
+  });
+  var loader = new _GLTFLoader.GLTFLoader(tiles.manager);
+  loader.setDRACOLoader(dracoLoader);
   tiles.manager.addHandler(/\.gltf$/, {
   tiles.manager.addHandler(/\.gltf$/, {
     parse: function parse() {
     parse: function parse() {
-      // Note the DRACO compression files need to be supplied via an explicit source.
-      // We use unpkg here but in practice should be provided by the application.
-      var dracoLoader = new _DRACOLoader.DRACOLoader();
-      dracoLoader.setDecoderPath('https://unpkg.com/three@0.123.0/examples/js/libs/draco/gltf/');
-      dracoLoader.setDecoderConfig({
-        type: "js"
-      }); // WASM overloads memory without some sort of bottleneck on loading
-
-      var loader = new _GLTFLoader.GLTFLoader(tiles.manager);
-      loader.setDRACOLoader(dracoLoader);
       return loader.parse.apply(loader, arguments);
       return loader.parse.apply(loader, arguments);
     }
     }
   });
   });
@@ -49805,7 +49804,7 @@ var parent = module.bundle.parent;
 if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
 if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
   var hostname = "" || location.hostname;
   var hostname = "" || location.hostname;
   var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
   var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
-  var ws = new WebSocket(protocol + '://' + hostname + ':' + "65246" + '/');
+  var ws = new WebSocket(protocol + '://' + hostname + ':' + "56606" + '/');
 
 
   ws.onmessage = function (event) {
   ws.onmessage = function (event) {
     checkedAssets = {};
     checkedAssets = {};

文件差異過大導致無法顯示
+ 1 - 1
example/bundle/ionExample.4422c37a.js.map


+ 1 - 1
example/bundle/ionExample.js

@@ -212,7 +212,7 @@ var parent = module.bundle.parent;
 if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
 if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
   var hostname = "" || location.hostname;
   var hostname = "" || location.hostname;
   var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
   var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
-  var ws = new WebSocket(protocol + '://' + hostname + ':' + "65246" + '/');
+  var ws = new WebSocket(protocol + '://' + hostname + ':' + "56606" + '/');
 
 
   ws.onmessage = function (event) {
   ws.onmessage = function (event) {
     checkedAssets = {};
     checkedAssets = {};