@zendir/ui 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +118 -84
- package/dist/react/astro/UnifiedTimeline.js +25 -2
- package/dist/react/astro/UnifiedTimeline.js.map +1 -1
- package/dist/react/charts/GroundTrackMap.d.ts +3 -1
- package/dist/react/charts/GroundTrackMap.js +35 -0
- package/dist/react/charts/GroundTrackMap.js.map +1 -1
- package/dist/react/charts/GroundTrackMapLeaflet.d.ts +3 -1
- package/dist/react/charts/GroundTrackMapLeaflet.js +167 -57
- package/dist/react/charts/GroundTrackMapLeaflet.js.map +1 -1
- package/dist/react/charts/groundTrackMapLeafletTiles.d.ts +10 -8
- package/dist/react/charts/groundTrackMapLeafletTiles.js +10 -3
- package/dist/react/charts/groundTrackMapLeafletTiles.js.map +1 -1
- package/dist/react/charts/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
const
|
|
1
|
+
const TILE_PRESETS = {
|
|
2
|
+
/** CartoDB dark — default space ops aesthetic. */
|
|
3
|
+
dark: "https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",
|
|
4
|
+
/** Esri World Imagery — natural satellite photos, makes the terminator dramatically visible. */
|
|
5
|
+
satellite: "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
|
|
6
|
+
/** CartoDB Voyager — light/neutral with labels. */
|
|
7
|
+
light: "https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png"
|
|
8
|
+
};
|
|
2
9
|
const CARTO_ATTRIBUTION = '© <a href="https://carto.com/attribution" target="_blank" rel="noopener noreferrer">CARTO</a>';
|
|
3
10
|
const FALLBACK_TILE = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
|
|
4
11
|
const OSM_ATTRIBUTION = '© <a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noopener noreferrer">OpenStreetMap contributors</a>';
|
|
5
12
|
export {
|
|
6
13
|
CARTO_ATTRIBUTION,
|
|
7
|
-
DEFAULT_TILE,
|
|
8
14
|
FALLBACK_TILE,
|
|
9
|
-
OSM_ATTRIBUTION
|
|
15
|
+
OSM_ATTRIBUTION,
|
|
16
|
+
TILE_PRESETS
|
|
10
17
|
};
|
|
11
18
|
//# sourceMappingURL=groundTrackMapLeafletTiles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groundTrackMapLeafletTiles.js","sources":["../../../src/react/charts/groundTrackMapLeafletTiles.ts"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"file":"groundTrackMapLeafletTiles.js","sources":["../../../src/react/charts/groundTrackMapLeafletTiles.ts"],"sourcesContent":["/**\n * Tile layer URL presets for common map styles.\n * Import and use as `tileUrl` to switch between map themes.\n */\nexport const TILE_PRESETS = {\n /** CartoDB dark — default space ops aesthetic. */\n dark: 'https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png',\n /** Esri World Imagery — natural satellite photos, makes the terminator dramatically visible. */\n satellite: 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',\n /** CartoDB Voyager — light/neutral with labels. */\n light: 'https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png',\n} as const;\n\n/** Primary basemap: CARTO dark with labels. */\nexport const DEFAULT_TILE =\n 'https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png';\n\nexport const CARTO_ATTRIBUTION =\n '© <a href=\"https://carto.com/attribution\" target=\"_blank\" rel=\"noopener noreferrer\">CARTO</a>';\n\n/** Fallback when primary tiles fail to avoid black tiles. */\nexport const FALLBACK_TILE = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';\n\nexport const OSM_ATTRIBUTION =\n '© <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\" rel=\"noopener noreferrer\">OpenStreetMap contributors</a>';\n\n/**\n * After this many consecutive tile errors, switch to the fallback layer.\n * Set to 1 so we bail out immediately on the first network failure instead\n * of waiting for several timeouts (which shows a black map for ~5 seconds).\n */\nexport const TILE_ERROR_THRESHOLD = 1;\n"],"names":[],"mappings":"AAIO,MAAM,eAAe;AAAA;AAAA,EAE1B,MAAM;AAAA;AAAA,EAEN,WAAW;AAAA;AAAA,EAEX,OAAO;AACT;AAMO,MAAM,oBACX;AAGK,MAAM,gBAAgB;AAEtB,MAAM,kBACX;"}
|
|
@@ -8,3 +8,4 @@ export type { AstroChartHandle, AstroChartProps, ChartType, ChartTheme, DataPoin
|
|
|
8
8
|
PowerChartProps, AttitudeChartProps, ThermalHeatmapChartProps, LinkBudgetChartProps, SubsystemGaugeProps, OrbitChartProps, ContactWindowChartProps, SpectrumChartProps, ManeuverBudgetChartProps, EclipseTimelineChartProps, RoseDiagramProps, HeliocentricOrbitProps, Scatter3DChartProps, Bar3DChartProps, Surface3DChartProps, Lines3DChartProps, SphericalRadar3DChartProps, SphericalRadar3DData, TransferOrbit3DChartProps, TransferOrbitSegment, TransferOrbitWaypoint, AttitudeHistory3DChartProps, AttitudeHistoryPoint, ConjunctionAssessment3DChartProps, ConjunctionEvent, LaunchCorridor3DChartProps, LaunchCorridorData, AntennaPattern3DChartProps, AntennaPattern3DData, WaterfallChartProps, DopplerTrackChartProps, LinkMarginChartProps, ConstellationCoverageChartProps, ConjunctionChartProps, WaterfallDataPoint, WaterfallSignalMarker, DopplerTrackPoint, SatellitePassInfo, LinkMarginPoint, CoverageGridData, PowerGeneratorConfig, AttitudeGeneratorConfig, DopplerGeneratorConfig, WaterfallGeneratorConfig, ContactGeneratorConfig, HeliocentricGeneratorConfig, SpectrumGeneratorConfig, EclipseGeneratorConfig, CoverageGeneratorConfig, ConjunctionGeneratorConfig, PowerOverviewChartProps, PowerTimelinePoint, PowerEvent, PowerState, OperationalMode, EventType, PowerEventType, StreamOptions, StreamController, WebSocketStreamOptions, WebSocketStreamController, UseChartSyncOptions, EChartsTheme, } from './unified';
|
|
9
9
|
export { GroundTrackMap } from './GroundTrackMap';
|
|
10
10
|
export type { GroundTrackMapProps, SatelliteTrack, GroundStationEnhanced, TeamPath, SROGroundStation, MapPin, LightSource } from './GroundTrackMap';
|
|
11
|
+
export { TILE_PRESETS } from './groundTrackMapLeafletTiles';
|