UNPKG

vue-cesium

Version:
1 lines 3.19 kB
{"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/geometries/sphere-outline/index.ts"],"sourcesContent":["/*\n * @Author: zouyaoji@https://github.com/zouyaoji\n * @Date: 2021-09-16 09:28:13\n * @LastEditTime: 2022-03-30 13:21:07\n * @LastEditors: zouyaoji\n * @Description:\n * @FilePath: \\vue-cesium@next\\packages\\components\\geometries\\sphere-outline\\index.ts\n */\nimport { VcComponentInternalInstance, VcComponentPublicInstance, VcReadyObject } from '@vue-cesium/utils/types'\nimport { defineComponent, getCurrentInstance, createCommentVNode } from 'vue'\nimport { useGeometries } from '@vue-cesium/composables'\nimport { kebabCase } from '@vue-cesium/utils/util'\nimport { radius, stackPartitions, slicePartitions, subdivisions } from '@vue-cesium/utils/cesium-props'\nimport { commonEmits } from '@vue-cesium/utils/emits'\nexport const sphereGeometryOutlineProps = {\n ...radius,\n ...stackPartitions,\n ...slicePartitions,\n ...subdivisions\n}\nexport default defineComponent({\n name: 'VcGeometrySphereOutline',\n props: sphereGeometryOutlineProps,\n emits: commonEmits,\n setup(props, ctx) {\n // state\n const instance = getCurrentInstance() as VcComponentInternalInstance\n instance.cesiumClass = 'SphereOutlineGeometry'\n useGeometries(props, ctx, instance)\n\n return () => createCommentVNode(kebabCase(instance.proxy?.$options.name || 'v-if'))\n }\n})\n\nexport type VcGeometrySphereOutlineProps = {\n /**\n * The radius of the sphere.\n */\n radius?: number\n /**\n * The number of times to partition the ellipsoid into stacks.\n * Default value: 64\n */\n stackPartitions?: number\n /**\n * The number of times to partition the ellipsoid into radial slices.\n * Default value: 64\n */\n slicePartitions?: number\n /**\n * The number of points per line, determining the granularity of the curvature .\n * Default value: 128\n */\n subdivisions?: number\n /**\n * Triggers before the VcGeometrySphereOutline is loaded\n */\n onBeforeLoad?: (instance: VcComponentInternalInstance) => void\n /**\n * Triggers when the VcGeometrySphereOutline is successfully loaded\n */\n onReady?: (readyObject: VcReadyObject) => void\n /**\n * Triggers when the component load failed.\n */\n onUnready?: (e: any) => void\n /**\n * Triggers when the VcGeometrySphereOutline is destroyed\n */\n onDestroyed?: (instance: VcComponentInternalInstance) => void\n}\n\nexport type VcGeometrySphereOutlineRef = VcComponentPublicInstance<VcGeometrySphereOutlineProps>\n"],"names":[],"mappings":";;;;;;;;AAcO,MAAM,0BAA6B,GAAA;AAAA,EACxC,GAAG,MAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG,YAAA;AACL,EAAA;AACA,4BAAe,eAAgB,CAAA;AAAA,EAC7B,IAAM,EAAA,yBAAA;AAAA,EACN,KAAO,EAAA,0BAAA;AAAA,EACP,KAAO,EAAA,WAAA;AAAA,EACP,KAAA,CAAM,OAAO,GAAK,EAAA;AAEhB,IAAA,MAAM,WAAW,kBAAmB,EAAA,CAAA;AACpC,IAAA,QAAA,CAAS,WAAc,GAAA,uBAAA,CAAA;AACvB,IAAc,aAAA,CAAA,KAAA,EAAO,KAAK,QAAQ,CAAA,CAAA;AAElC,IAAA,OAAO,MAAG;AA9Bd,MAAA,IAAA,EAAA,CAAA;AA8BiB,MAAA,OAAA,kBAAA,CAAmB,YAAU,EAAS,GAAA,QAAA,CAAA,KAAA,KAAT,mBAAgB,QAAS,CAAA,IAAA,KAAQ,MAAM,CAAC,CAAA,CAAA;AAAA,KAAA,CAAA;AAAA,GACpF;AACF,CAAC,CAAA;;;;"}