Skip to content

Commit

Permalink
feat: added unready event
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Aug 22, 2022
1 parent eea883e commit e05a58d
Show file tree
Hide file tree
Showing 139 changed files with 582 additions and 12 deletions.
8 changes: 6 additions & 2 deletions packages/components/analyses/flood/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2021-12-31 10:30:21
* @LastEditTime: 2022-08-10 21:36:23
* @LastEditTime: 2022-08-22 20:31:30
* @LastEditors: zouyaoji
* @Description:
* @FilePath: \10_vue-cesium\packages\components\analyses\flood\index.ts
* @FilePath: \vue-cesium@next\packages\components\analyses\flood\index.ts
*/
import { defineComponent, getCurrentInstance, PropType, ref, h, createCommentVNode, WatchStopHandle, onUnmounted, watch } from 'vue'
import { polygonHierarchy } from '@vue-cesium/utils/cesium-props'
Expand Down Expand Up @@ -226,6 +226,10 @@ export interface VcAnalysisFloodProps {
* Triggers when the VcAnalysisFlood is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcAnalysisFlood is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/analyses/src/defaultProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ export type VcAnalysesProps = {
* Triggers when the VcAnalyses is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcAnalyses is destroyed.
*/
Expand Down
6 changes: 5 additions & 1 deletion packages/components/analyses/src/sightline/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2022-01-04 21:42:14
* @LastEditTime: 2022-06-24 16:54:13
* @LastEditTime: 2022-08-22 20:31:06
* @LastEditors: zouyaoji
* @Description:
* @FilePath: \vue-cesium@next\packages\components\analyses\src\sightline\index.ts
Expand Down Expand Up @@ -107,6 +107,10 @@ export type VcAnalysisSightlineProps = {
* Triggers when the VcAnalysisSightline is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcAnalysisSightline is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/analyses/src/viewshed/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ export type VcAnalysisViewshedProps = {
* Triggers when the VcAnalysisViewshed is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcAnalysisViewshed is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/controls/compass/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ export type VcCompassProps = {
* Triggers when the VcCompass is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcCompass is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/controls/distance-legend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ export type VcDistanceLegendProps = {
* Triggers when the VcCompass is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcCompass is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/controls/my-location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,10 @@ export type VcMyLocationProps = {
* Triggers when the VcCompass is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcCompass is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/controls/navigation-sm/compass-sm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ export type VcCompassSmProps = {
* Triggers when the VcNavigationSm is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcNavigationSm is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/controls/navigation-sm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ export type VcNavigationSmProps = {
* Triggers when the VcNavigationSm is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcNavigationSm is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/controls/navigation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,10 @@ export interface VcNavigationProps {
* Triggers when the VcNavigation is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcNavigation is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/controls/print/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,10 @@ export type VcPrintProps = {
* Triggers when the VcPrint is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcPrint is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/controls/selection-indicator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ export interface VcSelectionIndicatorProps {
* Triggers when the VcSelectionIndicator is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcSelectionIndicator is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/controls/status-bar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,10 @@ export interface VcStatusBarProps {
* Triggers when the VcStatusBar is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcStatusBar is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/controls/vc-overview-map/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ export type VcOverviewMapProps = {
* Triggers when the VcOverviewMap is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcOverviewMap is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/controls/zoom-control/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,10 @@ export type VcZoomControlProps = {
* Triggers when the VcZoomControl is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcZoomControl is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/datasources/custom/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export type VcDatasourceCustomProps = {
* Triggers when the VcDatasourceCustom is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcDatasourceCustom is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/datasources/czml/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ export type VcDatasourceCzmlProps = {
* Triggers when the VcDatasourceCzml is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcDatasourceCzml is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/datasources/geojson/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ export type VcDatasourceGeojsonProps = {
* Triggers when the VcDatasourceGeojson is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcDatasourceGeojson is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/datasources/kml/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ export type VcDatasourceKmlProps = {
* Triggers when the VcDatasourceKml is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcDatasourceKml is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/drawings/src/defaultProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ export type VcDrawingsProps = {
* Triggers when the VcDrawings is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcDrawings is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/drawings/src/pin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ export type VcDrawingPinProps = {
* Triggers when the VcDrawingPin is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcDrawingPin is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/drawings/src/point/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ export type VcDrawingPointProps = {
* Triggers when the VcDrawingPoint is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcDrawingPoint is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/drawings/src/polygon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ export type VcDrawingPolygonProps = {
* Triggers when the VcDrawingPolygon is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcDrawingPolygon is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/drawings/src/polyline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ export type VcDrawingPolylineProps = {
* Triggers when the VcDrawingPolyline is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcDrawingPolyline is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/drawings/src/rectangle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ export type VcDrawingRectangleProps = {
* Triggers when the VcDrawingRectangle is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcDrawingRectangle is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/drawings/src/regular/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ export type VcDrawingRegularProps = {
* Triggers when the VcDrawingRegular is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcDrawingRegular is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/entity/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ export type VcEntityProps = {
* Triggers when the VcEntity is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcEntity is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/geometries/box-outline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ export type VcGeometryBoxOutlineProps = {
* Triggers when the VcGeometryBoxOutline is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcGeometryBoxOutline is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/geometries/box/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export type VcGeometryBoxProps = {
* Triggers when the VcGeometryBox is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcGeometryBox is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/geometries/circle-outline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ export type VcGeometryCircleOutlineProps = {
* Triggers when the VcGeometryCircleOutline is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcGeometryCircleOutline is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/geometries/circle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ export type VcGeometryCircleProps = {
* Triggers when the VcCircleGeometry is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcCircleGeometry is destroyed.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export type VcGeometryPolygonCoplanarOutlineProps = {
* Triggers when the VcGeometryPolygonCoplanarOutline is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcGeometryPolygonCoplanarOutline is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/geometries/coplanar-polygon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ export type VcGeometryPolygonCoplanarProps = {
* Triggers when the VcGeometryPolygonCoplanar is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcGeometryPolygonCoplanar is destroyed.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/geometries/corridor-outline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ export type VcGeometryCorridorOutlineProps = {
* Triggers when the VcGeometryCorridorOutline is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void
/**
* Triggers when the VcGeometryCorridorOutline is destroyed.
*/
Expand Down
Loading

0 comments on commit e05a58d

Please sign in to comment.