Skip to content

Commit

Permalink
npm run build
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Dec 15, 2020
1 parent 4c599c1 commit dc01eb7
Show file tree
Hide file tree
Showing 21 changed files with 142 additions and 54 deletions.
36 changes: 26 additions & 10 deletions example/bundle/b3dmExample.d88db709.js
Original file line number Diff line number Diff line change
Expand Up @@ -41818,10 +41818,21 @@ function (_B3DMLoaderBase) {
var manager = _this2.manager;
var loader = manager.getHandler('path.gltf') || new _GLTFLoader.GLTFLoader(manager);
loader.parse(gltfBuffer, null, function (model) {
model.batchTable = b3dm.batchTable;
model.featureTable = b3dm.featureTable;
model.scene.batchTable = b3dm.batchTable;
model.scene.featureTable = b3dm.featureTable;
var batchTable = b3dm.batchTable,
featureTable = b3dm.featureTable;
var scene = model.scene;
var rtcCenter = featureTable.getData('RTC_CENTER');

if (rtcCenter) {
scene.position.x += rtcCenter[0];
scene.position.y += rtcCenter[1];
scene.position.z += rtcCenter[2];
}

model.batchTable = batchTable;
model.featureTable = featureTable;
scene.batchTable = batchTable;
scene.featureTable = featureTable;
resolve(model);
}, reject);
});
Expand Down Expand Up @@ -43271,6 +43282,7 @@ function (_TilesRendererBase) {
break;
}

