Skip to content

Commit c307638

Browse files
committed
Merge branch 'dev' of github.com:zouyaoji/vue-cesium into dev
2 parents 7beb69d + 2170235 commit c307638

File tree

8 files changed

+36
-28
lines changed

8 files changed

+36
-28
lines changed

CHANGELOG.en-US.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
### 3.2.5
44

5-
_2023-12-23_
5+
_2023-12-27_
66

77
#### Bug fixes
88

99
- The browser crash issue occurs when using `ref` or `reactive` to wrap the `hierarchy` prop in the `vc-graphics-polygon` component.
1010
- In native Cesium, there is an error when loading SuperMap iServer map services using `vc-provider-imagery-supermap`.
11+
- Fixed the issue of consecutive mouse clicks not taking effect in the `vc-navigation-sm` component. **[Removed the functionality of double-clicking the outer dial to realign with the north direction]**
1112

1213
### 3.2.4
1314

CHANGELOG.zh-CN.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
### 3.2.5
44

5-
_2023-12-23_
5+
_2023-12-27_
66

77
#### Bug 修复
88

99
- `vc-graphics-polygon` 组件使用 ref、reactive 包裹 hierarchy 参数后浏览器崩溃问题。
1010
- 原生 Cesium 下 `vc-provider-imagery-supermap`加载超图 iserver 的地图服务报错问题。
11+
- `vc-navigation-sm` 组件四个方向按钮连续点击不生效的问题。**【去掉了双击外圆盘回正北的功能】**
1112

1213
### 3.2.4
1314

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!--
22
* @Author: zouyaoji@https://github.com/zouyaoji
33
* @Date: 2021-09-03 16:57:27
4-
* @LastEditTime: 2023-08-01 11:14:52
5-
* @LastEditors: zouyaoji 370681295@qq.com
4+
* @LastEditTime: 2023-12-13 10:33:36
5+
* @LastEditors: ly
66
* @Description:
7-
* @FilePath: \vue-cesium@next\README.md
7+
* @FilePath: \vue-cesium\README.md
88
-->
99
<p align="center">
1010
<img width="256px" src="https://zouyaoji.top/vue-cesium/images/vue-cesium-logo.svg">
@@ -75,6 +75,7 @@ the project will install all dependencies.
7575
With command
7676

7777
```bash
78+
$ pnpm gen:version
7879
$ pnpm website-dev
7980
```
8081

README.zh.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!--
22
* @Author: zouyaoji@https://github.com/zouyaoji
33
* @Date: 2021-04-29 16:12:05
4-
* @LastEditTime: 2023-08-01 11:05:07
5-
* @LastEditors: zouyaoji 370681295@qq.com
4+
* @LastEditTime: 2023-12-27 10:28:42
5+
* @LastEditors: ly
66
* @Description:
7-
* @FilePath: \vue-cesium@next\README.zh.md
7+
* @FilePath: \vue-cesium\README.zh.md
88
-->
99
<p align="center">
1010
<img width="256px" src="https://zouyaoji.top/vue-cesium/images/vue-cesium-logo.svg">
@@ -77,6 +77,7 @@ $ pnpm i
7777
命令
7878

7979
```bash
80+
$ pnpm gen:version
8081
$ pnpm website-dev
8182
```
8283

packages/components/controls/navigation-sm/compass-sm.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -189,18 +189,18 @@ export default defineComponent({
189189
ref: outerRingRef,
190190
class: 'vc-compass-outer-ring-sm',
191191
style: outerRingStyle.value
192-
},
193-
props.tooltip
194-
? h(
195-
VcTooltip,
196-
{
197-
ref: compassState.tooltipRef,
198-
...props.tooltip,
199-
onBeforeShow: compassState.onTooltipBeforeShow
200-
},
201-
() => h('strong', {}, (props.tooltip as any).tip || t('vc.navigationSm.compass.outerTip'))
202-
)
203-
: createCommentVNode('v-if')
192+
}
193+
// props.tooltip
194+
// ? h(
195+
// VcTooltip,
196+
// {
197+
// ref: compassState.tooltipRef,
198+
// ...props.tooltip,
199+
// onBeforeShow: compassState.onTooltipBeforeShow
200+
// },
201+
// () => h('strong', {}, (props.tooltip as any).tip || t('vc.navigationSm.compass.outerTip'))
202+
// )
203+
// : createCommentVNode('v-if')
204204
)
205205
)
206206
children.push(
@@ -234,7 +234,7 @@ export default defineComponent({
234234
ref: rootRef,
235235
class: 'vc-compass-sm ' + positionState.classes.value,
236236
style: rootStyle,
237-
onDblclick: compassState.handleDoubleClick,
237+
// onDblclick: compassState.handleDoubleClick,
238238
onMousedown: compassState.handleMouseDown,
239239
onMouseup: compassState.handleMouseUp,
240240
onTouchend: compassState.handleMouseUp,

packages/components/controls/navigation-sm/use-compass.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ export default function (props, { emit }, vcInstance: VcComponentInternalInstanc
220220
const scene = vcInstance.viewer.scene
221221
const sscc = scene.screenSpaceCameraController
222222
// do not orbit if it is disabled
223-
if (scene.mode === SceneMode.MORPHING || !sscc.enableInputs) {
224-
return
225-
}
223+
// if (scene.mode === SceneMode.MORPHING || !sscc.enableInputs) {
224+
// return
225+
// }
226226

227227
switch (scene.mode) {
228228
case SceneMode.COLUMBUS_VIEW:

packages/composables/use-drawing/use-drawing-fab.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*
22
* @Author: zouyaoji@https://github.com/zouyaoji
33
* @Date: 2021-10-13 09:45:59
4-
* @LastEditTime: 2023-03-13 17:52:59
4+
* @LastEditTime: 2023-12-06 00:13:43
55
* @LastEditors: zouyaoji 370681295@qq.com
66
* @Description:
7-
* @FilePath: \vue-cesium@next\packages\composables\use-drawing\use-drawing-fab.ts
7+
* @FilePath: \vue-cesium\packages\composables\use-drawing\use-drawing-fab.ts
88
*/
99
import { VcCollectionPrimitive } from '@vue-cesium/components/primitive-collections'
1010
import type { VcFabProps, VcFabRef } from '@vue-cesium/components/ui'
@@ -169,6 +169,11 @@ export default function (
169169
return Cartesian3.clone(position, result)
170170
}
171171
}
172+
} else {
173+
position = scene.pickPosition(windowPosition, cartesianScratch)
174+
if (defined(position)) {
175+
return Cartesian3.clone(position, result)
176+
}
172177
}
173178
}
174179
if (defined(scene.globe)) {

packages/shared/extends/materials/MaterialExtend.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @Date: 2023-08-18 00:56:13
44
* @Description: Do not edit
55
* @LastEditors: zouyaoji 370681295@qq.com
6-
* @LastEditTime: 2023-10-31 22:33:58
6+
* @LastEditTime: 2023-12-06 15:54:24
77
* @FilePath: \vue-cesium\packages\shared\extends\materials\MaterialExtend.ts
88
*/
99

@@ -12,7 +12,6 @@ import { VcCircleWaveMaterial, VcLineFlowMaterial } from '@vue-cesium/shared/sha
1212
let isExtended = false
1313
export default class MaterialExtend {
1414
static extend(viewer: Cesium.Viewer) {
15-
console.log('asdf', viewer)
1615
if (isExtended) {
1716
return
1817
}

0 commit comments

Comments
 (0)