From 7246f3421a72a2efe6fd8f039fb373ebfd82a2b1 Mon Sep 17 00:00:00 2001
From: caiying <2841902102@qq.com>
Date: Mon, 11 Nov 2019 11:31:49 +0800
Subject: [PATCH 01/82] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=BC=BA?=
=?UTF-8?q?=E5=88=B6=E5=85=89=E7=85=A7=E7=BB=8F=E5=BA=A6=E3=80=81=E7=BA=AC?=
=?UTF-8?q?=E5=BA=A6=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../MainBarControl/Effect/ForceSunPos.vue | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/Source/components/controls/MainBarControl/Effect/ForceSunPos.vue b/Source/components/controls/MainBarControl/Effect/ForceSunPos.vue
index 24dc7d08..7165bee3 100644
--- a/Source/components/controls/MainBarControl/Effect/ForceSunPos.vue
+++ b/Source/components/controls/MainBarControl/Effect/ForceSunPos.vue
@@ -57,9 +57,7 @@ export default {
created() {},
mounted() {
this.bind("useCameraPos");
- this.bind("position");
- this.position[0] = (this.position[0] * 180) / Math.PI;
- this.position[1] = (this.position[1] * 180) / Math.PI;
+ this.bindpos("position");
},
methods: {
bind(prp) {
@@ -67,6 +65,17 @@ export default {
this._viewUnbinds.push(
XE.MVVM.bind(this, prp, this.$root.$earth.effect.forceSunPos, prp)
);
+ },
+ bindpos(pos) {
+ this._viewUnbinds = this._viewUnbinds || [];
+ this._viewUnbinds.push(
+ XE.MVVM.bindPosition(
+ this,
+ pos,
+ this.$root.$earth.effect.forceSunPos,
+ pos
+ )
+ );
}
},
beforeDestroy() {
From 3ffc6e75c12bca0a298fcd312f13a94b1f3cadc0 Mon Sep 17 00:00:00 2001
From: caiying <2841902102@qq.com>
Date: Mon, 11 Nov 2019 11:38:37 +0800
Subject: [PATCH 02/82] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E6=97=A5?=
=?UTF-8?q?=E5=BF=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
CHANGLES.md | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/CHANGLES.md b/CHANGLES.md
index 53d74de0..501f3a30 100644
--- a/CHANGLES.md
+++ b/CHANGLES.md
@@ -1,6 +1,11 @@
Change Log
==========
+### 1.2.8
+
+##### Fixes :wrench:
+* 修复强制光照经度、纬度不对的问题
+
### 1.2.7 - 2019-11-9
##### Fixes :wrench:
From 4b15c304bfba7344c3b98a8dec87fe54f7e58e86 Mon Sep 17 00:00:00 2001
From: caiying <2841902102@qq.com>
Date: Tue, 12 Nov 2019 18:34:38 +0800
Subject: [PATCH 03/82] =?UTF-8?q?pin-=E6=A0=B7=E5=BC=8F=E7=A4=BA=E4=BE=8B?=
=?UTF-8?q?=E5=92=8C=E6=A0=87=E7=BB=98=E4=B8=AD=E7=9A=84=E5=86=85=E7=BD=AE?=
=?UTF-8?q?=E5=9B=BE=E6=A0=87=E6=B7=BB=E5=8A=A0=E4=BA=86extText=E3=80=81ex?=
=?UTF-8?q?tTextFont=E3=80=81extTextPixelOffset=E5=B1=9E=E6=80=A7=EF=BC=8C?=
=?UTF-8?q?=E5=B9=B6=E6=B7=BB=E5=8A=A0=E4=BA=86=E6=89=87=E5=BD=A2=E6=A0=87?=
=?UTF-8?q?=E7=BB=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Apps/Examples/earth-pin-pinBuilder.html | 31 +-
Source/components/MainUIComp.vue | 3 +
.../components/tools/EntityMoreTool/index.vue | 66 +--
.../components/tools/EntityMoreTool/locale.js | 55 ++
.../components/viztools/GeoSector/index.vue | 552 ++++++++++++++++++
.../viztools/GeoSector/index_locale.js | 32 +
Source/components/viztools/PinTool/index.vue | 51 +-
.../viztools/PinTool/index_locale.js | 104 ++--
Source/css/common.css | 7 +
9 files changed, 790 insertions(+), 111 deletions(-)
create mode 100644 Source/components/tools/EntityMoreTool/locale.js
create mode 100644 Source/components/viztools/GeoSector/index.vue
create mode 100644 Source/components/viztools/GeoSector/index_locale.js
diff --git a/Apps/Examples/earth-pin-pinBuilder.html b/Apps/Examples/earth-pin-pinBuilder.html
index f20d303b..7d77cec9 100644
--- a/Apps/Examples/earth-pin-pinBuilder.html
+++ b/Apps/Examples/earth-pin-pinBuilder.html
@@ -5,7 +5,8 @@
-
+
+
Pin-样式
@@ -20,10 +21,11 @@
}
input {
- width: 350px;
+ width: 350px;
}
- .text, select{
+ .text,
+ select {
width: 242px;
font-size: 18px;
}
@@ -48,11 +50,15 @@
pin内容:
- pin图标:
+ pin图标:
pin大小:{{ size }}
pin填充颜色:
- pin边框和文字颜色:
+ pin边框和文字颜色:
+ pin文本内容:
+ pin文本内容字体样式:
+ pin文本内容左右偏移:
+ pin文本内容上下偏移:
`,
@@ -62,7 +68,10 @@
text: '',
size: 0,
makiIcon: '',
- makiIconObj: {}
+ makiIconObj: {},
+ extText: '',
+ extTextFont: '',
+ extTextPixelOffset: [0, 0]
};
},
// 1.1 资源创建
@@ -95,21 +104,26 @@
var pin1 = earth.sceneTree.$refs.pin1.czmObject;
this.makiIconObj = XE.Obj.Pin.MakiIcon;
-
+
// 1.1.5 数据绑定
this._textUnbind = XE.MVVM.bind(this, 'text', pin1.pinBuilder, 'text');
this._sizeUnbind = XE.MVVM.bind(this, 'size', pin1.pinBuilder, 'size');
this._makiIconUnbind = XE.MVVM.bind(this, 'makiIcon', pin1.pinBuilder, 'makiIcon');
+ this._extTextUnbind = XE.MVVM.bind(this, 'extText', pin1.pinBuilder, 'extText');
+ this._extTextFontUnbind = XE.MVVM.bind(this, 'extTextFont', pin1.pinBuilder, 'extTextFont');
+ this._extTextPixelOffsetUnbind = XE.MVVM.bind(this, 'extTextPixelOffset', pin1.pinBuilder, 'extTextPixelOffset');
// 设置初始值
pin1.pinBuilder.text = 'pin';
pin1.pinBuilder.size = 48;
+ pin1.pinBuilder.extText = '文本';
this._earth = earth;
// only for Debug
window.earth = earth;
window.pin1 = pin1;
+ window.extTextPixelOffset = this.extTextPixelOffset;
},
methods: {
colorchangeinner(event) {
@@ -127,6 +141,9 @@
this._textUnbind = this._textUnbind && this._textUnbind();
this._sizeUnbind = this._sizeUnbind && this._sizeUnbind();
this._makiIconUnbind = this._makiIconUnbind && this._makiIconUnbind();
+ this._extTextUnbind = this._extTextUnbind && this._extTextUnbind();
+ this._extTextFontUnbind = this._extTextFontUnbind && this._extTextFontUnbind();
+ this._extTextPixelOffsetUnbind = this._extTextPixelOffsetUnbind && this._extTextPixelOffsetUnbind();
this._earth = this._earth && this._earth.destroy();
},
}
diff --git a/Source/components/MainUIComp.vue b/Source/components/MainUIComp.vue
index f8a571ce..50d73c7d 100644
--- a/Source/components/MainUIComp.vue
+++ b/Source/components/MainUIComp.vue
@@ -83,6 +83,7 @@ import GeoArc from "./viztools/GeoArc";
import GeoBezier2 from "./viztools/GeoBezier2";
import GeoBezier3 from "./viztools/GeoBezier3";
import GeoTriFlag from "./viztools/GeoTriFlag";
+import GeoSector from "./viztools/GeoSector";
import ScanlineTool from "./viztools/ScanlineTool";
import CamerVideoTool from "./viztools/CamerVideoTool";
@@ -133,6 +134,7 @@ export default {
GeoBezier2,
GeoBezier3,
GeoTriFlag,
+ GeoSector,
ScanlineTool,
CamerVideoTool,
@@ -185,6 +187,7 @@ export default {
GeoCurveFlag: "GeoCurveFlag",
GeoRightAngleFlag: "GeoRightAngleFlag",
GeoPolygon: "GeoPolygon",
+ GeoSector: "GeoSector",
["CameraView.View"]: "CameraViewPrp"
},
tools: [
diff --git a/Source/components/tools/EntityMoreTool/index.vue b/Source/components/tools/EntityMoreTool/index.vue
index aaa0849e..5e4b6ca7 100644
--- a/Source/components/tools/EntityMoreTool/index.vue
+++ b/Source/components/tools/EntityMoreTool/index.vue
@@ -44,6 +44,7 @@
{{lang.rightangleflag}}
{{lang.doublearrow}}
{{lang.polygon}}
+ {{lang.sector}}
@@ -52,6 +53,8 @@
+
+
\ No newline at end of file
diff --git a/Source/components/viztools/GeoSector/index_locale.js b/Source/components/viztools/GeoSector/index_locale.js
new file mode 100644
index 00000000..9852dfe8
--- /dev/null
+++ b/Source/components/viztools/GeoSector/index_locale.js
@@ -0,0 +1,32 @@
+const zh = {
+ title: '多边形',
+ name: '名称',
+ show:'显示',
+ creating:'创建',
+ editing:'编辑',
+ ground:'贴地',
+ outlineWidth:'边框宽度',
+ outlineShow:'边框显示',
+ outlineColor:'边框颜色',
+ color:'颜色',
+ transparency:'透明度'
+};
+
+const en = {
+ title: 'GeoPolygon',
+ name: 'name',
+ show:'show',
+ creating:'creating',
+ editing:'editing',
+ ground:'ground',
+ outlineWidth:'width',
+ outlineShow:'outlineShow',
+ outlineColor:'outlineColor',
+ color:'color',
+ transparency:'transparency'
+};
+
+export default {
+ zh,
+ en
+};
\ No newline at end of file
diff --git a/Source/components/viztools/PinTool/index.vue b/Source/components/viztools/PinTool/index.vue
index 261a13bf..7712bdb0 100644
--- a/Source/components/viztools/PinTool/index.vue
+++ b/Source/components/viztools/PinTool/index.vue
@@ -123,6 +123,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -130,11 +156,15 @@