UNPKG

vue-cesium

Version:
48 lines (45 loc) 1.69 kB
import { defineComponent, getCurrentInstance, h, createCommentVNode } from 'vue'; import '../../../composables/index.mjs'; import { geometryInstances, appearance, show, vertexCacheOptimize, interleave, compressVertices, releaseGeometryInstances, allowPicking, asynchronous, classificationType, debugShowBoundingVolume, debugShowShadowVolume, enableMouseEvent } from '../../../utils/cesium-props.mjs'; import { kebabCase } from '../../../utils/util.mjs'; import { hSlot } from '../../../utils/private/render.mjs'; import { primitiveEmits } from '../../../utils/emits.mjs'; import usePrimitives from '../../../composables/use-primitives/index.mjs'; "use strict"; const groundPrimitiveProps = { ...geometryInstances, ...appearance, ...show, ...vertexCacheOptimize, ...interleave, ...compressVertices, ...releaseGeometryInstances, ...allowPicking, ...asynchronous, ...classificationType, ...debugShowBoundingVolume, ...debugShowShadowVolume, ...enableMouseEvent }; var PrimitiveGround = defineComponent({ name: "VcPrimitiveGround", props: groundPrimitiveProps, emits: primitiveEmits, setup(props, ctx) { var _a; const instance = getCurrentInstance(); instance.cesiumClass = "GroundPrimitive"; usePrimitives(props, ctx, instance); const name = ((_a = instance.proxy) == null ? void 0 : _a.$options.name) || ""; return () => ctx.slots.default ? h( "i", { class: kebabCase(name), style: { display: "none !important" } }, hSlot(ctx.slots.default) ) : createCommentVNode(kebabCase(name)); } }); export { PrimitiveGround as default, groundPrimitiveProps }; //# sourceMappingURL=index.mjs.map