@tomtom-org/maps-sdk-plugin-landmarks-3d 0.2.1 → 0.3.0
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 +279 -0
- package/README.md +52 -4
- package/THIRD_PARTY.txt +2 -2
- package/dist/THIRD_PARTY.txt +2 -2
- package/dist/{bundledTranscoder-CUVU7Ihm.js → bundledTranscoder-DlqNk7PG.js} +1 -1
- package/dist/index.d.ts +464 -326
- package/dist/index.es.js +1 -1
- package/dist/knobs.d.ts +16 -0
- package/dist/knobs.es.js +1 -0
- package/dist/surfacesKnobCatalogue-B1prY4bG.d.ts +1201 -0
- package/dist/surfacesKnobCatalogue-B2lRYedD.js +1 -0
- package/dist/third-party.json +2 -2
- package/package.json +12 -7
package/dist/knobs.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { C as facadePatterns, E as paletteModes, S as buildingsPresets, T as paletteMapColors, _ as Buildings3DKnobValueOf, a as glSurfacesKnobIds, b as buildings3DKnobCatalogue, c as LandmarkTextureUse, d as Landmarks3DKnobValueOf, f as landmarkTextureUses, g as Buildings3DKnobId, h as Buildings3DKnob, i as glSurfacesKnobCatalogue, l as Landmarks3DKnob, m as landmarks3DKnobIds, n as GLSurfacesKnobId, o as SurfaceSeason, p as landmarks3DKnobCatalogue, r as GLSurfacesKnobValueOf, s as surfaceSeasons, t as GLSurfacesKnob, u as Landmarks3DKnobId, v as BuildingsPreset, w as PaletteMode, x as buildings3DKnobIds, y as FacadePattern } from "./surfacesKnobCatalogue-B1prY4bG.js";
|
|
2
|
+
//#region src/surfaces/surfaceTargets.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* The surfaces the plugin textures, each drawn with a material of its own.
|
|
5
|
+
*
|
|
6
|
+
* @group GL Surfaces
|
|
7
|
+
*/
|
|
8
|
+
export declare const surfaceKinds: readonly ["water", "ice", "forest", "grass", "scrub", "farmland", "sand", "mud", "gravel", "rock", "paving", "urban", "roads"];
|
|
9
|
+
/**
|
|
10
|
+
* One of {@link surfaceKinds}.
|
|
11
|
+
*
|
|
12
|
+
* @group GL Surfaces
|
|
13
|
+
*/
|
|
14
|
+
type SurfaceKind = (typeof surfaceKinds)[number];
|
|
15
|
+
//#endregion
|
|
16
|
+
export { type Buildings3DKnob, type Buildings3DKnobId, type Buildings3DKnobValueOf, type BuildingsPreset, type FacadePattern, type GLSurfacesKnob, type GLSurfacesKnobId, type GLSurfacesKnobValueOf, type LandmarkTextureUse, type Landmarks3DKnob, type Landmarks3DKnobId, type Landmarks3DKnobValueOf, type PaletteMode, type SurfaceKind, type SurfaceSeason, buildings3DKnobCatalogue, buildings3DKnobIds, buildingsPresets, facadePatterns, glSurfacesKnobCatalogue, glSurfacesKnobIds, landmarkTextureUses, landmarks3DKnobCatalogue, landmarks3DKnobIds, paletteMapColors, paletteModes, surfaceSeasons };
|
package/dist/knobs.es.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as LIGHT_ALTITUDE_RANGE,a as surfaceSeasons,d as landmarkTextureUses,f as landmarks3DKnobCatalogue,g as DEGREES_RANGE,h as paletteModes,m as paletteMapColors,n as glSurfacesKnobIds,p as landmarks3DKnobIds,t as glSurfacesKnobCatalogue,u as surfaceKinds,v as UNIT_RANGE,y as withIds}from"./surfacesKnobCatalogue-B2lRYedD.js";import{standardStyleIDs}from"@tomtom-org/maps-sdk/map";var facadePatterns=["mixed","residential","office","glass","plain"],buildingsPresets=/* @__PURE__ */(()=>["auto",...standardStyleIDs])(),buildings3DKnobCatalogue=/* @__PURE__ */withIds({visible:{kind:"toggle",description:"The 3D buildings.",default:!0},preset:{kind:"enum",description:"Look every unset knob takes: a standard style's, or auto, which follows the map's standard style.",options:buildingsPresets,default:"auto"},opacity:{kind:"number",description:"Opacity of the buildings, and of the landmarks left unset among them, 0 to 1.",range:UNIT_RANGE},minZoom:{kind:"number",description:"Lowest zoom the buildings are drawn at, and the landmarks left unset among them.",range:{min:13,max:22,step:1,bounds:"hard"}},"facade.pattern":{kind:"enum",description:"How windows are laid out: mixed (by building height), residential, office, glass (curtain walls) or plain (no windows).",options:facadePatterns},"facade.intensity":{kind:"number",description:"How strongly the windows show on the walls, and the landmarks' own texture among the buildings while their texture is detail, 0 (plain walls) to 1.",range:UNIT_RANGE},"facade.floorHeightMeters":{kind:"number",description:"Height of one storey, which spaces the rows of windows. The ground floor is a third taller.",range:{min:2.5,max:6,step:.1,bounds:"hard-min"}},"walls.color":{kind:"color",description:"Colour of the walls. Unset: the map style's 3D building colour of each kind of building, following the map colours that restyle them, and the colour of the buildings of no named kind is the one reported. Landmarks left unset among the buildings take it too."},"walls.palette":{kind:"colors",description:"Colours the walls take, one per building: CSS colours, or map colours by knob id (colors.accent), which follow the map. Empty: none. Unset landmarks among the buildings take it too.",options:paletteMapColors},"walls.paletteMode":{kind:"enum",description:"pick: each building takes one palette colour; blend: a mix of two neighbouring ones, a gradient along the palette.",options:paletteModes},"walls.paletteIntensity":{kind:"number",description:"How far the walls move from their colour to their palette colour, 0 to 1. Lower it for a hint of the palette.",range:UNIT_RANGE},"walls.variation":{kind:"number",description:"How much each building differs from the next in shade and warmth, 0 (all alike) to 1.",range:UNIT_RANGE},"hover.color":{kind:"color",description:"Colour the hovered building turns towards, while a handler listens to the buildings' events. Unset: the map's accent, else blue."},"hover.intensity":{kind:"number",description:"How far the hovered building turns towards its hover colour, 0 to 1.",range:UNIT_RANGE},"click.color":{kind:"color",description:"Colour the clicked building turns towards, until the next click lands elsewhere. Unset: the map's accent, else blue."},"click.intensity":{kind:"number",description:"How far the clicked building turns towards its click colour, 0 to 1.",range:UNIT_RANGE},"roofs.color":{kind:"color",description:"Colour of the roofs. Unset: a shade darker than each building's walls, reported as the walls' colour; `streetSatellite` sets its own."},"roofs.palette":{kind:"colors",description:"Colours the roofs take, one per building, as walls.palette does. Empty: none, and with roofs.color unset too, the roofs follow the walls, their palette included.",options:paletteMapColors},"roofs.paletteMode":{kind:"enum",description:"pick: each roof takes one palette colour; blend: a mix of two neighbouring ones.",options:paletteModes},"roofs.paletteIntensity":{kind:"number",description:"How far the roofs move from their colour to their palette colour, 0 to 1.",range:UNIT_RANGE},"windows.color":{kind:"color",description:"Colour of the window glass."},"reflections.intensity":{kind:"number",description:"How much the window glass mirrors the street, the facades across it and the sky, and catches the sun, 0 (matte) to 1. Glass curtain walls reflect the most, landmarks a little; the sky's colour is the ambient light's.",range:UNIT_RANGE},"litWindows.color":{kind:"color",description:"Colour of the windows lit from inside."},"litWindows.fraction":{kind:"number",description:"Share of the windows lit from inside, 0 to 1. The dark presets light some.",range:UNIT_RANGE},"litWindows.intensity":{kind:"number",description:"Brightness of the lit windows, 0 to 1. Pair it with the map effects bloom for a night glow.",range:UNIT_RANGE},"light.direction":{kind:"number",description:"Direction the light comes from, in degrees clockwise from north. Shadows fall the opposite way. Unset: the map's light where one is placed, as the styling module's `view.light` knobs do, else the preset's.",range:DEGREES_RANGE},"light.altitude":{kind:"number",description:"Height of the light above the horizon, in degrees (90 = overhead); lower casts longer shadows. Unset: the map's light, as for `light.direction`.",range:LIGHT_ALTITUDE_RANGE},"light.color":{kind:"color",description:"Colour of the light: the sun on light presets, the moon on dark ones."},"light.intensity":{kind:"number",description:"Strength of the light, 0 to 1.",range:UNIT_RANGE},"ambientLight.color":{kind:"color",description:"Colour of the light from the sky, which also tints the reflections in the glass."},"ambientLight.intensity":{kind:"number",description:"Strength of the light from the sky, 0 to 1, which lights the walls in shade.",range:UNIT_RANGE},"shadows.visible":{kind:"toggle",description:"Shadows the buildings and the landmarks among them cast, on each other and on the ground."},"shadows.intensity":{kind:"number",description:"Darkness of the shadows, 0 to 1.",range:UNIT_RANGE},"roadLabels.occluded":{kind:"toggle",description:"Road names draw under the buildings: hidden wherever a building covers them, they give way to the labels above them."},"pois.occluded":{kind:"toggle",description:"The style's POIs draw under the buildings: hidden wherever a building covers them, still keeping other labels off, they give way to the labels above them."}}),buildings3DKnobIds=/* @__PURE__ */buildings3DKnobCatalogue.map(({id:e})=>e);export{buildings3DKnobCatalogue,buildings3DKnobIds,buildingsPresets,facadePatterns,glSurfacesKnobCatalogue,glSurfacesKnobIds,landmarkTextureUses,landmarks3DKnobCatalogue,landmarks3DKnobIds,paletteMapColors,paletteModes,surfaceKinds,surfaceSeasons};
|