|
@@ -14187,6 +14187,15 @@ window.Modernizr = function(n, e, t) {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ window.flyToFirst = function(){//xzw add
|
|
|
|
+ var pano = w.model.panos.get("8d778e19657f433fb9cf8947d823bb70");
|
|
|
|
+ var q = new _x.Quaternion(0.7099827027821568,-0.07708150183830938,0.6958985789714591,0.07555241737970636);
|
|
|
|
+ var lookAtPoint = new _x.Vector3(0,0,-1).applyQuaternion(q).add(pano.position);
|
|
|
|
+ w.flyToPano({pano:pano, lookAtPoint:lookAtPoint})
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+
|
|
return $.when(e, U.startLoading(P, w, T, V.autoplay, u, N))
|
|
return $.when(e, U.startLoading(P, w, T, V.autoplay, u, N))
|
|
}).then(function() {
|
|
}).then(function() {
|
|
return f(P, U.onProgress, i, !u, a)
|
|
return f(P, U.onProgress, i, !u, a)
|
|
@@ -14492,8 +14501,9 @@ window.Modernizr = function(n, e, t) {
|
|
e("./lib/postprocessing/RenderPass.js"),
|
|
e("./lib/postprocessing/RenderPass.js"),
|
|
e("./lib/postprocessing/MaskPass.js"),
|
|
e("./lib/postprocessing/MaskPass.js"),
|
|
e("./lib/postprocessing/ShaderPass.js"),
|
|
e("./lib/postprocessing/ShaderPass.js"),
|
|
- window.Promise || (window.Promise = e("promise-polyfill"));
|
|
|
|
- var x = e("three")
|
|
|
|
|
|
+ window.Promise || (window.Promise = e("promise-polyfill"));
|
|
|
|
+ var x = e("three")
|
|
|
|
+ , _x = e("three")
|
|
, S = (e("./util/sentry"),
|
|
, S = (e("./util/sentry"),
|
|
e("./player"))
|
|
e("./player"))
|
|
, M = e("./director")
|
|
, M = e("./director")
|
|
@@ -17463,10 +17473,12 @@ window.Modernizr = function(n, e, t) {
|
|
n.prototype.loadLabels = function() {//xzw
|
|
n.prototype.loadLabels = function() {//xzw
|
|
this.labels = new x(this);
|
|
this.labels = new x(this);
|
|
var e = $.Deferred();
|
|
var e = $.Deferred();
|
|
|
|
+ //加载俯视图的标签 注释这个备注就会加载
|
|
|
|
+ window.MP_PREFETCHED_MODELDATA.model.player_options.labels ? this.showingLabels = true : '';
|
|
if (!this.showingLabels)
|
|
if (!this.showingLabels)
|
|
return e.resolve();
|
|
return e.resolve();
|
|
// var t = this.options.urlBase + "/api/v1/jsonstore/model/labels/" + this.sid;
|
|
// var t = this.options.urlBase + "/api/v1/jsonstore/model/labels/" + this.sid;
|
|
- var t = "data/" + this.sid + "/labels.json";
|
|
|
|
|
|
+ var t = g_Prefix + "data/" + this.sid + "/labels.json";
|
|
return this.labels.load(t, !this.isPublic).done(e.resolve.bind(e)).fail(function() {
|
|
return this.labels.load(t, !this.isPublic).done(e.resolve.bind(e)).fail(function() {
|
|
O.warn("Getting labels failed, not displaying labels."),
|
|
O.warn("Getting labels failed, not displaying labels."),
|
|
e.resolve()
|
|
e.resolve()
|
|
@@ -20561,7 +20573,8 @@ window.Modernizr = function(n, e, t) {
|
|
this.bindEvents(e.container),
|
|
this.bindEvents(e.container),
|
|
this.updateModel()
|
|
this.updateModel()
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
//xzw add: 截图
|
|
//xzw add: 截图
|
|
function dataURLtoBlob(dataurl) {
|
|
function dataURLtoBlob(dataurl) {
|
|
var arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1],
|
|
var arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1],
|
|
@@ -22712,6 +22725,7 @@ window.Modernizr = function(n, e, t) {
|
|
this.quickstartCamera.fov = h.clampVFOV(a.insideFOV, a.insideFOVMax, $("#player").width(), $("#player").height()),
|
|
this.quickstartCamera.fov = h.clampVFOV(a.insideFOV, a.insideFOVMax, $("#player").width(), $("#player").height()),
|
|
this.skybox = null
|
|
this.skybox = null
|
|
}
|
|
}
|
|
|
|
+
|
|
var r = e("three")
|
|
var r = e("three")
|
|
, o = e("../util/logger")
|
|
, o = e("../util/logger")
|
|
, a = e("../constants")
|
|
, a = e("../constants")
|