| @@ -96,8 +96,8 @@ class CustomBillboard extends Overlay { | |||
| return this | |||
| } | |||
| delete style['image'] && delete style['width'] && delete style['height'] | |||
| this._style = style | |||
| Util.merge(this._delegate.billboard, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.billboard, style) | |||
| return this | |||
| } | |||
| @@ -65,8 +65,8 @@ class CustomLabel extends Overlay { | |||
| return this | |||
| } | |||
| delete style['text'] | |||
| this._style = style | |||
| Util.merge(this._delegate.label, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.label, style) | |||
| return this | |||
| } | |||
| @@ -78,8 +78,8 @@ class DynamicBillboard extends DynamicOverlay { | |||
| return this | |||
| } | |||
| delete style['image'] && delete style['width'] && delete style['height'] | |||
| this._style = style | |||
| Util.merge(this._delegate.billboard, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.billboard, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -66,8 +66,8 @@ class DynamicModel extends DynamicOverlay { | |||
| return this | |||
| } | |||
| delete style['uri'] | |||
| this._style = style | |||
| Util.merge(this._delegate.model, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.model, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -193,7 +193,7 @@ class DivIcon extends Overlay { | |||
| if (!style || Object.keys(style).length === 0) { | |||
| return this | |||
| } | |||
| this._style = style | |||
| Util.merge(this._style, style) | |||
| this._style.className && | |||
| DomUtil.addClass(this._delegate, this._style.className) | |||
| return this | |||
| @@ -100,8 +100,8 @@ class Model extends Overlay { | |||
| return this | |||
| } | |||
| delete style['uri'] | |||
| this._style = style | |||
| Util.merge(this._delegate.model, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.model, style) | |||
| return this | |||
| } | |||
| @@ -200,8 +200,8 @@ class AttackArrow extends Overlay { | |||
| return this | |||
| } | |||
| delete style['positions'] | |||
| this._style = style | |||
| Util.merge(this._delegate.polygon, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.polygon, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -271,8 +271,8 @@ class DoubleArrow extends Overlay { | |||
| return this | |||
| } | |||
| delete style['positions'] | |||
| this._style = style | |||
| Util.merge(this._delegate.polygon, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.polygon, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -125,8 +125,8 @@ class FineArrow extends Overlay { | |||
| return this | |||
| } | |||
| delete style['positions'] | |||
| this._style = style | |||
| Util.merge(this._delegate.polygon, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.polygon, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -106,8 +106,8 @@ class GatheringPlace extends Overlay { | |||
| return this | |||
| } | |||
| delete style['positions'] | |||
| this._style = style | |||
| Util.merge(this._delegate.polygon, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.polygon, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -89,8 +89,8 @@ class BillboardPrimitive extends Overlay { | |||
| delete style['image'] && | |||
| delete style['width'] && | |||
| delete style['height'] | |||
| this._style = style | |||
| Util.merge(this._delegate, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -53,8 +53,8 @@ class CloudPrimitive extends Overlay { | |||
| return this | |||
| } | |||
| delete style['position'] | |||
| this._style = style | |||
| Util.merge(this._delegate, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -6,6 +6,7 @@ | |||
| import { Cesium } from '@dc-modules/namespace' | |||
| import State from '@dc-modules/state/State' | |||
| import Parse from '@dc-modules/parse/Parse' | |||
| import { Util } from '@dc-modules/utils' | |||
| import { Transform } from '@dc-modules/transform' | |||
| import Overlay from '../Overlay' | |||
| @@ -103,7 +104,7 @@ class ElecEllipsoidPrimitive extends Overlay { | |||
| if (Object.keys(style).length === 0) { | |||
| return this | |||
| } | |||
| this._style = style | |||
| Util.merge(this._style, style) | |||
| this._setAppearance() | |||
| return this | |||
| } | |||
| @@ -6,6 +6,7 @@ | |||
| import { Cesium } from '@dc-modules/namespace' | |||
| import State from '@dc-modules/state/State' | |||
| import Parse from '@dc-modules/parse/Parse' | |||
| import { Util } from '@dc-modules/utils' | |||
| import { Transform } from '@dc-modules/transform' | |||
| import Overlay from '../Overlay' | |||
| @@ -84,7 +85,7 @@ class FlowLinePrimitive extends Overlay { | |||
| if (Object.keys(style).length === 0) { | |||
| return this | |||
| } | |||
| this._style = style | |||
| Util.merge(this._style, style) | |||
| style.classificationType && | |||
| (this._delegate.classificationType = this._style.classificationType) | |||
| this._setAppearance() | |||
| @@ -0,0 +1,8 @@ | |||
| /** | |||
| * @Author: Caven | |||
| * @Date: 2021-12-01 20:31:02 | |||
| */ | |||
| class GroundPolygonPrimitive {} | |||
| export default GroundPolygonPrimitive | |||
| @@ -78,8 +78,8 @@ class LabelPrimitive extends Overlay { | |||
| return this | |||
| } | |||
| delete style['position'] && delete style['text'] | |||
| this._style = style | |||
| Util.merge(this._delegate, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -6,6 +6,7 @@ | |||
| import { Cesium } from '@dc-modules/namespace' | |||
| import State from '@dc-modules/state/State' | |||
| import Parse from '@dc-modules/parse/Parse' | |||
| import { Util } from '@dc-modules/utils' | |||
| import { Transform } from '@dc-modules/transform' | |||
| import Overlay from '../Overlay' | |||
| @@ -119,7 +120,7 @@ class ModelCollectionPrimitive extends Overlay { | |||
| return this | |||
| } | |||
| delete style['instances'] && delete style['url'] | |||
| this._style = style | |||
| Util.merge(this._style, style) | |||
| if (this._layer) { | |||
| this._resetDelegate() | |||
| this._layer.delegate.add(this._delegate) | |||
| @@ -109,8 +109,8 @@ class ModelPrimitive extends Overlay { | |||
| if (!style || Object.keys(style).length === 0) { | |||
| return this | |||
| } | |||
| this._style = style | |||
| Util.merge(this._delegate, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -65,7 +65,7 @@ class PointPrimitive extends Overlay { | |||
| return this | |||
| } | |||
| delete style['position'] | |||
| this._style = style | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate, DEF_STYLE, this._style) | |||
| return this | |||
| } | |||
| @@ -61,8 +61,8 @@ class PolylinePrimitive extends Overlay { | |||
| return this | |||
| } | |||
| delete style['positions'] | |||
| this._style = style | |||
| Util.merge(this._delegate, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -6,6 +6,7 @@ | |||
| import { Cesium } from '@dc-modules/namespace' | |||
| import State from '@dc-modules/state/State' | |||
| import Parse from '@dc-modules/parse/Parse' | |||
| import { Util } from '@dc-modules/utils' | |||
| import { Transform } from '@dc-modules/transform' | |||
| import Overlay from '../Overlay' | |||
| @@ -88,7 +89,7 @@ class ScanCirclePrimitive extends Overlay { | |||
| if (Object.keys(style).length === 0) { | |||
| return this | |||
| } | |||
| this._style = style | |||
| Util.merge(this._style, style) | |||
| style.classificationType && | |||
| (this._delegate.classificationType = this._style.classificationType) | |||
| this._setAppearance() | |||
| @@ -6,6 +6,7 @@ | |||
| import { Cesium } from '@dc-modules/namespace' | |||
| import State from '@dc-modules/state/State' | |||
| import Parse from '@dc-modules/parse/Parse' | |||
| import { Util } from '@dc-modules/utils' | |||
| import { Transform } from '@dc-modules/transform' | |||
| import Overlay from '../Overlay' | |||
| @@ -72,7 +73,7 @@ class TrailLinePrimitive extends Overlay { | |||
| if (Object.keys(style).length === 0) { | |||
| return this | |||
| } | |||
| this._style = style | |||
| Util.merge(this._style, style) | |||
| style.classificationType && | |||
| (this._delegate.classificationType = this._style.classificationType) | |||
| this._setAppearance() | |||
| @@ -6,6 +6,7 @@ | |||
| import { Cesium } from '@dc-modules/namespace' | |||
| import State from '@dc-modules/state/State' | |||
| import Parse from '@dc-modules/parse/Parse' | |||
| import { Util } from '@dc-modules/utils' | |||
| import { Transform } from '@dc-modules/transform' | |||
| import Overlay from '../Overlay' | |||
| @@ -90,7 +91,7 @@ class VideoPrimitive extends Overlay { | |||
| if (Object.keys(style).length === 0) { | |||
| return this | |||
| } | |||
| this._style = style | |||
| Util.merge(this._style, style) | |||
| if (this._style?.classificationType) { | |||
| this._delegate.classificationType = this._style.classificationType | |||
| } | |||
| @@ -6,6 +6,7 @@ | |||
| import { Cesium } from '@dc-modules/namespace' | |||
| import State from '@dc-modules/state/State' | |||
| import Parse from '@dc-modules/parse/Parse' | |||
| import { Util } from '@dc-modules/utils' | |||
| import { Transform } from '@dc-modules/transform' | |||
| import Overlay from '../Overlay' | |||
| @@ -96,7 +97,7 @@ class WaterPrimitive extends Overlay { | |||
| if (Object.keys(style).length === 0) { | |||
| return this | |||
| } | |||
| this._style = style | |||
| Util.merge(this._style, style) | |||
| if (this._style?.classificationType) { | |||
| this._delegate.classificationType = this._style.classificationType | |||
| } | |||
| @@ -82,8 +82,8 @@ class Billboard extends Overlay { | |||
| return this | |||
| } | |||
| delete style['image'] && delete style['width'] && delete style['height'] | |||
| this._style = style | |||
| Util.merge(this._delegate.billboard, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.billboard, style) | |||
| return this | |||
| } | |||
| @@ -105,8 +105,8 @@ class Box extends Overlay { | |||
| return this | |||
| } | |||
| delete style['length'] && delete style['width'] && delete style['height'] | |||
| this._style = style | |||
| Util.merge(this._delegate.box, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.box, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -101,8 +101,8 @@ class Circle extends Overlay { | |||
| return this | |||
| } | |||
| delete style['positions'] | |||
| this._style = style | |||
| Util.merge(this._delegate.polygon, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.polygon, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -60,8 +60,8 @@ class Corridor extends Overlay { | |||
| return this | |||
| } | |||
| delete style['positions'] | |||
| this._style = style | |||
| Util.merge(this._delegate.corridor, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.corridor, style) | |||
| return this | |||
| } | |||
| @@ -111,8 +111,8 @@ class Cylinder extends Overlay { | |||
| delete style['topRadius'] && | |||
| delete style['bottomRadius'] | |||
| this._style = style | |||
| Util.merge(this._delegate.cylinder, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.cylinder, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -86,8 +86,8 @@ class Ellipse extends Overlay { | |||
| return this | |||
| } | |||
| delete style['semiMajorAxis'] && delete style['semiMinorAxis'] | |||
| this._style = style | |||
| Util.merge(this._delegate.ellipse, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.ellipse, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -75,8 +75,8 @@ class Ellipsoid extends Overlay { | |||
| return this | |||
| } | |||
| delete style['radius'] | |||
| this._style = style | |||
| Util.merge(this._delegate.ellipsoid, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.ellipsoid, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -76,8 +76,8 @@ class Label extends Overlay { | |||
| return this | |||
| } | |||
| delete style['text'] | |||
| this._style = style | |||
| Util.merge(this._delegate.label, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.label, style) | |||
| return this | |||
| } | |||
| @@ -106,15 +106,6 @@ class Plane extends Overlay { | |||
| this.distance = this._distance | |||
| } | |||
| /** | |||
| * | |||
| * @param {*} text | |||
| * @param {*} textStyle | |||
| */ | |||
| setLabel(text, textStyle) { | |||
| return this | |||
| } | |||
| /** | |||
| * Sets Style | |||
| * @param style | |||
| @@ -125,8 +116,8 @@ class Plane extends Overlay { | |||
| return this | |||
| } | |||
| delete style['dimensions'] && delete ['plane'] | |||
| this._style = style | |||
| Util.merge(this._delegate.plane, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.plane, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -62,7 +62,7 @@ class Point extends Overlay { | |||
| return this | |||
| } | |||
| delete style['position'] | |||
| this._style = style | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.point, DEF_STYLE, this._style) | |||
| return this | |||
| } | |||
| @@ -104,8 +104,8 @@ class Polygon extends Overlay { | |||
| return this | |||
| } | |||
| delete style['positions'] | |||
| this._style = style | |||
| Util.merge(this._delegate.polygon, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.polygon, style) | |||
| return this | |||
| } | |||
| @@ -75,8 +75,8 @@ class Polyline extends Overlay { | |||
| return this | |||
| } | |||
| delete style['positions'] | |||
| this._style = style | |||
| Util.merge(this._delegate.polyline, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.polyline, style) | |||
| return this | |||
| } | |||
| @@ -76,8 +76,8 @@ class PolylineVolume extends Overlay { | |||
| return this | |||
| } | |||
| delete style['positions'] && delete style['shape'] | |||
| this._style = style | |||
| Util.merge(this._delegate.polylineVolume, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.polylineVolume, style) | |||
| return this | |||
| } | |||
| @@ -60,8 +60,8 @@ class Rectangle extends Overlay { | |||
| return this | |||
| } | |||
| delete style['positions'] | |||
| this._style = style | |||
| Util.merge(this._delegate.rectangle, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.rectangle, style) | |||
| return this | |||
| } | |||
| } | |||
| @@ -61,8 +61,8 @@ class Wall extends Overlay { | |||
| return this | |||
| } | |||
| delete style['positions'] | |||
| this._style = style | |||
| Util.merge(this._delegate.wall, this._style) | |||
| Util.merge(this._style, style) | |||
| Util.merge(this._delegate.wall, style) | |||
| return this | |||
| } | |||
| @@ -1,6 +1,6 @@ | |||
| { | |||
| "name": "dc-sdk", | |||
| "version": "2.8.0", | |||
| "version": "2.8.1", | |||
| "description": "The SDK is based on Cesium for secondary development of 2, 3D all-in-one WebGis application framework, the framework optimizes the use of Cesium and add some additional features, designed for developers to quickly build WebGis applications.", | |||
| "repository": "https://github.com/dvgis/dc-sdk.git", | |||
| "homepage": "https://www.dvgis.cn", | |||
| @@ -1,6 +1,6 @@ | |||
| { | |||
| "name": "@dvgis/dc-base", | |||
| "version": "2.8.0", | |||
| "version": "2.8.1", | |||
| "description": "The SDK is based on Cesium for secondary development of 2, 3D all-in-one WebGis application framework, the framework optimizes the use of Cesium and add some additional features, designed for developers to quickly build WebGis applications.", | |||
| "repository": "https://github.com/dvgis/dc-sdk.git", | |||
| "homepage": "https://www.dvgis.cn", | |||
| @@ -1,6 +1,6 @@ | |||
| { | |||
| "name": "@dvgis/dc-chart", | |||
| "version": "2.8.0", | |||
| "version": "2.8.1", | |||
| "description": "The SDK is based on Cesium for secondary development of 2, 3D all-in-one WebGis application framework, the framework optimizes the use of Cesium and add some additional features, designed for developers to quickly build WebGis applications.", | |||
| "repository": "https://github.com/dvgis/dc-sdk.git", | |||
| "homepage": "https://www.dvgis.cn", | |||
| @@ -18,7 +18,7 @@ | |||
| "license": "Apache 2.0", | |||
| "main": "dist/dc.chart.min.js", | |||
| "peerDependencies": { | |||
| "@dvgis/dc-base": "^2.8.0" | |||
| "@dvgis/dc-base": "^2.8.1" | |||
| }, | |||
| "files": [ | |||
| "dist" | |||
| @@ -1,6 +1,6 @@ | |||
| { | |||
| "name": "@dvgis/dc-core", | |||
| "version": "2.8.0", | |||
| "version": "2.8.1", | |||
| "description": "The SDK is based on Cesium for secondary development of 2, 3D all-in-one WebGis application framework, the framework optimizes the use of Cesium and add some additional features, designed for developers to quickly build WebGis applications.", | |||
| "repository": "https://github.com/dvgis/dc-sdk.git", | |||
| "homepage": "https://www.dvgis.cn", | |||
| @@ -18,7 +18,7 @@ | |||
| "license": "Apache 2.0", | |||
| "main": "dist/dc.core.min.js", | |||
| "peerDependencies": { | |||
| "@dvgis/dc-base": "^2.8.0" | |||
| "@dvgis/dc-base": "^2.8.1" | |||
| }, | |||
| "files": [ | |||
| "dist" | |||
| @@ -1,6 +1,6 @@ | |||
| { | |||
| "name": "@dvgis/dc-mapv", | |||
| "version": "2.8.0", | |||
| "version": "2.8.1", | |||
| "description": "The SDK is based on Cesium for secondary development of 2, 3D all-in-one WebGis application framework, the framework optimizes the use of Cesium and add some additional features, designed for developers to quickly build WebGis applications.", | |||
| "repository": "https://github.com/dvgis/dc-sdk.git", | |||
| "homepage": "https://www.dvgis.cn", | |||
| @@ -18,7 +18,7 @@ | |||
| "license": "Apache 2.0", | |||
| "main": "dist/dc.mapv.js", | |||
| "peerDependencies": { | |||
| "@dvgis/dc-base": "^2.8.0" | |||
| "@dvgis/dc-base": "^2.8.1" | |||
| }, | |||
| "files": [ | |||
| "dist" | |||
| @@ -1,6 +1,6 @@ | |||
| { | |||
| "name": "@dvgis/dc-sdk", | |||
| "version": "2.8.0", | |||
| "version": "2.8.1", | |||
| "description": "The SDK is based on Cesium for secondary development of 2, 3D all-in-one WebGis application framework, the framework optimizes the use of Cesium and add some additional features, designed for developers to quickly build WebGis applications.", | |||
| "repository": "https://github.com/dvgis/dc-sdk.git", | |||
| "homepage": "https://www.dvgis.cn", | |||