scene.updateMatrix();
scene.matrix.premultiply(cachedTransform);
scene.matrix.decompose(scene.position, scene.quaternion, scene.scale);
scene.traverse(function (c) {
Expand Down Expand Up @@ -44972,8 +44984,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var camera, controls, scene, renderer;
var box, dirLight;
var camera, controls, scene, renderer, offsetGroup;
var dirLight;
var raycaster, mouse;
var model;
var infoEl;
Expand Down Expand Up @@ -45036,15 +45048,19 @@ function init() {
scene.add(dirLight);
var ambLight = new _three.AmbientLight(0xffffff, 0.05);
scene.add(ambLight);
box = new _three.Box3();
offsetGroup = new _three.Group();
scene.add(offsetGroup);
new _index.B3DMLoader().load('https://raw.githubusercontent.com/CesiumGS/3d-tiles-samples/master/tilesets/TilesetWithRequestVolume/city/lr.b3dm').then(function (res) {
console.log(res);
model = res.scene;
scene.add(res.scene); // reassign the material to use the batchid highlight variant.
offsetGroup.add(model);
var box = new _three.Box3();
box.setFromObject(model);
box.getCenter(offsetGroup.position).multiplyScalar(-1); // reassign the material to use the batchid highlight variant.
// in practice this should copy over any needed uniforms from the
// original material.

res.scene.traverse(function (c) {
model.traverse(function (c) {
if (c.isMesh) {
c.material = new _three.ShaderMaterial(batchIdHighlightShaderMixin(_three.ShaderLib.standard));
}
Expand Down Expand Up @@ -45143,7 +45159,7 @@ var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "63111" + '/');
var ws = new WebSocket(protocol + '://' + hostname + ':' + "57896" + '/');

ws.onmessage = function (event) {
checkedAssets = {};
Expand Down
2 changes: 1 addition & 1 deletion example/bundle/b3dmExample.d88db709.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/bundle/b3dmExample.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 17 additions & 5 deletions example/bundle/cmptExample.4b2a3f0d.js
Original file line number Diff line number Diff line change
Expand Up @@ -41818,10 +41818,21 @@ function (_B3DMLoaderBase) {
var manager = _this2.manager;
var loader = manager.getHandler('path.gltf') || new _GLTFLoader.GLTFLoader(manager);
loader.parse(gltfBuffer, null, function (model) {
model.batchTable = b3dm.batchTable;
model.featureTable = b3dm.featureTable;
model.scene.batchTable = b3dm.batchTable;
model.scene.featureTable = b3dm.featureTable;
var batchTable = b3dm.batchTable,
featureTable = b3dm.featureTable;
var scene = model.scene;
var rtcCenter = featureTable.getData('RTC_CENTER');

if (rtcCenter) {
scene.position.x += rtcCenter[0];
scene.position.y += rtcCenter[1];
scene.position.z += rtcCenter[2];
}

model.batchTable = batchTable;
model.featureTable = featureTable;
scene.batchTable = batchTable;
scene.featureTable = featureTable;
resolve(model);
}, reject);
});
Expand Down Expand Up @@ -43271,6 +43282,7 @@ function (_TilesRendererBase) {
break;
}

scene.updateMatrix();
scene.matrix.premultiply(cachedTransform);
scene.matrix.decompose(scene.position, scene.quaternion, scene.scale);
scene.traverse(function (c) {
Expand Down Expand Up @@ -45058,7 +45070,7 @@ var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "63111" + '/');
var ws = new WebSocket(protocol + '://' + hostname + ':' + "57896" + '/');

ws.onmessage = function (event) {
checkedAssets = {};
Expand Down
2 changes: 1 addition & 1 deletion example/bundle/cmptExample.4b2a3f0d.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/bundle/cmptExample.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 17 additions & 5 deletions example/bundle/customMaterial.dd39ecee.js
Original file line number Diff line number Diff line change
Expand Up @@ -41818,10 +41818,21 @@ function (_B3DMLoaderBase) {
var manager = _this2.manager;
var loader = manager.getHandler('path.gltf') || new _GLTFLoader.GLTFLoader(manager);
loader.parse(gltfBuffer, null, function (model) {
model.batchTable = b3dm.batchTable;
model.featureTable = b3dm.featureTable;
model.scene.batchTable = b3dm.batchTable;
model.scene.featureTable = b3dm.featureTable;
var batchTable = b3dm.batchTable,
featureTable = b3dm.featureTable;
var scene = model.scene;
var rtcCenter = featureTable.getData('RTC_CENTER');

if (rtcCenter) {
scene.position.x += rtcCenter[0];
scene.position.y += rtcCenter[1];
scene.position.z += rtcCenter[2];
}

model.batchTable = batchTable;
model.featureTable = featureTable;
scene.batchTable = batchTable;
scene.featureTable = featureTable;
resolve(model);
}, reject);
});
Expand Down Expand Up @@ -43271,6 +43282,7 @@ function (_TilesRendererBase) {
break;
}

scene.updateMatrix();
scene.matrix.premultiply(cachedTransform);
scene.matrix.decompose(scene.position, scene.quaternion, scene.scale);
scene.traverse(function (c) {
Expand Down Expand Up @@ -48277,7 +48289,7 @@ var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "63111" + '/');
var ws = new WebSocket(protocol + '://' + hostname + ':' + "57896" + '/');

ws.onmessage = function (event) {
checkedAssets = {};
Expand Down
2 changes: 1 addition & 1 deletion example/bundle/customMaterial.dd39ecee.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/bundle/customMaterial.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 17 additions & 5 deletions example/bundle/example.e31bb0bc.js
Original file line number Diff line number Diff line change
Expand Up @@ -41818,10 +41818,21 @@ function (_B3DMLoaderBase) {
var manager = _this2.manager;
var loader = manager.getHandler('path.gltf') || new _GLTFLoader.GLTFLoader(manager);
loader.parse(gltfBuffer, null, function (model) {
model.batchTable = b3dm.batchTable;
model.featureTable = b3dm.featureTable;
model.scene.batchTable = b3dm.batchTable;
model.scene.featureTable = b3dm.featureTable;
var batchTable = b3dm.batchTable,
featureTable = b3dm.featureTable;
var scene = model.scene;
var rtcCenter = featureTable.getData('RTC_CENTER');

if (rtcCenter) {
scene.position.x += rtcCenter[0];
scene.position.y += rtcCenter[1];
scene.position.z += rtcCenter[2];
}

model.batchTable = batchTable;
model.featureTable = featureTable;
scene.batchTable = batchTable;
scene.featureTable = featureTable;
resolve(model);
}, reject);
});
Expand Down Expand Up @@ -43271,6 +43282,7 @@ function (_TilesRendererBase) {
break;
}

scene.updateMatrix();
scene.matrix.premultiply(cachedTransform);
scene.matrix.decompose(scene.position, scene.quaternion, scene.scale);
scene.traverse(function (c) {
Expand Down Expand Up @@ -49588,7 +49600,7 @@ var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "63111" + '/');
var ws = new WebSocket(protocol + '://' + hostname + ':' + "57896" + '/');

ws.onmessage = function (event) {
checkedAssets = {};
Expand Down
2 changes: 1 addition & 1 deletion example/bundle/example.e31bb0bc.js.map

Large diffs are not rendered by default.

22 changes: 17 additions & 5 deletions example/bundle/i3dmExample.c6cc930a.js
Original file line number Diff line number Diff line change
Expand Up @@ -41818,10 +41818,21 @@ function (_B3DMLoaderBase) {
var manager = _this2.manager;
var loader = manager.getHandler('path.gltf') || new _GLTFLoader.GLTFLoader(manager);
loader.parse(gltfBuffer, null, function (model) {
model.batchTable = b3dm.batchTable;
model.featureTable = b3dm.featureTable;
model.scene.batchTable = b3dm.batchTable;
model.scene.featureTable = b3dm.featureTable;
var batchTable = b3dm.batchTable,
featureTable = b3dm.featureTable;
var scene = model.scene;
var rtcCenter = featureTable.getData('RTC_CENTER');

if (rtcCenter) {
scene.position.x += rtcCenter[0];
scene.position.y += rtcCenter[1];
scene.position.z += rtcCenter[2];
}

model.batchTable = batchTable;
model.featureTable = featureTable;
scene.batchTable = batchTable;
scene.featureTable = featureTable;
resolve(model);
}, reject);
});
Expand Down Expand Up @@ -43271,6 +43282,7 @@ function (_TilesRendererBase) {
break;
}

scene.updateMatrix();
scene.matrix.premultiply(cachedTransform);
scene.matrix.decompose(scene.position, scene.quaternion, scene.scale);
scene.traverse(function (c) {
Expand Down Expand Up @@ -45086,7 +45098,7 @@ var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "63111" + '/');
var ws = new WebSocket(protocol + '://' + hostname + ':' + "57896" + '/');

ws.onmessage = function (event) {
checkedAssets = {};
Expand Down
2 changes: 1 addition & 1 deletion example/bundle/i3dmExample.c6cc930a.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/bundle/i3dmExample.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/bundle/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 17 additions & 5 deletions example/bundle/offscreenShadows.ce0529e7.js
Original file line number Diff line number Diff line change
Expand Up @@ -41818,10 +41818,21 @@ function (_B3DMLoaderBase) {
var manager = _this2.manager;
var loader = manager.getHandler('path.gltf') || new _GLTFLoader.GLTFLoader(manager);
loader.parse(gltfBuffer, null, function (model) {
model.batchTable = b3dm.batchTable;
model.featureTable = b3dm.featureTable;
model.scene.batchTable = b3dm.batchTable;
model.scene.featureTable = b3dm.featureTable;
var batchTable = b3dm.batchTable,
featureTable = b3dm.featureTable;
var scene = model.scene;
var rtcCenter = featureTable.getData('RTC_CENTER');

if (rtcCenter) {
scene.position.x += rtcCenter[0];
scene.position.y += rtcCenter[1];
scene.position.z += rtcCenter[2];
}

model.batchTable = batchTable;
model.featureTable = featureTable;
scene.batchTable = batchTable;
scene.featureTable = featureTable;
resolve(model);
}, reject);
});
Expand Down Expand Up @@ -43271,6 +43282,7 @@ function (_TilesRendererBase) {
break;
}

scene.updateMatrix();
scene.matrix.premultiply(cachedTransform);
scene.matrix.decompose(scene.position, scene.quaternion, scene.scale);
scene.traverse(function (c) {
Expand Down Expand Up @@ -48217,7 +48229,7 @@ var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "63111" + '/');
var ws = new WebSocket(protocol + '://' + hostname + ':' + "57896" + '/');

ws.onmessage = function (event) {
checkedAssets = {};
Expand Down
2 changes: 1 addition & 1 deletion example/bundle/offscreenShadows.ce0529e7.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/bundle/offscreenShadows.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 17 additions & 5 deletions example/bundle/pntsExample.1cabf3ff.js
Original file line number Diff line number Diff line change
Expand Up @@ -41818,10 +41818,21 @@ function (_B3DMLoaderBase) {
var manager = _this2.manager;
var loader = manager.getHandler('path.gltf') || new _GLTFLoader.GLTFLoader(manager);
loader.parse(gltfBuffer, null, function (model) {
model.batchTable = b3dm.batchTable;
model.featureTable = b3dm.featureTable;
model.scene.batchTable = b3dm.batchTable;
model.scene.featureTable = b3dm.featureTable;
var batchTable = b3dm.batchTable,
featureTable = b3dm.featureTable;
var scene = model.scene;
var rtcCenter = featureTable.getData('RTC_CENTER');

if (rtcCenter) {
scene.position.x += rtcCenter[0];
scene.position.y += rtcCenter[1];
scene.position.z += rtcCenter[2];
}

model.batchTable = batchTable;
model.featureTable = featureTable;
scene.batchTable = batchTable;
scene.featureTable = featureTable;
resolve(model);
}, reject);
});
Expand Down Expand Up @@ -43271,6 +43282,7 @@ function (_TilesRendererBase) {
break;
}

scene.updateMatrix();
scene.matrix.premultiply(cachedTransform);
scene.matrix.decompose(scene.position, scene.quaternion, scene.scale);
scene.traverse(function (c) {
Expand Down Expand Up @@ -45058,7 +45070,7 @@ var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "63111" + '/');
var ws = new WebSocket(protocol + '://' + hostname + ':' + "57896" + '/');

ws.onmessage = function (event) {
checkedAssets = {};
Expand Down
2 changes: 1 addition & 1 deletion example/bundle/pntsExample.1cabf3ff.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/bundle/pntsExample.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dc01eb7

Please sign in to comment.