{"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/geometries/ellipse-outline/index.ts"],"sourcesContent":["/*\n * @Author: zouyaoji@https://github.com/zouyaoji\n * @Date: 2021-09-16 09:28:13\n * @LastEditTime: 2022-03-30 10:37:05\n * @LastEditors: zouyaoji\n * @Description:\n * @FilePath: \\vue-cesium@next\\packages\\components\\geometries\\ellipse-outline\\index.ts\n */\nimport { VcComponentInternalInstance, VcComponentPublicInstance, VcPosition, 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 {\n  center,\n  semiMajorAxis,\n  semiMinorAxis,\n  ellipsoid,\n  height,\n  extrudedHeight,\n  rotation,\n  stRotation,\n  granularity,\n  numberOfVerticalLines\n} from '@vue-cesium/utils/cesium-props'\nimport { commonEmits } from '@vue-cesium/utils/emits'\nexport const ellipseOutlineGeometryProps = {\n  ...center,\n  ...semiMajorAxis,\n  ...semiMinorAxis,\n  ...ellipsoid,\n  ...height,\n  ...extrudedHeight,\n  ...rotation,\n  ...stRotation,\n  ...granularity,\n  ...numberOfVerticalLines\n}\nexport default defineComponent({\n  name: 'VcGeometryEllipseOutline',\n  props: ellipseOutlineGeometryProps,\n  emits: commonEmits,\n  setup(props, ctx) {\n    // state\n    const instance = getCurrentInstance() as VcComponentInternalInstance\n    instance.cesiumClass = 'EllipseOutlineGeometry'\n    useGeometries(props, ctx, instance)\n\n    return () => createCommentVNode(kebabCase(instance.proxy?.$options.name || 'v-if'))\n  }\n})\n\nexport type VcGeometryEllipseOutlineProps = {\n  /**\n   * The ellipse's center point in the fixed frame.\n   */\n  center: VcPosition\n  /**\n   * The length of the ellipse's semi-major axis in meters.\n   */\n  semiMajorAxis: number\n  /**\n   * The length of the ellipse's semi-minor axis in meters.\n   */\n  semiMinorAxis: number\n  /**\n   * The ellipsoid the ellipse will be on.\n   */\n  ellipsoid?: Cesium.Ellipsoid\n  /**\n   * The distance in meters between the ellipse and the ellipsoid surface.\n   */\n  height?: number\n  /**\n   * The distance in meters between the ellipse's extruded face and the ellipsoid surface.\n   */\n  extrudedHeight?: number\n  /**\n   * The angle of rotation counter-clockwise from north.\n   * Default value: 0.0\n   */\n  rotation?: number\n  /**\n   * The rotation of the texture coordinates counter-clockwise from north.\n   * Default value: 0.0\n   */\n  stRotation?: number\n  /**\n   * The angular distance between points on the ellipse in radians.\n   */\n  granularity?: number\n  /**\n   * Number of lines to draw between the top and bottom surface of an extruded ellipse.\n   * Default value: 16\n   */\n  numberOfVerticalLines?: number\n  /**\n   * Triggers before the VcGeometryEllipseOutline is loaded.\n   */\n  onBeforeLoad?: (instance: VcComponentInternalInstance) => void\n  /**\n   * Triggers when the VcGeometryEllipseOutline 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 VcGeometryEllipseOutline is destroyed.\n   */\n  onDestroyed?: (instance: VcComponentInternalInstance) => void\n}\n\nexport type VcGeometryEllipseOutlineRef = VcComponentPublicInstance<VcGeometryEllipseOutlineProps>\n"],"names":[],"mappings":";;;;;;;;AAyBO,MAAM,2BAA8B,GAAA;AAAA,EACzC,GAAG,MAAA;AAAA,EACH,GAAG,aAAA;AAAA,EACH,GAAG,aAAA;AAAA,EACH,GAAG,SAAA;AAAA,EACH,GAAG,MAAA;AAAA,EACH,GAAG,cAAA;AAAA,EACH,GAAG,QAAA;AAAA,EACH,GAAG,UAAA;AAAA,EACH,GAAG,WAAA;AAAA,EACH,GAAG,qBAAA;AACL,EAAA;AACA,6BAAe,eAAgB,CAAA;AAAA,EAC7B,IAAM,EAAA,0BAAA;AAAA,EACN,KAAO,EAAA,2BAAA;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,wBAAA,CAAA;AACvB,IAAc,aAAA,CAAA,KAAA,EAAO,KAAK,QAAQ,CAAA,CAAA;AAElC,IAAA,OAAO,MAAG;AA/Cd,MAAA,IAAA,EAAA,CAAA;AA+CiB,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;;;;"}