Skip to content

Commit 04fffce

Browse files
committed
同步代码
1 parent 53b9176 commit 04fffce

File tree

95 files changed

+2728
-57
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+2728
-57
lines changed

public/lib/mars3d/mars3d.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Mars3D三维可视化平台 mars3d
33
*
44
* 版本信息:v3.9.7
5-
* 编译日期:2025-04-18 17:28
5+
* 编译日期:2025-04-21 19:53
66
* 版权所有:Copyright by 火星科技 http://mars3d.cn
77
* 使用单位:火星科技免费公开版 ,2025-02-01
88
*/

public/lib/mars3d/mars3d.d.ts

Lines changed: 23 additions & 14 deletions
Large diffs are not rendered by default.

public/lib/mars3d/mars3d.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/lib/mars3d/plugins/echarts/mars3d-echarts.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/lib/mars3d/plugins/heatmap/mars3d-heatmap.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/lib/mars3d/plugins/mapv/mars3d-mapv.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/lib/mars3d/plugins/space/mars3d-space.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/lib/mars3d/plugins/wind/mars3d-wind.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/example/graphic/base/position-time/map.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,36 @@ export function bindLayerContextMenu() {
356356
}
357357
}
358358
},
359+
{
360+
text: "复制",
361+
icon: "fa fa-copy",
362+
callback: (e) => {
363+
const graphic = e.graphic
364+
if (!graphic) {
365+
return false
366+
}
367+
if (graphic) {
368+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
369+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
370+
}
371+
}
372+
},
373+
{
374+
text: "剪切",
375+
icon: "fa fa-scissors",
376+
callback: (e) => {
377+
const graphic = e.graphic
378+
if (!graphic) {
379+
return false
380+
}
381+
if (graphic) {
382+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
383+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
384+
385+
graphic.remove(true) // 移除原有对象
386+
}
387+
}
388+
},
359389
{
360390
text: "编辑下一个时序",
361391
icon: "fa fa-fast-forward",

src/example/graphic/base/position/map.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,36 @@ export function bindLayerContextMenu() {
129129
}
130130
}
131131
},
132+
{
133+
text: "复制",
134+
icon: "fa fa-copy",
135+
callback: (e) => {
136+
const graphic = e.graphic
137+
if (!graphic) {
138+
return false
139+
}
140+
if (graphic) {
141+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
142+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
143+
}
144+
}
145+
},
146+
{
147+
text: "剪切",
148+
icon: "fa fa-scissors",
149+
callback: (e) => {
150+
const graphic = e.graphic
151+
if (!graphic) {
152+
return false
153+
}
154+
if (graphic) {
155+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
156+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
157+
158+
graphic.remove(true) // 移除原有对象
159+
}
160+
}
161+
},
132162
{
133163
text: "还原编辑(还原到初始)",
134164
icon: "fa fa-pencil",

src/example/graphic/base/style/map.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,36 @@ export function bindLayerContextMenu() {
168168
}
169169
}
170170
},
171+
{
172+
text: "复制",
173+
icon: "fa fa-copy",
174+
callback: (e) => {
175+
const graphic = e.graphic
176+
if (!graphic) {
177+
return false
178+
}
179+
if (graphic) {
180+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
181+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
182+
}
183+
}
184+
},
185+
{
186+
text: "剪切",
187+
icon: "fa fa-scissors",
188+
callback: (e) => {
189+
const graphic = e.graphic
190+
if (!graphic) {
191+
return false
192+
}
193+
if (graphic) {
194+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
195+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
196+
197+
graphic.remove(true) // 移除原有对象
198+
}
199+
}
200+
},
171201
{
172202
text: "还原编辑(还原到初始)",
173203
icon: "fa fa-pencil",

src/example/graphic/custom/fixedRoute-walk/map.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,36 @@ export function bindLayerContextMenu() {
288288
}
289289
}
290290
},
291+
{
292+
text: "复制",
293+
icon: "fa fa-copy",
294+
callback: (e) => {
295+
const graphic = e.graphic
296+
if (!graphic) {
297+
return false
298+
}
299+
if (graphic) {
300+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
301+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
302+
}
303+
}
304+
},
305+
{
306+
text: "剪切",
307+
icon: "fa fa-scissors",
308+
callback: (e) => {
309+
const graphic = e.graphic
310+
if (!graphic) {
311+
return false
312+
}
313+
if (graphic) {
314+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
315+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
316+
317+
graphic.remove(true) // 移除原有对象
318+
}
319+
}
320+
},
291321
{
292322
text: "还原编辑(还原到初始)",
293323
icon: "fa fa-pencil",

src/example/graphic/custom/fixedRoute/map.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,36 @@ export function bindLayerContextMenu() {
504504
}
505505
}
506506
},
507+
{
508+
text: "复制",
509+
icon: "fa fa-copy",
510+
callback: (e) => {
511+
const graphic = e.graphic
512+
if (!graphic) {
513+
return false
514+
}
515+
if (graphic) {
516+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
517+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
518+
}
519+
}
520+
},
521+
{
522+
text: "剪切",
523+
icon: "fa fa-scissors",
524+
callback: (e) => {
525+
const graphic = e.graphic
526+
if (!graphic) {
527+
return false
528+
}
529+
if (graphic) {
530+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
531+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
532+
533+
graphic.remove(true) // 移除原有对象
534+
}
535+
}
536+
},
507537
{
508538
text: "还原编辑(还原到初始)",
509539
icon: "fa fa-pencil",

src/example/graphic/custom/route-ais/map.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,36 @@ export function bindLayerContextMenu() {
160160
}
161161
}
162162
},
163+
{
164+
text: "复制",
165+
icon: "fa fa-copy",
166+
callback: (e) => {
167+
const graphic = e.graphic
168+
if (!graphic) {
169+
return false
170+
}
171+
if (graphic) {
172+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
173+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
174+
}
175+
}
176+
},
177+
{
178+
text: "剪切",
179+
icon: "fa fa-scissors",
180+
callback: (e) => {
181+
const graphic = e.graphic
182+
if (!graphic) {
183+
return false
184+
}
185+
if (graphic) {
186+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
187+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
188+
189+
graphic.remove(true) // 移除原有对象
190+
}
191+
}
192+
},
163193
{
164194
text: "还原编辑(还原到初始)",
165195
icon: "fa fa-pencil",

src/example/graphic/custom/route-tileset/map.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,36 @@ export function bindLayerContextMenu() {
181181
}
182182
}
183183
},
184+
{
185+
text: "复制",
186+
icon: "fa fa-copy",
187+
callback: (e) => {
188+
const graphic = e.graphic
189+
if (!graphic) {
190+
return false
191+
}
192+
if (graphic) {
193+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
194+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
195+
}
196+
}
197+
},
198+
{
199+
text: "剪切",
200+
icon: "fa fa-scissors",
201+
callback: (e) => {
202+
const graphic = e.graphic
203+
if (!graphic) {
204+
return false
205+
}
206+
if (graphic) {
207+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
208+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
209+
210+
graphic.remove(true) // 移除原有对象
211+
}
212+
}
213+
},
184214
{
185215
text: "还原编辑(还原到初始)",
186216
icon: "fa fa-pencil",

src/example/graphic/divGraphic/basis/map.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,36 @@ export function bindLayerContextMenu() {
580580
}
581581
}
582582
},
583+
{
584+
text: "复制",
585+
icon: "fa fa-copy",
586+
callback: (e) => {
587+
const graphic = e.graphic
588+
if (!graphic) {
589+
return false
590+
}
591+
if (graphic) {
592+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
593+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
594+
}
595+
}
596+
},
597+
{
598+
text: "剪切",
599+
icon: "fa fa-scissors",
600+
callback: (e) => {
601+
const graphic = e.graphic
602+
if (!graphic) {
603+
return false
604+
}
605+
if (graphic) {
606+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
607+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
608+
609+
graphic.remove(true) // 移除原有对象
610+
}
611+
}
612+
},
583613
{
584614
text: "删除对象",
585615
icon: "fa fa-trash-o",

src/example/graphic/divGraphic/divIndicator/map.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,36 @@ export function bindLayerContextMenu() {
166166
}
167167
}
168168
},
169+
{
170+
text: "复制",
171+
icon: "fa fa-copy",
172+
callback: (e) => {
173+
const graphic = e.graphic
174+
if (!graphic) {
175+
return false
176+
}
177+
if (graphic) {
178+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
179+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
180+
}
181+
}
182+
},
183+
{
184+
text: "剪切",
185+
icon: "fa fa-scissors",
186+
callback: (e) => {
187+
const graphic = e.graphic
188+
if (!graphic) {
189+
return false
190+
}
191+
if (graphic) {
192+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
193+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
194+
195+
graphic.remove(true) // 移除原有对象
196+
}
197+
}
198+
},
169199
{
170200
text: "还原编辑(还原到初始)",
171201
icon: "fa fa-pencil",

src/example/graphic/divGraphic/divLightPoint/map.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,36 @@ export function bindLayerContextMenu() {
237237
}
238238
}
239239
},
240+
{
241+
text: "复制",
242+
icon: "fa fa-copy",
243+
callback: (e) => {
244+
const graphic = e.graphic
245+
if (!graphic) {
246+
return false
247+
}
248+
if (graphic) {
249+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
250+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
251+
}
252+
}
253+
},
254+
{
255+
text: "剪切",
256+
icon: "fa fa-scissors",
257+
callback: (e) => {
258+
const graphic = e.graphic
259+
if (!graphic) {
260+
return false
261+
}
262+
if (graphic) {
263+
map.contextmenu.copyGraphic = graphic.toJSON() // map内置右键中"粘贴"菜单使用
264+
map.contextmenu.copyGraphic.layerId = graphicLayer.id
265+
266+
graphic.remove(true) // 移除原有对象
267+
}
268+
}
269+
},
240270
{
241271
text: "删除对象",
242272
icon: "fa fa-trash-o",

0 commit comments

Comments
 (0)