Commit b07184be by jlc

update:将柱体名称改为盒子

parent 4ffa6f9d
......@@ -4,7 +4,7 @@ import vueCodeMultiLine from '@/examples/multiLine.vue?raw'
import vueCodePlane from '@/examples/plane.vue?raw'
import vueCodeCirclesAndEllipses from '@/examples/circlesAndEllipses.vue?raw'
import vueCodeColumnBody from '@/examples/columnBody.vue?raw'
import vueCodeBox from '@/examples/box.vue?raw'
import vueCodeRain from '@/examples/rain.vue?raw'
import vueCodeSnow from '@/examples/snow.vue?raw'
......@@ -17,7 +17,7 @@ const vueCodeMap = {
多颜色线: vueCodeMultiLine,
: vueCodePlane,
椭圆: vueCodeCirclesAndEllipses,
柱体: vueCodeColumnBody,
盒子: vueCodeBox,
: vueCodeRain,
: vueCodeSnow,
......
......@@ -4,7 +4,7 @@ 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 functionCodeColumnBody from '@/examples/columnBody-function.js?raw'
import functionBox from '@/examples/box-function.js?raw'
import functionCodeRain from '@/examples/rain-function.js?raw'
import functionCodeSnow from '@/examples/snow-function.js?raw'
......@@ -17,7 +17,7 @@ const functionCodeMap = {
多颜色线: functionCodeMultiLine,
: functionCodePlane,
椭圆: functionCodeCirclesAndEllipses,
柱体: functionCodeColumnBody,
盒子: functionBox,
: functionCodeRain,
: functionCodeSnow,
......
export function addColumnBody() {
export function addBox() {
const script = document.createElement('script');
script.src = 'https://cesium.com/downloads/cesiumjs/releases/1.119/Build/Cesium/Cesium.js';
script.onload = () => {
......
......@@ -3,9 +3,9 @@
</template>
<script setup>
import { onMounted } from 'vue';
import { addColumnBody } from './function';
import { addBox } from './function';
onMounted(() => {
addColumnBody()
addBox()
});
</script>
......
......@@ -19,8 +19,8 @@ export const elementGraphicMap = {
title: '椭圆',
pngUrl: '/src/assets/CirclesAndEllipses.png'
},
柱体: {
title: '柱体',
盒子: {
title: '盒子',
pngUrl: '/src/assets/ColumnBody.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