{"version":3,"file":"index.mjs","sources":["../../../../../../../packages/components/drawings/src/polygon/index.ts"],"sourcesContent":["/*\n * @Author: zouyaoji@https://github.com/zouyaoji\n * @Date: 2021-09-16 09:28:13\n * @LastEditTime: 2022-02-08 11:01:28\n * @LastEditors: zouyaoji\n * @Description:\n * @FilePath: \\vue-cesium@next\\packages\\components\\drawings\\src\\polygon\\index.ts\n */\nimport type { PropType } from 'vue'\nimport { defineComponent } from 'vue'\nimport useDrawingPolyline from '@vue-cesium/composables/use-drawing/use-drawing-polyline'\nimport { useDrawingActionProps } from '@vue-cesium/composables/use-drawing/props'\nimport { drawingEmit } from '@vue-cesium/utils/emits'\nimport type { VcGeometryPolylineProps } from '../../../geometries'\nimport type { VcPolygonProps } from '../../../primitive-collections'\nimport type { VcPrimitiveGroundPolylineProps, VcPrimitiveProps } from '../../../primitives'\n\nexport default defineComponent({\n  name: 'VcDrawingPolygon',\n  props: {\n    ...useDrawingActionProps,\n    polylineOpts: Object as PropType<VcGeometryPolylineProps>,\n    primitiveOpts: Object as PropType<VcPrimitiveProps & VcPrimitiveGroundPolylineProps>,\n    polygonOpts: Object as PropType<VcPolygonProps>,\n    loop: Boolean,\n    clampToGround: Boolean,\n    disableDepthTest: Boolean\n  },\n  emits: drawingEmit,\n  setup(props, ctx) {\n    // state\n    return useDrawingPolyline(props, ctx, 'VcDrawingPolygon')\n  }\n})\n"],"names":[],"mappings":";;;;;AAIA,uBAAe,eAAe,CAAC;AAC/B,EAAE,IAAI,EAAE,kBAAkB;AAC1B,EAAE,KAAK,EAAE;AACT,IAAI,GAAG,qBAAqB;AAC5B,IAAI,YAAY,EAAE,MAAM;AACxB,IAAI,aAAa,EAAE,MAAM;AACzB,IAAI,WAAW,EAAE,MAAM;AACvB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,aAAa,EAAE,OAAO;AAC1B,IAAI,gBAAgB,EAAE,OAAO;AAC7B,GAAG;AACH,EAAE,KAAK,EAAE,WAAW;AACpB,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE;AACpB,IAAI,OAAO,kBAAkB,CAAC,KAAK,EAAE,GAAG,EAAE,kBAAkB,CAAC,CAAC;AAC9D,GAAG;AACH,CAAC,CAAC;;;;"}