Commit 4441b5ec by jlc

update:修改多面名称为椭圆

parent 61999aec
import vueCodePoint from '@/examples/point.vue?raw' import vueCodePoint from '@/examples/point.vue?raw'
import vueCodeLine from '@/examples/line.vue?raw' import vueCodeLine from '@/examples/line.vue?raw'
import vueCodeMultiLine from '@/examples/multiLine.vue?raw' import vueCodeMultiLine from '@/examples/multiLine.vue?raw'
import vueCodePlane from '@/examples/plane.vue?raw' import vueCodeCodeCirclesAndEllipses from '@/examples/circlesAndEllipses.vue?raw'
import vueCodeRain from '@/examples/rain.vue?raw' import vueCodeRain from '@/examples/rain.vue?raw'
import vueCodeSnow from '@/examples/snow.vue?raw' import vueCodeSnow from '@/examples/snow.vue?raw'
...@@ -12,7 +12,7 @@ const vueCodeMap = { ...@@ -12,7 +12,7 @@ const vueCodeMap = {
: vueCodePoint, : vueCodePoint,
线: vueCodeLine, 线: vueCodeLine,
多颜色线: vueCodeMultiLine, 多颜色线: vueCodeMultiLine,
多面: vueCodePlane, 椭圆: vueCodeCodeCirclesAndEllipses,
: vueCodeRain, : vueCodeRain,
: vueCodeSnow, : vueCodeSnow,
......
import functionCodePoint from '@/examples/point-function.js?raw' import functionCodePoint from '@/examples/point-function.js?raw'
import functionCodeLine from '@/examples/line-function.js?raw' import functionCodeLine from '@/examples/line-function.js?raw'
import functionCodeMultiLine from '@/examples/multiLine-function.js?raw' import functionCodeMultiLine from '@/examples/multiLine-function.js?raw'
import functionCodePlane from '@/examples/plane-function.js?raw' import functionCodeCirclesAndEllipses from '@/examples/circlesAndEllipses-function.js?raw'
import functionCodeRain from '@/examples/rain-function.js?raw' import functionCodeRain from '@/examples/rain-function.js?raw'
import functionCodeSnow from '@/examples/snow-function.js?raw' import functionCodeSnow from '@/examples/snow-function.js?raw'
...@@ -12,7 +12,7 @@ const functionCodeMap = { ...@@ -12,7 +12,7 @@ const functionCodeMap = {
: functionCodePoint, : functionCodePoint,
线: functionCodeLine, 线: functionCodeLine,
多颜色线: functionCodeMultiLine, 多颜色线: functionCodeMultiLine,
多面: functionCodePlane, 椭圆: functionCodeCirclesAndEllipses,
: functionCodeRain, : functionCodeRain,
: functionCodeSnow, : functionCodeSnow,
......
export function addPlane() { export function addCirclesAndEllipses() {
const script = document.createElement('script'); const script = document.createElement('script');
script.src = 'https://cesium.com/downloads/cesiumjs/releases/1.119/Build/Cesium/Cesium.js'; script.src = 'https://cesium.com/downloads/cesiumjs/releases/1.119/Build/Cesium/Cesium.js';
script.onload = () => { script.onload = () => {
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
</template> </template>
<script setup> <script setup>
import { onMounted } from 'vue'; import { onMounted } from 'vue';
import { addPlane } from './function'; import { addCirclesAndEllipses } from './function';
onMounted(() => { onMounted(() => {
addPlane() addCirclesAndEllipses()
}); });
</script> </script>
......
...@@ -11,8 +11,8 @@ export const elementGraphicMap = { ...@@ -11,8 +11,8 @@ export const elementGraphicMap = {
title: '多颜色线', title: '多颜色线',
pngUrl: '/src/assets/MultiLine.png' pngUrl: '/src/assets/MultiLine.png'
}, },
多面: { 椭圆: {
title: '多面', title: '椭圆',
pngUrl: '/src/assets/Plane.png' pngUrl: '/src/assets/Plane.png'
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment