@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.
@@ -1,11 +1,18 @@
1
- const DEFAULT_TILE = "https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png";
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 = '&copy; <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 = '&copy; <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":["/**\r\n * Tile layer URLs and settings for GroundTrackMapLeaflet.\r\n *\r\n * Primary: CARTO dark basemap (good looking, free, no key needed).\r\n * - URL uses the current basemaps.cartocdn.com path (no /rastertiles/ prefix).\r\n * - {r} is empty on standard displays, '@2x' on HiDPI handled by {r} token.\r\n * - subdomains: 'abcd' (four CARTO CDN shards).\r\n *\r\n * Fallback: OSM always reliable, used when CARTO tiles fail.\r\n */\r\n\r\n/** Primary basemap: CARTO dark with labels. */\r\nexport const DEFAULT_TILE =\r\n 'https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png';\r\n\r\nexport const CARTO_ATTRIBUTION =\r\n '&copy; <a href=\"https://carto.com/attribution\" target=\"_blank\" rel=\"noopener noreferrer\">CARTO</a>';\r\n\r\n/** Fallback when primary tiles fail to avoid black tiles. */\r\nexport const FALLBACK_TILE = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';\r\n\r\nexport const OSM_ATTRIBUTION =\r\n '&copy; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\" rel=\"noopener noreferrer\">OpenStreetMap contributors</a>';\r\n\r\n/**\r\n * After this many consecutive tile errors, switch to the fallback layer.\r\n * Set to 1 so we bail out immediately on the first network failure instead\r\n * of waiting for several timeouts (which shows a black map for ~5 seconds).\r\n */\r\nexport const TILE_ERROR_THRESHOLD = 1;\r\n"],"names":[],"mappings":"AAYO,MAAM,eACX;AAEK,MAAM,oBACX;AAGK,MAAM,gBAAgB;AAEtB,MAAM,kBACX;"}
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 Voyagerlight/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 '&copy; <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 '&copy; <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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendir/ui",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "React UI components for space operations, built on the Astro UX Design System",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",