Compare commits
4 Commits
2a4da33e62
...
zh
Author | SHA1 | Date | |
---|---|---|---|
5431efa2c5 | |||
a35b959ec2 | |||
22a05c2c8c | |||
a152b54da7 |
@ -3,7 +3,7 @@ class BaseDialog {
|
|||||||
this.container = container
|
this.container = container
|
||||||
this.options = { ...options }
|
this.options = { ...options }
|
||||||
this.options.ismove = true
|
this.options.ismove = true
|
||||||
if(options.ismove === false) {
|
if (options.ismove === false) {
|
||||||
this.options.ismove = options.ismove
|
this.options.ismove = options.ismove
|
||||||
}
|
}
|
||||||
this.closeCallBack = options.closeCallBack
|
this.closeCallBack = options.closeCallBack
|
||||||
@ -12,7 +12,6 @@ class BaseDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
|
|
||||||
this.closeAll()
|
this.closeAll()
|
||||||
DialogAll.push(this)
|
DialogAll.push(this)
|
||||||
this.isDestroy = false
|
this.isDestroy = false
|
||||||
@ -62,7 +61,7 @@ class BaseDialog {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.options.ismove) {
|
if (this.options.ismove) {
|
||||||
this.moveDiv()
|
this.moveDiv()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -92,7 +91,7 @@ class BaseDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
closeAll() {
|
closeAll() {
|
||||||
for(let i=DialogAll.length-1;i>=0;i--) {
|
for (let i = DialogAll.length - 1; i >= 0; i--) {
|
||||||
DialogAll[i].close()
|
DialogAll[i].close()
|
||||||
DialogAll.splice(i, 1)
|
DialogAll.splice(i, 1)
|
||||||
}
|
}
|
||||||
@ -187,6 +186,14 @@ class BaseDialog {
|
|||||||
_this._element.body.style.bottom = 'unset'
|
_this._element.body.style.bottom = 'unset'
|
||||||
_this._element.body.style.right = 'unset'
|
_this._element.body.style.right = 'unset'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//鼠标抬起事件
|
||||||
|
document.onmouseup = function (e) {
|
||||||
|
window.onmousemove = null
|
||||||
|
}
|
||||||
|
window.ondragend = function (e) {
|
||||||
|
window.onmousemove = null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//鼠标抬起事件
|
//鼠标抬起事件
|
||||||
|
@ -98,7 +98,7 @@ export default class MouseEvent {
|
|||||||
}, Cesium.ScreenSpaceEventType.WHEEL)
|
}, Cesium.ScreenSpaceEventType.WHEEL)
|
||||||
}
|
}
|
||||||
|
|
||||||
getcartesian(movement) {
|
getcartesian(movement) {
|
||||||
// if (movement.endPosition) {
|
// if (movement.endPosition) {
|
||||||
// movement.endPosition.y -= 2
|
// movement.endPosition.y -= 2
|
||||||
// }
|
// }
|
||||||
@ -125,9 +125,6 @@ getcartesian(movement) {
|
|||||||
cartesian = this.viewer.scene.globe.pick(ray, this.viewer.scene);
|
cartesian = this.viewer.scene.globe.pick(ray, this.viewer.scene);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// console.log(cartesian)
|
|
||||||
// const updatedPositions = await Cesium.sampleTerrainMostDetailed(this.sdk.viewer.terrainProvider, Cesium.Cartographic.fromCartesian(cartesian, this.viewer.scene.globe.ellipsoid));
|
|
||||||
// console.log(updatedPositions)
|
|
||||||
return cartesian
|
return cartesian
|
||||||
// return this.earth.czm.viewer.scene.pickPosition(position)
|
// return this.earth.czm.viewer.scene.pickPosition(position)
|
||||||
}
|
}
|
||||||
|
@ -557,5 +557,12 @@ function setActiveViewer(v) {
|
|||||||
activeViewer = v
|
activeViewer = v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getSdk() {
|
||||||
|
return {
|
||||||
|
sdkP: sdk3D,
|
||||||
|
sdkD: sdk2D
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export { on, off, syncData, syncEntities, syncDataSources, syncPrimitives, get2DView, get3DView, setActiveViewer }
|
|
||||||
|
export { on, off, syncData, syncEntities, syncDataSources, syncPrimitives, get2DView, get3DView, setActiveViewer, getSdk }
|
@ -64,15 +64,16 @@ import { open as mapxOpen, close as mapxClose } from '../Global/MapX'
|
|||||||
import {
|
import {
|
||||||
on as multiViewportModeOn,
|
on as multiViewportModeOn,
|
||||||
off as multiViewportModeOff,
|
off as multiViewportModeOff,
|
||||||
get2DView
|
get2DView,
|
||||||
|
getSdk as getSdk2
|
||||||
} from '../Global/MultiViewportMode'
|
} from '../Global/MultiViewportMode'
|
||||||
import { MouseCoordinate } from '../Global/MouseCoordinate'
|
import { MouseCoordinate } from '../Global/MouseCoordinate'
|
||||||
import { MouseRightMenu } from '../Global/mouseRightMenu'
|
import { MouseRightMenu } from '../Global/mouseRightMenu'
|
||||||
import { dialog as ContourDialog } from '../Global/Contour'
|
import { dialog as ContourDialog } from '../Global/Contour'
|
||||||
import { on as SplitScreenOn, off as SplitScreenOff, setActiveId as SplitScreenSetActiveId } from '../Global/SplitScreen'
|
import { on as SplitScreenOn, off as SplitScreenOff, setActiveId as SplitScreenSetActiveId ,getSdk } from '../Global/SplitScreen'
|
||||||
import LocateCurrent from '../Obj/Base/LocateCurrent'
|
import LocateCurrent from '../Obj/Base/LocateCurrent'
|
||||||
|
|
||||||
import { Clear as AnalysisClear } from '../Obj/Analysis/clear'
|
import { AnalysisClear, SectionClear } from '../Obj/Analysis/clear'
|
||||||
import CutFillAnalysis from '../Obj/Analysis/CutFill'
|
import CutFillAnalysis from '../Obj/Analysis/CutFill'
|
||||||
import Submerge from '../Obj/Analysis/Submerge'
|
import Submerge from '../Obj/Analysis/Submerge'
|
||||||
import ViewShed from '../Obj/Analysis/ViewShed'
|
import ViewShed from '../Obj/Analysis/ViewShed'
|
||||||
@ -299,7 +300,8 @@ if (!window.YJ) {
|
|||||||
multiViewportMode: {
|
multiViewportMode: {
|
||||||
on: multiViewportModeOn,
|
on: multiViewportModeOn,
|
||||||
off: multiViewportModeOff,
|
off: multiViewportModeOff,
|
||||||
get2DView
|
get2DView,
|
||||||
|
getSdk:getSdk2
|
||||||
},
|
},
|
||||||
MouseCoordinate,
|
MouseCoordinate,
|
||||||
MouseRightMenu,
|
MouseRightMenu,
|
||||||
@ -331,7 +333,8 @@ if (!window.YJ) {
|
|||||||
splitScreen: {
|
splitScreen: {
|
||||||
on: SplitScreenOn,
|
on: SplitScreenOn,
|
||||||
off: SplitScreenOff,
|
off: SplitScreenOff,
|
||||||
setActiveId: SplitScreenSetActiveId
|
setActiveId: SplitScreenSetActiveId,
|
||||||
|
getSdk
|
||||||
},
|
},
|
||||||
Contour: ContourDialog
|
Contour: ContourDialog
|
||||||
}, //测量
|
}, //测量
|
||||||
@ -384,7 +387,9 @@ if (!window.YJ) {
|
|||||||
Section,
|
Section,
|
||||||
TerrainExcavation,
|
TerrainExcavation,
|
||||||
Flat,
|
Flat,
|
||||||
Analyses: []
|
AnalysesResults: [],
|
||||||
|
SectionResults: [],
|
||||||
|
ClearSection: SectionClear
|
||||||
},
|
},
|
||||||
CoordTransform,
|
CoordTransform,
|
||||||
RoutePlanningArrays: [],
|
RoutePlanningArrays: [],
|
||||||
|
@ -35,7 +35,7 @@ class CircleViewShed extends Tools {
|
|||||||
this.Dialog = _Dialog
|
this.Dialog = _Dialog
|
||||||
this._EventBinding = new EventBinding()
|
this._EventBinding = new EventBinding()
|
||||||
this.html = null
|
this.html = null
|
||||||
YJ.Analysis.Analyses.push(this)
|
YJ.Analysis.AnalysesResults.push(this)
|
||||||
CircleViewShed.edit(this)
|
CircleViewShed.edit(this)
|
||||||
// CircleViewShed.create(this)
|
// CircleViewShed.create(this)
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ class ContourAnalysis {
|
|||||||
"#2F0000",
|
"#2F0000",
|
||||||
]; //等高线赋值颜色,内含default值
|
]; //等高线赋值颜色,内含default值
|
||||||
this.countorLineList = Cesium.defaultValue(options.countorLineList, []);
|
this.countorLineList = Cesium.defaultValue(options.countorLineList, []);
|
||||||
YJ.Analysis.Analyses.push(this)
|
YJ.Analysis.AnalysesResults.push(this)
|
||||||
this.createNewLine();
|
this.createNewLine();
|
||||||
}
|
}
|
||||||
createNewLine() {
|
createNewLine() {
|
||||||
|
@ -27,7 +27,7 @@ class CutFillAnalysis {
|
|||||||
}
|
}
|
||||||
this.entities = []
|
this.entities = []
|
||||||
this.Draw = new DrawPolygon(this.sdk)
|
this.Draw = new DrawPolygon(this.sdk)
|
||||||
YJ.Analysis.Analyses.push(this)
|
YJ.Analysis.AnalysesResults.push(this)
|
||||||
CutFillAnalysis.EditBox(this)
|
CutFillAnalysis.EditBox(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ class Profile extends Draw {
|
|||||||
super(sdk)
|
super(sdk)
|
||||||
this.viewer = sdk.viewer;
|
this.viewer = sdk.viewer;
|
||||||
this.Dialog = _Dialog
|
this.Dialog = _Dialog
|
||||||
YJ.Analysis.Analyses.push(this)
|
YJ.Analysis.AnalysesResults.push(this)
|
||||||
Profile.create(this)
|
Profile.create(this)
|
||||||
}
|
}
|
||||||
static create(that) {
|
static create(that) {
|
||||||
|
@ -15,7 +15,7 @@ class Section extends Tools {
|
|||||||
this.tiles3d = tiles3d
|
this.tiles3d = tiles3d
|
||||||
this.options = { ...options }
|
this.options = { ...options }
|
||||||
this.options.regionsType = this.options.regionsType || false
|
this.options.regionsType = this.options.regionsType || false
|
||||||
// YJ.Analysis.Analyses.push(this)
|
YJ.Analysis.SectionResults.push(this)
|
||||||
this.Planes = []
|
this.Planes = []
|
||||||
Section.start(this)
|
Section.start(this)
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ class SlopeAspect extends Tools {
|
|||||||
this.result = []; //存储创建的坡度分析结果,primitive集合
|
this.result = []; //存储创建的坡度分析结果,primitive集合
|
||||||
this.handler = undefined;
|
this.handler = undefined;
|
||||||
this.toolTip = "";
|
this.toolTip = "";
|
||||||
YJ.Analysis.Analyses.push(this)
|
YJ.Analysis.AnalysesResults.push(this)
|
||||||
this.Draw = new DrawPolygon(this.sdk)
|
this.Draw = new DrawPolygon(this.sdk)
|
||||||
// this.createNew4Distance()
|
// this.createNew4Distance()
|
||||||
this.createNew4Num(50)
|
this.createNew4Num(50)
|
||||||
|
@ -26,7 +26,7 @@ class Submerge extends Tools {
|
|||||||
this.status = true
|
this.status = true
|
||||||
this.area = 0
|
this.area = 0
|
||||||
this._elms = {};
|
this._elms = {};
|
||||||
YJ.Analysis.Analyses.push(this)
|
YJ.Analysis.AnalysesResults.push(this)
|
||||||
Submerge.EditBox(this)
|
Submerge.EditBox(this)
|
||||||
// Submerge.create(this)
|
// Submerge.create(this)
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ class ViewShedStage extends Tools {
|
|||||||
this.Dialog = _Dialog
|
this.Dialog = _Dialog
|
||||||
this._EventBinding = new EventBinding()
|
this._EventBinding = new EventBinding()
|
||||||
this.html = null
|
this.html = null
|
||||||
YJ.Analysis.Analyses.push(this)
|
YJ.Analysis.AnalysesResults.push(this)
|
||||||
ViewShedStage.edit(this)
|
ViewShedStage.edit(this)
|
||||||
// ViewShedStage.edit(this)
|
// ViewShedStage.edit(this)
|
||||||
// this.update();
|
// this.update();
|
||||||
|
@ -50,7 +50,7 @@ class ViewShedStage extends Tools {
|
|||||||
this.ids = []
|
this.ids = []
|
||||||
this.Dialog = _Dialog
|
this.Dialog = _Dialog
|
||||||
this.html = null
|
this.html = null
|
||||||
YJ.Analysis.Analyses.push(this)
|
YJ.Analysis.AnalysesResults.push(this)
|
||||||
ViewShedStage.create(this)
|
ViewShedStage.create(this)
|
||||||
// ViewShedStage.edit(this)
|
// ViewShedStage.edit(this)
|
||||||
// this.update();
|
// this.update();
|
||||||
|
@ -38,7 +38,7 @@ class ViewShedStage extends Tools {
|
|||||||
this.viewpointPrimitive = null
|
this.viewpointPrimitive = null
|
||||||
this.Dialog = _Dialog
|
this.Dialog = _Dialog
|
||||||
this.html = null
|
this.html = null
|
||||||
YJ.Analysis.Analyses.push(this)
|
YJ.Analysis.AnalysesResults.push(this)
|
||||||
ViewShedStage.create(this)
|
ViewShedStage.create(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ class VisibilityAnalysis extends Tools {
|
|||||||
this.viewPointHeight = options.viewPointHeight
|
this.viewPointHeight = options.viewPointHeight
|
||||||
this.Dialog = _Dialog
|
this.Dialog = _Dialog
|
||||||
this._EventBinding = new EventBinding()
|
this._EventBinding = new EventBinding()
|
||||||
YJ.Analysis.Analyses.push(this)
|
YJ.Analysis.AnalysesResults.push(this)
|
||||||
VisibilityAnalysis.edit(this)
|
VisibilityAnalysis.edit(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
function Clear() {
|
function AnalysisClear() {
|
||||||
YJ.Analysis.Analyses.forEach(m => {
|
YJ.Analysis.AnalysesResults.forEach(m => {
|
||||||
m.destroy()
|
m.destroy()
|
||||||
})
|
})
|
||||||
// YJ.Analysis.Analyses = []
|
// YJ.Analysis.AnalysesResults = []
|
||||||
}
|
}
|
||||||
|
|
||||||
export {Clear}
|
function SectionClear() {
|
||||||
|
YJ.Analysis.SectionResults.forEach(m => {
|
||||||
|
m.destroy()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export {AnalysisClear, SectionClear}
|
@ -50,7 +50,7 @@ class Test extends Tools {
|
|||||||
this.ids = []
|
this.ids = []
|
||||||
this.Dialog = _Dialog
|
this.Dialog = _Dialog
|
||||||
this.html = null
|
this.html = null
|
||||||
YJ.Analysis.Analyses.push(this)
|
YJ.Analysis.AnalysesResults.push(this)
|
||||||
Test.create(this)
|
Test.create(this)
|
||||||
// Test.edit(this)
|
// Test.edit(this)
|
||||||
// this.update();
|
// this.update();
|
||||||
|
@ -1315,7 +1315,7 @@ class PolygonObject extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1328,7 +1328,7 @@ class PolygonObject extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1337,7 +1337,7 @@ class PolygonObject extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1350,7 +1350,7 @@ class PolygonObject extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -1537,7 +1537,7 @@ class AssembleObject extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0] && this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0] && this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1550,7 +1550,7 @@ class AssembleObject extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1559,7 +1559,7 @@ class AssembleObject extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1572,7 +1572,7 @@ class AssembleObject extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -1559,7 +1559,7 @@ class AttackArrowObject extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0] && this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0] && this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1572,7 +1572,7 @@ class AttackArrowObject extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1581,7 +1581,7 @@ class AttackArrowObject extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1594,7 +1594,7 @@ class AttackArrowObject extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -16,7 +16,7 @@ class BaseModel extends BaseSource {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -29,7 +29,7 @@ class BaseModel extends BaseSource {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -38,7 +38,7 @@ class BaseModel extends BaseSource {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -51,7 +51,7 @@ class BaseModel extends BaseSource {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -231,7 +231,20 @@ class BillboardObject extends Base {
|
|||||||
that._superGif = superGif
|
that._superGif = superGif
|
||||||
that._superGif.id = id // 自定义id,用于判断gif实例是否改变
|
that._superGif.id = id // 自定义id,用于判断gif实例是否改变
|
||||||
|
|
||||||
superGif.load(function () {
|
superGif.load(function (status) {
|
||||||
|
if (status == 404) {
|
||||||
|
canvas = document.createElement('canvas')
|
||||||
|
canvas.width = 0
|
||||||
|
canvas.height = 0
|
||||||
|
billboardH = 0
|
||||||
|
if (that.entity) {
|
||||||
|
that.entity.billboard.imgWidth = 0
|
||||||
|
that.entity.billboard.imgHeight = 0
|
||||||
|
that.entity.billboard.image = canvas
|
||||||
|
addCluster(that.sdk, that.entity)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
if (that._superGif.id != id) {
|
if (that._superGif.id != id) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -286,6 +299,17 @@ class BillboardObject extends Base {
|
|||||||
addCluster(that.sdk, that.entity)
|
addCluster(that.sdk, that.entity)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
image.onerror = function (err) {
|
||||||
|
canvas.width = 0
|
||||||
|
canvas.height = 0
|
||||||
|
billboardH = 0
|
||||||
|
if (that.entity) {
|
||||||
|
that.entity.billboard.imgWidth = 0
|
||||||
|
that.entity.billboard.imgHeight = 0
|
||||||
|
that.entity.billboard.image = canvas
|
||||||
|
addCluster(that.sdk, that.entity)
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
that.entity = new Cesium.Entity({
|
that.entity = new Cesium.Entity({
|
||||||
@ -729,7 +753,24 @@ class BillboardObject extends Base {
|
|||||||
let billboardH = 36
|
let billboardH = 36
|
||||||
let index = 0
|
let index = 0
|
||||||
_this._frameImages = []
|
_this._frameImages = []
|
||||||
superGif.load(function () {
|
superGif.load(function (status) {
|
||||||
|
if (status == 404) {
|
||||||
|
canvas = document.createElement('canvas')
|
||||||
|
canvas.width = 0
|
||||||
|
canvas.height = 0
|
||||||
|
billboardH = 0
|
||||||
|
_this.entity.billboard.imgWidth = 0
|
||||||
|
_this.entity.billboard.imgHeight = 0
|
||||||
|
_this.entity && (_this.entity.billboard.image = canvas)
|
||||||
|
_this.entity.billboard.height = new Cesium.CallbackProperty(function () {
|
||||||
|
return 0
|
||||||
|
}, false)
|
||||||
|
_this.entity.label.pixelOffset = new Cesium.CallbackProperty(function () {
|
||||||
|
return new Cesium.Cartesian2(0, 0)
|
||||||
|
}, false)
|
||||||
|
billboardH = height * (31 / width)
|
||||||
|
return
|
||||||
|
}
|
||||||
if (_this._superGif.id != id) {
|
if (_this._superGif.id != id) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -802,6 +843,21 @@ class BillboardObject extends Base {
|
|||||||
}, false)
|
}, false)
|
||||||
billboardH = height * (31 / width)
|
billboardH = height * (31 / width)
|
||||||
}
|
}
|
||||||
|
image.onerror = function (err) {
|
||||||
|
canvas.width = 0
|
||||||
|
canvas.height = 0
|
||||||
|
billboardH = 0
|
||||||
|
_this.entity.billboard.imgWidth = 0
|
||||||
|
_this.entity.billboard.imgHeight = 0
|
||||||
|
_this.entity && (_this.entity.billboard.image = canvas)
|
||||||
|
_this.entity.billboard.height = new Cesium.CallbackProperty(function () {
|
||||||
|
return 0
|
||||||
|
}, false)
|
||||||
|
_this.entity.label.pixelOffset = new Cesium.CallbackProperty(function () {
|
||||||
|
return new Cesium.Cartesian2(0, 0)
|
||||||
|
}, false)
|
||||||
|
billboardH = height * (31 / width)
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2077,9 +2133,9 @@ class BillboardObject extends Base {
|
|||||||
// )
|
// )
|
||||||
this.entity.label.pixelOffset = new Cesium.CallbackProperty(function () {
|
this.entity.label.pixelOffset = new Cesium.CallbackProperty(function () {
|
||||||
if (_this.options.billboard.show) {
|
if (_this.options.billboard.show) {
|
||||||
let billboardH =
|
let billboardH = _this.entity.billboard.imgHeight ?
|
||||||
_this.entity.billboard.imgHeight *
|
_this.entity.billboard.imgHeight *
|
||||||
(31 / _this.entity.billboard.imgWidth)
|
(31 / _this.entity.billboard.imgWidth) : 0
|
||||||
return new Cesium.Cartesian2(
|
return new Cesium.Cartesian2(
|
||||||
0,
|
0,
|
||||||
-billboardH * _this.options.billboard.scale -
|
-billboardH * _this.options.billboard.scale -
|
||||||
@ -2196,7 +2252,7 @@ class BillboardObject extends Base {
|
|||||||
.value
|
.value
|
||||||
) {
|
) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName(
|
url: this._DialogObject._element.content.getElementsByClassName(
|
||||||
'link_add'
|
'link_add'
|
||||||
)[0].value
|
)[0].value
|
||||||
@ -2212,7 +2268,7 @@ class BillboardObject extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -2224,7 +2280,7 @@ class BillboardObject extends Base {
|
|||||||
.value
|
.value
|
||||||
) {
|
) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName(
|
url: this._DialogObject._element.content.getElementsByClassName(
|
||||||
'vr_add'
|
'vr_add'
|
||||||
)[0].value
|
)[0].value
|
||||||
@ -2240,7 +2296,7 @@ class BillboardObject extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图',
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -1503,7 +1503,7 @@ class CircleDiffuse extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1516,7 +1516,7 @@ class CircleDiffuse extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1525,7 +1525,7 @@ class CircleDiffuse extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1538,7 +1538,7 @@ class CircleDiffuse extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -1517,7 +1517,7 @@ class CircleObject extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1530,7 +1530,7 @@ class CircleObject extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1539,7 +1539,7 @@ class CircleObject extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1552,7 +1552,7 @@ class CircleObject extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -1994,7 +1994,7 @@ class CurvelineObject extends Base {
|
|||||||
.value
|
.value
|
||||||
) {
|
) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName(
|
url: this._DialogObject._element.content.getElementsByClassName(
|
||||||
'link_add'
|
'link_add'
|
||||||
)[0].value
|
)[0].value
|
||||||
@ -2012,7 +2012,7 @@ class CurvelineObject extends Base {
|
|||||||
// input.addEventListener('change', (event) => {
|
// input.addEventListener('change', (event) => {
|
||||||
// if (input.value) {
|
// if (input.value) {
|
||||||
// this.options.attribute.link.content.push({
|
// this.options.attribute.link.content.push({
|
||||||
// name: this.getDateTimeString(),
|
// name: '链接',
|
||||||
// url: input.value
|
// url: input.value
|
||||||
// })
|
// })
|
||||||
// this.attributeLink = this.options.attribute.link.content
|
// this.attributeLink = this.options.attribute.link.content
|
||||||
@ -2022,7 +2022,7 @@ class CurvelineObject extends Base {
|
|||||||
}
|
}
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -2035,7 +2035,7 @@ class CurvelineObject extends Base {
|
|||||||
)[0].value
|
)[0].value
|
||||||
) {
|
) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName(
|
url: this._DialogObject._element.content.getElementsByClassName(
|
||||||
'vr_add'
|
'vr_add'
|
||||||
)[0].value
|
)[0].value
|
||||||
@ -2051,7 +2051,7 @@ class CurvelineObject extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -1527,7 +1527,7 @@ class EllipseObject extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1540,7 +1540,7 @@ class EllipseObject extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1549,7 +1549,7 @@ class EllipseObject extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1562,7 +1562,7 @@ class EllipseObject extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -2012,7 +2012,7 @@ class GroundSvg extends Base {
|
|||||||
.value
|
.value
|
||||||
) {
|
) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName(
|
url: this._DialogObject._element.content.getElementsByClassName(
|
||||||
'link_add'
|
'link_add'
|
||||||
)[0].value
|
)[0].value
|
||||||
@ -2028,7 +2028,7 @@ class GroundSvg extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
|
@ -1569,7 +1569,7 @@ class PincerArrowObject extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1582,7 +1582,7 @@ class PincerArrowObject extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1591,7 +1591,7 @@ class PincerArrowObject extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1604,7 +1604,7 @@ class PincerArrowObject extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -1809,7 +1809,7 @@ class PolygonObject extends Base {
|
|||||||
.value
|
.value
|
||||||
) {
|
) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName(
|
url: this._DialogObject._element.content.getElementsByClassName(
|
||||||
'link_add'
|
'link_add'
|
||||||
)[0].value
|
)[0].value
|
||||||
@ -1825,7 +1825,7 @@ class PolygonObject extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1838,7 +1838,7 @@ class PolygonObject extends Base {
|
|||||||
)[0].value
|
)[0].value
|
||||||
) {
|
) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName(
|
url: this._DialogObject._element.content.getElementsByClassName(
|
||||||
'vr_add'
|
'vr_add'
|
||||||
)[0].value
|
)[0].value
|
||||||
@ -1854,7 +1854,7 @@ class PolygonObject extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -1367,7 +1367,7 @@ class PolyhedronObject extends Base {
|
|||||||
_addLink() {
|
_addLink() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1380,7 +1380,7 @@ class PolyhedronObject extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1389,7 +1389,7 @@ class PolyhedronObject extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1402,7 +1402,7 @@ class PolyhedronObject extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -1098,7 +1098,7 @@ class PolyhedronObject extends Base {
|
|||||||
_addLink() {
|
_addLink() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1111,7 +1111,7 @@ class PolyhedronObject extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
|
@ -2039,7 +2039,7 @@ class PolylineObject extends Base {
|
|||||||
.value
|
.value
|
||||||
) {
|
) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName(
|
url: this._DialogObject._element.content.getElementsByClassName(
|
||||||
'link_add'
|
'link_add'
|
||||||
)[0].value
|
)[0].value
|
||||||
@ -2057,7 +2057,7 @@ class PolylineObject extends Base {
|
|||||||
// input.addEventListener('change', (event) => {
|
// input.addEventListener('change', (event) => {
|
||||||
// if (input.value) {
|
// if (input.value) {
|
||||||
// this.options.attribute.link.content.push({
|
// this.options.attribute.link.content.push({
|
||||||
// name: this.getDateTimeString(),
|
// name: '链接',
|
||||||
// url: input.value
|
// url: input.value
|
||||||
// })
|
// })
|
||||||
// this.attributeLink = this.options.attribute.link.content
|
// this.attributeLink = this.options.attribute.link.content
|
||||||
@ -2067,7 +2067,7 @@ class PolylineObject extends Base {
|
|||||||
}
|
}
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -2080,7 +2080,7 @@ class PolylineObject extends Base {
|
|||||||
)[0].value
|
)[0].value
|
||||||
) {
|
) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName(
|
url: this._DialogObject._element.content.getElementsByClassName(
|
||||||
'vr_add'
|
'vr_add'
|
||||||
)[0].value
|
)[0].value
|
||||||
@ -2096,7 +2096,7 @@ class PolylineObject extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -1435,7 +1435,7 @@ class RadarScan extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1448,7 +1448,7 @@ class RadarScan extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1457,7 +1457,7 @@ class RadarScan extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1470,7 +1470,7 @@ class RadarScan extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -1389,7 +1389,7 @@ class RadarScanStereoscopic extends Base {
|
|||||||
_addLink() {
|
_addLink() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1402,7 +1402,7 @@ class RadarScanStereoscopic extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1411,7 +1411,7 @@ class RadarScanStereoscopic extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1424,7 +1424,7 @@ class RadarScanStereoscopic extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -1538,7 +1538,7 @@ class SectorObject extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1551,7 +1551,7 @@ class SectorObject extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1560,7 +1560,7 @@ class SectorObject extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1573,7 +1573,7 @@ class SectorObject extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -832,7 +832,7 @@ class Shp extends Base {
|
|||||||
linkAddBtnElm.addEventListener('click', async () => {
|
linkAddBtnElm.addEventListener('click', async () => {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this._DialogObject.attribute.link.content.push({
|
this._DialogObject.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -910,7 +910,7 @@ class Shp extends Base {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this._DialogObject.attribute.link.content.push({
|
this._DialogObject.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.setAttributeLinkById(nodeId, this._DialogObject.attribute.link.content)
|
this.setAttributeLinkById(nodeId, this._DialogObject.attribute.link.content)
|
||||||
|
@ -780,7 +780,7 @@ class Shp extends Base {
|
|||||||
linkAddBtnElm.addEventListener('click', async () => {
|
linkAddBtnElm.addEventListener('click', async () => {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this._DialogObject.attribute.link.content.push({
|
this._DialogObject.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -858,7 +858,7 @@ class Shp extends Base {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this._DialogObject.attribute.link.content.push({
|
this._DialogObject.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.setAttributeLinkById(nodeId, this._DialogObject.attribute.link.content)
|
this.setAttributeLinkById(nodeId, this._DialogObject.attribute.link.content)
|
||||||
|
@ -1552,7 +1552,7 @@ class StraightArrowObject extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0] && this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0] && this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1565,7 +1565,7 @@ class StraightArrowObject extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1574,7 +1574,7 @@ class StraightArrowObject extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1587,7 +1587,7 @@ class StraightArrowObject extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -1039,7 +1039,7 @@ class Vector extends Base {
|
|||||||
)[0].value
|
)[0].value
|
||||||
) {
|
) {
|
||||||
this._DialogObject.attribute.link.content.push({
|
this._DialogObject.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName(
|
url: this._DialogObject._element.content.getElementsByClassName(
|
||||||
'link_add'
|
'link_add'
|
||||||
)[0].value
|
)[0].value
|
||||||
@ -1134,7 +1134,7 @@ class Vector extends Base {
|
|||||||
[i + 1].getElementsByClassName('file-select')[0].value = link
|
[i + 1].getElementsByClassName('file-select')[0].value = link
|
||||||
} else {
|
} else {
|
||||||
this._DialogObject.attribute.link.content.push({
|
this._DialogObject.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.setAttributeLinkById(
|
this.setAttributeLinkById(
|
||||||
|
@ -1638,7 +1638,7 @@ class WallRealStereoscopic extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1651,7 +1651,7 @@ class WallRealStereoscopic extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1660,7 +1660,7 @@ class WallRealStereoscopic extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1673,7 +1673,7 @@ class WallRealStereoscopic extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -802,7 +802,7 @@ class WallStereoscopic extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -815,7 +815,7 @@ class WallStereoscopic extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
|
@ -1520,7 +1520,7 @@ class WallRealStereoscopic extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1533,7 +1533,7 @@ class WallRealStereoscopic extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1542,7 +1542,7 @@ class WallRealStereoscopic extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1555,7 +1555,7 @@ class WallRealStereoscopic extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -802,7 +802,7 @@ class WallStereoscopic extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -815,7 +815,7 @@ class WallStereoscopic extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
|
@ -1123,7 +1123,7 @@ class WallStereoscopic extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1136,7 +1136,7 @@ class WallStereoscopic extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1145,7 +1145,7 @@ class WallStereoscopic extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1158,7 +1158,7 @@ class WallStereoscopic extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -808,7 +808,7 @@ class WallStereoscopic extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -821,7 +821,7 @@ class WallStereoscopic extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
|
@ -1044,7 +1044,7 @@ class WallStereoscopic2 extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -1057,7 +1057,7 @@ class WallStereoscopic2 extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
@ -1066,7 +1066,7 @@ class WallStereoscopic2 extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1079,7 +1079,7 @@ class WallStereoscopic2 extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' + (this.options.attribute.vr.content.length + 1),
|
name: '全景图' ,
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
|
@ -802,7 +802,7 @@ class WallStereoscopic extends Base {
|
|||||||
// document.getElementsByClassName
|
// document.getElementsByClassName
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('link_add')[0].value) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('link_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('link_add')[0].value = ''
|
||||||
@ -815,7 +815,7 @@ class WallStereoscopic extends Base {
|
|||||||
|
|
||||||
addAttributeLink(link) {
|
addAttributeLink(link) {
|
||||||
this.options.attribute.link.content.push({
|
this.options.attribute.link.content.push({
|
||||||
name: this.getDateTimeString(),
|
name: '链接',
|
||||||
url: link
|
url: link
|
||||||
})
|
})
|
||||||
this.attributeLink = this.options.attribute.link.content
|
this.attributeLink = this.options.attribute.link.content
|
||||||
|
8
static/3rdparty/libgif.js
vendored
8
static/3rdparty/libgif.js
vendored
@ -926,8 +926,14 @@
|
|||||||
get_current_frame: function() { return player.current_frame() },
|
get_current_frame: function() { return player.current_frame() },
|
||||||
load_url: function(src,callback){
|
load_url: function(src,callback){
|
||||||
if (!load_setup(callback)) return;
|
if (!load_setup(callback)) return;
|
||||||
|
|
||||||
var h = new XMLHttpRequest();
|
var h = new XMLHttpRequest();
|
||||||
|
h.onreadystatechange = function() {
|
||||||
|
if (h.readyState == 4) {
|
||||||
|
if (h.status == 404) {
|
||||||
|
callback(404)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
// new browsers (XMLHttpRequest2-compliant)
|
// new browsers (XMLHttpRequest2-compliant)
|
||||||
h.open('GET', src, true);
|
h.open('GET', src, true);
|
||||||
|
|
||||||
|
@ -1599,6 +1599,10 @@
|
|||||||
width: 23px;
|
width: 23px;
|
||||||
height: 26px;
|
height: 26px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
border: 1px solid rgba(var(--color-sdk-base-rgb), 0.2);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.YJ-custom-base-dialog.billboard-object>.content div .image {
|
.YJ-custom-base-dialog.billboard-object>.content div .image {
|
||||||
|
Reference in New Issue
Block a user