casc-cesium
Version:
Vue 3.x components for CesiumJS.
1 lines • 3.83 kB
Source Map (JSON)
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/controls/index.ts"],"sourcesContent":["/*\n * @Author: zouyaoji@https://github.com/zouyaoji\n * @Date: 2021-10-27 15:54:11\n * @LastEditTime: 2022-04-12 17:37:31\n * @LastEditors: zouyaoji\n * @Description:\n * @FilePath: \\vue-cesium@next\\packages\\components\\controls\\index.ts\n */\nimport { App } from 'vue'\nimport Compass from './compass'\nimport ZoomControl from './zoom-control'\nimport Print from './print'\nimport MyLocation from './my-location'\nimport StatusBar from './status-bar'\nimport DistanceLegend from './distance-legend'\nimport Navigation from './navigation'\nimport CompassSm from './navigation-sm/compass-sm'\nimport ZoomControlSm from './navigation-sm/zoom-control-sm'\nimport NavigationSm from './navigation-sm'\nimport OverviewMap from './vc-overview-map'\nimport SelectionIndicator from './selection-indicator'\nimport { SFCWithInstall } from 'casc-cesium-utils/types'\n\nconst components = [\n Compass,\n ZoomControl,\n Print,\n MyLocation,\n StatusBar,\n DistanceLegend,\n Navigation,\n CompassSm,\n ZoomControlSm,\n NavigationSm,\n OverviewMap,\n SelectionIndicator\n]\n\nconst install = (app: App): void => {\n components.forEach(cmp => {\n app.component(cmp.name, cmp)\n })\n}\n\nexport default {\n install\n}\n\ncomponents.forEach(cmp => {\n cmp['install'] = (app: App): void => {\n app.component(cmp.name, cmp)\n }\n})\n\nexport const VcCompass = Compass as SFCWithInstall<typeof Compass>\nexport const VcZoomControl = ZoomControl as SFCWithInstall<typeof ZoomControl>\nexport const VcPrint = Print as SFCWithInstall<typeof Print>\nexport const VcMyLocation = MyLocation as SFCWithInstall<typeof MyLocation>\nexport const VcStatusBar = StatusBar as SFCWithInstall<typeof StatusBar>\nexport const VcDistanceLegend = DistanceLegend as SFCWithInstall<typeof DistanceLegend>\nexport const VcNavigation = Navigation as SFCWithInstall<typeof Navigation>\nexport const VcCompassSm = CompassSm as SFCWithInstall<typeof CompassSm>\nexport const VcZoomControlSm = ZoomControlSm as SFCWithInstall<typeof ZoomControlSm>\nexport const VcNavigationSm = NavigationSm as SFCWithInstall<typeof NavigationSm>\nexport const VcOverviewMap = OverviewMap as SFCWithInstall<typeof OverviewMap>\nexport const VcSelectionIndicator = SelectionIndicator as SFCWithInstall<typeof SelectionIndicator>\n\nexport * from './compass'\nexport * from './distance-legend'\nexport * from './my-location'\nexport * from './navigation'\nexport * from './navigation-sm'\nexport * from './navigation-sm/zoom-control-sm'\nexport * from './navigation-sm/compass-sm'\nexport * from './print'\nexport * from './selection-indicator'\nexport * from './status-bar'\nexport * from './vc-overview-map'\nexport * from './zoom-control'\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAM,UAAU,GAAG;AACnB,EAAE,OAAO;AACT,EAAE,WAAW;AACb,EAAE,KAAK;AACP,EAAE,UAAU;AACZ,EAAE,SAAS;AACX,EAAE,cAAc;AAChB,EAAE,UAAU;AACZ,EAAE,SAAS;AACX,EAAE,aAAa;AACf,EAAE,YAAY;AACd,EAAE,WAAW;AACb,EAAE,kBAAkB;AACpB,CAAC,CAAC;AACF,MAAM,OAAO,GAAG,CAAC,GAAG,KAAK;AACzB,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AAC9B,IAAI,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACjC,GAAG,CAAC,CAAC;AACL,CAAC,CAAC;AACF,YAAe;AACf,EAAE,OAAO;AACT,CAAC,CAAC;AACF,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AAC5B,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK;AAC5B,IAAI,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACjC,GAAG,CAAC;AACJ,CAAC,CAAC,CAAC;AACS,MAAC,SAAS,GAAG,QAAQ;AACrB,MAAC,aAAa,GAAG,YAAY;AAC7B,MAAC,OAAO,GAAG,MAAM;AACjB,MAAC,YAAY,GAAG,WAAW;AAC3B,MAAC,WAAW,GAAG,UAAU;AACzB,MAAC,gBAAgB,GAAG,eAAe;AACnC,MAAC,YAAY,GAAG,WAAW;AAC3B,MAAC,WAAW,GAAG,UAAU;AACzB,MAAC,eAAe,GAAG,cAAc;AACjC,MAAC,cAAc,GAAG,aAAa;AAC/B,MAAC,aAAa,GAAG,YAAY;AAC7B,MAAC,oBAAoB,GAAG;;;;"}