diff --git a/website/src/lib/components/embedding/EmbeddingPlayground.svelte b/website/src/lib/components/embedding/EmbeddingPlayground.svelte index 8f0458c9..e1d8c5ec 100644 --- a/website/src/lib/components/embedding/EmbeddingPlayground.svelte +++ b/website/src/lib/components/embedding/EmbeddingPlayground.svelte @@ -1,324 +1,330 @@ - - {$_('embedding.title')} - - - - {$_('embedding.mapbox_token')} - - {$_('embedding.file_urls')} - - {$_('embedding.drive_ids')} - - {$_('embedding.basemap')} - { - if (selected?.value) { - options.basemap = selected?.value; - } - }} - > - - - - - {#each allowedEmbeddingBasemaps as basemap} - {$_(`layers.label.${basemap}`)} - {/each} - - - - {$_('menu.elevation_profile')} - - - {#if options.elevation.show} - - - {$_('embedding.height')} - - - - - {$_('embedding.fill_by')} - - { - let value = selected?.value; - if (value === 'none') { - options.elevation.fill = undefined; - } else if (value === 'slope' || value === 'surface') { - options.elevation.fill = value; - } - }} - > - - - - - {$_('quantities.slope')} - {$_('quantities.surface')} - {$_('embedding.none')} - - - - - - {$_('embedding.show_controls')} - - - - - - {$_('chart.show_speed')} - - - - - - - {$_('chart.show_heartrate')} - - - - - - - {$_('chart.show_cadence')} - - - - - - - {$_('chart.show_temperature')} - - - - - - - {$_('chart.show_power')} - - - - {/if} - - - - - {$_('menu.distance_markers')} - - - - - - - {$_('menu.direction_markers')} - - - - - {$_('menu.distance_units')} - - - - {$_('menu.metric')} - - - - {$_('menu.imperial')} - - - - {$_('menu.nautical')} - - - - - {$_('menu.velocity_units')} - - - - {$_('quantities.speed')} - - - - {$_('quantities.pace')} - - - - - {$_('menu.temperature_units')} - - - - {$_('menu.celsius')} - - - - {$_('menu.fahrenheit')} - - - - - - {$_('menu.mode')} - - - - {$_('menu.system')} - - - - {$_('menu.light')} - - - - {$_('menu.dark')} - - - - - - - - - {$_('embedding.manual_camera')} - - - - {$_('embedding.manual_camera_description')} - - - - {$_('embedding.latitude')} - {lat} - - - {$_('embedding.longitude')} - {lon} - - - {$_('embedding.zoom')} - {zoom} - - - {$_('embedding.bearing')} - {bearing} - - - {$_('embedding.pitch')} - {pitch} - - - - - {$_('embedding.preview')} - - - - - - {$_('embedding.code')} - - + + {$_('embedding.title')} + + + + {$_('embedding.mapbox_token')} + + {$_('embedding.file_urls')} + + {$_('embedding.drive_ids')} + + {$_('embedding.basemap')} + { + if (selected?.value) { + options.basemap = selected?.value; + } + }} + > + + + + + {#each allowedEmbeddingBasemaps as basemap} + {$_(`layers.label.${basemap}`)} + {/each} + + + + {$_('menu.elevation_profile')} + + + {#if options.elevation.show} + + + {$_('embedding.height')} + + + + + {$_('embedding.fill_by')} + + { + let value = selected?.value; + if (value === 'none') { + options.elevation.fill = undefined; + } else if (value === 'slope' || value === 'surface') { + options.elevation.fill = value; + } + }} + > + + + + + {$_('quantities.slope')} + {$_('quantities.surface')} + {$_('embedding.none')} + + + + + + {$_('embedding.show_controls')} + + + + + + {$_('chart.show_speed')} + + + + + + + {$_('chart.show_heartrate')} + + + + + + + {$_('chart.show_cadence')} + + + + + + + {$_('chart.show_temperature')} + + + + + + + {$_('chart.show_power')} + + + + {/if} + + + + + {$_('menu.distance_markers')} + + + + + + + {$_('menu.direction_markers')} + + + + + {$_('menu.distance_units')} + + + + {$_('menu.metric')} + + + + {$_('menu.imperial')} + + + + {$_('menu.nautical')} + + + + + {$_('menu.velocity_units')} + + + + {$_('quantities.speed')} + + + + {$_('quantities.pace')} + + + + + {$_('menu.temperature_units')} + + + + {$_('menu.celsius')} + + + + {$_('menu.fahrenheit')} + + + + + + {$_('menu.mode')} + + + + {$_('menu.system')} + + + + {$_('menu.light')} + + + + {$_('menu.dark')} + + + + + + + + + {$_('embedding.manual_camera')} + + + + {$_('embedding.manual_camera_description')} + + + + {$_('embedding.latitude')} + {lat} + + + {$_('embedding.longitude')} + {lon} + + + {$_('embedding.zoom')} + {zoom} + + + {$_('embedding.bearing')} + {bearing} + + + {$_('embedding.pitch')} + {pitch} + + + + + {$_('embedding.preview')} + + + + + + {$_('embedding.code')} + + {``} - - + +
- {$_('embedding.manual_camera_description')} -
+ + {$_('embedding.title')} + + + + {$_('embedding.mapbox_token')} + + {$_('embedding.file_urls')} + + {$_('embedding.drive_ids')} + + {$_('embedding.basemap')} + { + if (selected?.value) { + options.basemap = selected?.value; + } + }} + > + + + + + {#each allowedEmbeddingBasemaps as basemap} + {$_(`layers.label.${basemap}`)} + {/each} + + + + {$_('menu.elevation_profile')} + + + {#if options.elevation.show} + + + {$_('embedding.height')} + + + + + {$_('embedding.fill_by')} + + { + let value = selected?.value; + if (value === 'none') { + options.elevation.fill = undefined; + } else if (value === 'slope' || value === 'surface') { + options.elevation.fill = value; + } + }} + > + + + + + {$_('quantities.slope')} + {$_('quantities.surface')} + {$_('embedding.none')} + + + + + + {$_('embedding.show_controls')} + + + + + + {$_('chart.show_speed')} + + + + + + + {$_('chart.show_heartrate')} + + + + + + + {$_('chart.show_cadence')} + + + + + + + {$_('chart.show_temperature')} + + + + + + + {$_('chart.show_power')} + + + + {/if} + + + + + {$_('menu.distance_markers')} + + + + + + + {$_('menu.direction_markers')} + + + + + {$_('menu.distance_units')} + + + + {$_('menu.metric')} + + + + {$_('menu.imperial')} + + + + {$_('menu.nautical')} + + + + + {$_('menu.velocity_units')} + + + + {$_('quantities.speed')} + + + + {$_('quantities.pace')} + + + + + {$_('menu.temperature_units')} + + + + {$_('menu.celsius')} + + + + {$_('menu.fahrenheit')} + + + + + + {$_('menu.mode')} + + + + {$_('menu.system')} + + + + {$_('menu.light')} + + + + {$_('menu.dark')} + + + + + + + + + {$_('embedding.manual_camera')} + + + + {$_('embedding.manual_camera_description')} + + + + {$_('embedding.latitude')} + {lat} + + + {$_('embedding.longitude')} + {lon} + + + {$_('embedding.zoom')} + {zoom} + + + {$_('embedding.bearing')} + {bearing} + + + {$_('embedding.pitch')} + {pitch} + + + + + {$_('embedding.preview')} + + + + + + {$_('embedding.code')} + + {``} - - +
+ {$_('embedding.manual_camera_description')} +
{``}