|
@@ -5415,6 +5415,7 @@ function (I) {
|
|
,
|
|
,
|
|
j.prototype.clearView = function () {
|
|
j.prototype.clearView = function () {
|
|
for (; this.container.hasChildNodes();)
|
|
for (; this.container.hasChildNodes();)
|
|
|
|
+ // 删除展示过渡时文物模糊图像的canvas
|
|
this.container.removeChild(this.container.childNodes[0])
|
|
this.container.removeChild(this.container.childNodes[0])
|
|
delete this.progressBar,
|
|
delete this.progressBar,
|
|
delete this.thumbnail,
|
|
delete this.thumbnail,
|
|
@@ -5764,23 +5765,31 @@ function (I) {
|
|
j.prototype.signalLoadProgress = function (e, t) {
|
|
j.prototype.signalLoadProgress = function (e, t) {
|
|
if (this.thumbnail) {
|
|
if (this.thumbnail) {
|
|
if (!this.progressBar) {
|
|
if (!this.progressBar) {
|
|
|
|
+ let useDarkTheme = false
|
|
|
|
+ if (
|
|
|
|
+ localStorage.getItem('useDarkTheme') === '1' ||
|
|
|
|
+ (!localStorage.getItem('useDarkTheme') && gConfigInfo.defaultDarkTheme)
|
|
|
|
+ ) {
|
|
|
|
+ useDarkTheme = true
|
|
|
|
+ }
|
|
|
|
+
|
|
var i = document.createElement("div")
|
|
var i = document.createElement("div")
|
|
- i.style.backgroundColor = "rgb(240,240,240)",
|
|
|
|
|
|
+ i.style.backgroundColor = useDarkTheme ? '#000' : "#fff",
|
|
i.style.opacity = .9,
|
|
i.style.opacity = .9,
|
|
i.style.position = "absolute",
|
|
i.style.position = "absolute",
|
|
i.style.zIndex = 999
|
|
i.style.zIndex = 999
|
|
- i.style.left = "20%",
|
|
|
|
- i.style.width = "60%",
|
|
|
|
|
|
+ i.style.left = "7%",
|
|
|
|
+ i.style.width = "86%",
|
|
i.style.bottom = "30%",
|
|
i.style.bottom = "30%",
|
|
- i.style.height = "4px",
|
|
|
|
- i.style["border-radius"] = "2px",
|
|
|
|
|
|
+ i.style.height = "3px",
|
|
|
|
+ i.style["border-radius"] = "1px",
|
|
this.progressBar = document.createElement("div"),
|
|
this.progressBar = document.createElement("div"),
|
|
- this.progressBar.style.backgroundColor = "#00ccff",
|
|
|
|
|
|
+ this.progressBar.style.backgroundColor = useDarkTheme ? '#fff' : "#C5C9C9",
|
|
this.progressBar.style.position = "absolute",
|
|
this.progressBar.style.position = "absolute",
|
|
this.progressBar.style.left = this.progressBar.style.bottom = "0px",
|
|
this.progressBar.style.left = this.progressBar.style.bottom = "0px",
|
|
this.progressBar.style.height = "100%",
|
|
this.progressBar.style.height = "100%",
|
|
this.progressBar.style.width = "0px",
|
|
this.progressBar.style.width = "0px",
|
|
- this.progressBar.style["border-radius"] = "2px",
|
|
|
|
|
|
+ this.progressBar.style["border-radius"] = "1px",
|
|
i.appendChild(this.progressBar),
|
|
i.appendChild(this.progressBar),
|
|
this.container.appendChild(i),
|
|
this.container.appendChild(i),
|
|
this.playButton && (this.container.removeChild(this.playButton),
|
|
this.playButton && (this.container.removeChild(this.playButton),
|
|
@@ -6415,13 +6424,9 @@ function (I) {
|
|
,
|
|
,
|
|
W.prototype.start = function () {
|
|
W.prototype.start = function () {
|
|
console.log('模型加载完成')
|
|
console.log('模型加载完成')
|
|
- setTimeout(() => {
|
|
|
|
- let dom = document.querySelector('.outerImg')
|
|
|
|
- if (dom) {
|
|
|
|
- dom.style.opacity = 0
|
|
|
|
- dom.style.pointerEvents = 'none'
|
|
|
|
- }
|
|
|
|
- }, 500)
|
|
|
|
|
|
+ const myEvent = new CustomEvent('model-loaded')
|
|
|
|
+ document.dispatchEvent(myEvent)
|
|
|
|
+
|
|
this.scene.view.updateView(),
|
|
this.scene.view.updateView(),
|
|
this.ui.showActiveView(),
|
|
this.ui.showActiveView(),
|
|
this.requestFrame(this.update.bind(this)),
|
|
this.requestFrame(this.update.bind(this)),
|