Compare commits
3 Commits
040049236d
...
c03cd63532
Author | SHA1 | Date | |
---|---|---|---|
c03cd63532 | |||
1b712424d8 | |||
51f7ef9864 |
@ -98,6 +98,7 @@ export default class Sunshine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (state) {
|
if (state) {
|
||||||
|
let _this = this
|
||||||
this._DialogObject = await new Dialog(this.sdk, this.originalOptions, {
|
this._DialogObject = await new Dialog(this.sdk, this.originalOptions, {
|
||||||
title: '光照属性', left: '180px', top: '100px',
|
title: '光照属性', left: '180px', top: '100px',
|
||||||
confirmCallBack: (options) => {
|
confirmCallBack: (options) => {
|
||||||
@ -106,6 +107,7 @@ export default class Sunshine {
|
|||||||
this.Dialog.confirmCallBack && this.Dialog.confirmCallBack(this.originalOptions)
|
this.Dialog.confirmCallBack && this.Dialog.confirmCallBack(this.originalOptions)
|
||||||
syncData(this.sdk, this.options.id)
|
syncData(this.sdk, this.options.id)
|
||||||
syncSplitData(this.sdk, this.options.id)
|
syncSplitData(this.sdk, this.options.id)
|
||||||
|
this.remove()
|
||||||
},
|
},
|
||||||
resetCallBack: () => {
|
resetCallBack: () => {
|
||||||
this.reset()
|
this.reset()
|
||||||
@ -116,6 +118,7 @@ export default class Sunshine {
|
|||||||
// },
|
// },
|
||||||
closeCallBack: () => {
|
closeCallBack: () => {
|
||||||
this.reset()
|
this.reset()
|
||||||
|
_this.remove()
|
||||||
// this.entity.style = new Cesium.Cesium3DTileStyle({
|
// this.entity.style = new Cesium.Cesium3DTileStyle({
|
||||||
// color: "color('rgba(255,255,255," + this.newData.transparency + ")')",
|
// color: "color('rgba(255,255,255," + this.newData.transparency + ")')",
|
||||||
// show: true,
|
// show: true,
|
||||||
|
@ -40,6 +40,7 @@ class FlowLine extends Base {
|
|||||||
this.options.duration = options.duration || 10.0
|
this.options.duration = options.duration || 10.0
|
||||||
this.options.color = options.color || "rgba(255,255,255,1)"
|
this.options.color = options.color || "rgba(255,255,255,1)"
|
||||||
this.options.lineBackAlpha = options.lineBackAlpha || 0.05
|
this.options.lineBackAlpha = options.lineBackAlpha || 0.05
|
||||||
|
this.options.positions = options.positions || []
|
||||||
this.options.show = (options.show || options.show === false) ? options.show : true
|
this.options.show = (options.show || options.show === false) ? options.show : true
|
||||||
this.Dialog = _Dialog
|
this.Dialog = _Dialog
|
||||||
this._EventBinding = new EventBinding()
|
this._EventBinding = new EventBinding()
|
||||||
@ -47,7 +48,8 @@ class FlowLine extends Base {
|
|||||||
this.positionArea = []
|
this.positionArea = []
|
||||||
this.positions = []
|
this.positions = []
|
||||||
this.sdk.addIncetance(this.options.id, this)
|
this.sdk.addIncetance(this.options.id, this)
|
||||||
FlowLine.create(this)
|
// FlowLine.create(this)
|
||||||
|
FlowLine.drawLine(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 创建水面
|
// 创建水面
|
||||||
@ -68,6 +70,13 @@ class FlowLine extends Base {
|
|||||||
that.edit(true)
|
that.edit(true)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
static drawLine(that) {
|
||||||
|
that.positionArea = that.options.positions
|
||||||
|
let posis = that.getRandomPointsInCesiumPolygon(that.options.positions, that.options.pointNumber)
|
||||||
|
that.positions = posis
|
||||||
|
that.getLine(that, posis)
|
||||||
|
// that.edit(true)
|
||||||
|
}
|
||||||
getRandomPointsInCesiumPolygon(positions, count) {
|
getRandomPointsInCesiumPolygon(positions, count) {
|
||||||
let lons = [], lats = [], posi = []
|
let lons = [], lats = [], posi = []
|
||||||
positions.forEach(item => {
|
positions.forEach(item => {
|
||||||
|
@ -58,8 +58,8 @@ class PolylineObject extends Base {
|
|||||||
this.options.smooth = options.smooth || false
|
this.options.smooth = options.smooth || false
|
||||||
this.options.extend = options.extend || false
|
this.options.extend = options.extend || false
|
||||||
this.options.rotate = options.rotate || true
|
this.options.rotate = options.rotate || true
|
||||||
this.options.space = options.space || 0.1
|
this.options.space = options.space || 1
|
||||||
this.options.speed = options.speed || 1
|
this.options.speed = options.speed || 10
|
||||||
this.options.dashSize = options.dashSize || 0.03
|
this.options.dashSize = options.dashSize || 0.03
|
||||||
this.options['length-unit'] = options['length-unit'] || '米'
|
this.options['length-unit'] = options['length-unit'] || '米'
|
||||||
this.options['fit-length-unit'] = options['fit-length-unit'] || '米'
|
this.options['fit-length-unit'] = options['fit-length-unit'] || '米'
|
||||||
|
@ -645,6 +645,7 @@ class Tools {
|
|||||||
space: newParam.space,
|
space: newParam.space,
|
||||||
speed: newParam.speed
|
speed: newParam.speed
|
||||||
}
|
}
|
||||||
|
let arr = [7, 8, 9, 10, 11]
|
||||||
param.speed = newParam.rotate ? param.speed : 0 - param.speed
|
param.speed = newParam.rotate ? param.speed : 0 - param.speed
|
||||||
this.getFlowTexture(this, param, entity)
|
this.getFlowTexture(this, param, entity)
|
||||||
|
|
||||||
|
BIN
static/img/arrow/13.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.2 KiB |
BIN
static/img/arrow/222.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.4 KiB |
BIN
static/img/arrow/33.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
static/img/arrow/4 - 副本.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.1 KiB |
BIN
static/img/arrow/44.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 15 KiB |
BIN
static/img/arrow/55.png
Normal file
After Width: | Height: | Size: 6.9 KiB |