{"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/providers/wms/index.ts"],"sourcesContent":["/*\n * @Author: zouyaoji@https://github.com/zouyaoji\n * @Date: 2021-09-16 09:28:13\n * @LastEditTime: 2022-01-16 00:39:55\n * @LastEditors: zouyaoji\n * @Description:\n * @FilePath: \\vue-cesium@next\\packages\\components\\providers\\wms\\index.ts\n */\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport { createCommentVNode, defineComponent, getCurrentInstance } from 'vue'\nimport type { VcComponentInternalInstance } from '@vue-cesium/utils/types'\nimport { useProviders } from '@vue-cesium/composables'\nimport {\n  url,\n  layers,\n  enablePickFeatures,\n  getFeatureInfoFormats,\n  rectangle,\n  tilingScheme,\n  ellipsoid,\n  tileWidth,\n  tileHeight,\n  minimumLevel,\n  maximumLevel,\n  credit,\n  subdomains,\n  clock,\n  times\n} from '@vue-cesium/utils/cesium-props'\nimport { kebabCase } from '@vue-cesium/utils/util'\nimport { providerEmits } from '@vue-cesium/utils/emits'\n\nexport const wmsImageryProviderProps = {\n  ...url,\n  ...layers,\n  parameters: Object,\n  getFeatureInfoParameters: Object,\n  ...enablePickFeatures,\n  ...getFeatureInfoFormats,\n  ...rectangle,\n  ...tilingScheme,\n  ...ellipsoid,\n  ...tileWidth,\n  ...tileHeight,\n  ...minimumLevel,\n  ...maximumLevel,\n  crs: String,\n  srs: String,\n  ...credit,\n  ...subdomains,\n  ...clock,\n  ...times,\n  getFeatureInfoUrl: [String, Object] as PropType<string | Cesium.Resource>\n}\nexport default defineComponent({\n  name: 'VcImageryProviderWms',\n  props: wmsImageryProviderProps,\n  emits: providerEmits,\n  setup(props, ctx) {\n    // state\n    const instance = getCurrentInstance() as VcComponentInternalInstance\n    instance.cesiumClass = 'WebMapServiceImageryProvider'\n    useProviders(props, ctx, instance)\n    return () => createCommentVNode(kebabCase(instance.proxy?.$options.name || ''))\n  }\n})\n\nexport type VcImageryProviderWmsProps = ExtractPropTypes<typeof wmsImageryProviderProps>\n"],"names":[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