@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{mapColorKnobId,mapColorNames}from"@tomtom-org/maps-sdk/map";var UNIT_RANGE={min:0,max:1,step:.05,bounds:"hard"},DEGREES_RANGE={min:0,max:359,step:1,bounds:"hard"},LIGHT_ALTITUDE_RANGE={min:5,max:90,step:1,bounds:"hard"},withIds=e=>Object.keys(e).map(s=>({id:s,...e[s]})),paletteModes=["pick","blend"],paletteMapColors=/* @__PURE__ */(()=>mapColorNames.map(mapColorKnobId))(),ZOOM_RANGE={min:0,max:22,step:1,bounds:"hard"},landmarkTextureUses=["mask","detail","color"],landmarks3DKnobCatalogue=/* @__PURE__ */withIds({visible:{kind:"toggle",description:"The landmark models.",default:!0},color:{kind:"color",description:"Colour the landmarks are shaded in. Unset: the base map's 3D buildings' colour, following the map colours that restyle them."},palette:{kind:"colors",description:"Colours the landmarks take, one per landmark: CSS colours, or map colours by knob id (colors.accent), which follow the map. Unset: none, or the walls' palette under a Buildings3D while color is unset.",options:paletteMapColors},paletteMode:{kind:"enum",description:"pick: each landmark takes one palette colour; blend: a mix of two neighbouring ones. Unset: pick, or the walls' one under a Buildings3D.",options:paletteModes},paletteIntensity:{kind:"number",description:"How far a landmark moves from its color to its palette colour, 0 to 1. Unset: 1, or the walls' one under a Buildings3D.",range:UNIT_RANGE},variation:{kind:"number",description:"How much each landmark differs from the next in shade and warmth, 0 to 1. Unset: 0, or the walls' one under a Buildings3D.",range:UNIT_RANGE},"hover.color":{kind:"color",description:"Colour the hovered landmark turns towards, while a handler listens to the landmarks' events. Unset: the map's accent, else blue, or the buildings' one under a Buildings3D."},"hover.intensity":{kind:"number",description:"How far the hovered landmark turns towards its hover colour, 0 to 1. Unset: 0.35, or the buildings' one under a Buildings3D.",range:UNIT_RANGE},"click.color":{kind:"color",description:"Colour the clicked landmark turns towards, until the next click lands elsewhere. Unset: the map's accent, else blue, or the buildings' one under a Buildings3D."},"click.intensity":{kind:"number",description:"How far the clicked landmark turns towards its click colour, 0 to 1. Unset: 0.7, or the buildings' one under a Buildings3D.",range:UNIT_RANGE},texture:{kind:"enum",description:"What the landmarks' textures add to their silhouette: mask (nothing), detail (their shading over the color) or color (their own colours instead). Unset: mask; detail under a Buildings3D; color on streetSatellite.",options:landmarkTextureUses},opacity:{kind:"number",description:"Opacity of the landmarks, 0 to 1. Unset: the base map's 3D buildings' opacity.",range:UNIT_RANGE},verticalGradient:{kind:"toggle",description:"Whether the landmarks' walls darken towards the ground. Unset: as the base map's 3D buildings do. No effect while a Buildings3D draws, whose walls have no gradient."},minZoom:{kind:"number",description:"Lowest zoom the landmarks are drawn at, 15 at the earliest, where their tiles start. Unset: the base map's 3D buildings' one.",range:ZOOM_RANGE},maxZoom:{kind:"number",description:"Highest whole zoom level the landmarks are drawn at, up to the next one. Unset: the base map's 3D buildings' one, or 22 while a Buildings3D draws.",range:ZOOM_RANGE}}),landmarks3DKnobIds=/* @__PURE__ */landmarks3DKnobCatalogue.map(({id:e})=>e),surfaceKinds=["water","ice","forest","grass","scrub","farmland","sand","mud","gravel","rock","paving","urban","roads"],SURFACE_IDS={water:1,forest:2,grass:3,farmland:4,sand:5,rock:6,roads:7,ice:8,scrub:9,mud:10,gravel:11,paving:12,urban:13},SURFACE_ID_COUNT=/* @__PURE__ */(()=>Math.max(...Object.values(SURFACE_IDS))+1)(),STYLE_LAYER_IDS={builtUp:"LULC - Built-up area",earthCover:"LULC - Earth Cover",landuse:"LULC - Landuse",landcover:"LULC - Landcover",outdoorAndSport:"LULC - Outdoor & Sport",water:"Water - Fill",intermittentWater:"Water - Intermittent",pedestrian:"Areas - Pedestrian",buildings:"Buildings - Fill",street:"Surface - Street"},ROAD_LAYER_IDS=/* @__PURE__ */(()=>["Surface - Minor road",STYLE_LAYER_IDS.street,"Surface - Link road","Surface - Tertiary road","Surface - Secondary road","Surface - Major road small scale outline","Surface - Primary road","Surface - Motorway & Trunk"])(),isGlacier=["==",["get","category"],"glacier"],isIntermittent=["==",["get","intermittent"],!0],isWaterBarrier=["==",["get","category"],"water_barrier"],isBareland=e=>["all",["==",["get","category"],"bareland"],["==",["get","subcategory"],e]],waterClasses={ice:isGlacier,water:["!",isGlacier]},structureClasses={rock:isWaterBarrier,paving:["!",isWaterBarrier]},standardStyleSurfaceTargets=/* @__PURE__ */(()=>[{layerId:STYLE_LAYER_IDS.builtUp,classes:{urban:!0}},{layerId:STYLE_LAYER_IDS.earthCover,maxZoom:12,classes:{forest:["==",["get","category"],"woody"],grass:["==",["get","category"],"herbaceous"],farmland:["==",["get","category"],"cropland"],sand:["==",["get","category"],"sand"],ice:["==",["get","category"],"ice_and_snow"]}},{layerId:"LULC - Protected Areas",classes:{}},{layerId:STYLE_LAYER_IDS.landuse,classes:{grass:["any",["match",["get","group"],["outdoor","sport"],!0,!1],["match",["get","category"],["cemetery","camping"],!0,!1]],urban:["match",["get","group"],["outdoor","sport"],!1,!0]}},{layerId:STYLE_LAYER_IDS.landcover,classes:{forest:["==",["get","category"],"woodland"],grass:["==",["get","category"],"grassland"],scrub:["==",["get","category"],"shrubland"],farmland:["==",["get","category"],"agricultural"],sand:["==",["get","category"],"sandy"],mud:isBareland("mud"),gravel:isBareland("shingle"),rock:["==",["get","category"],"bareland"]}},{layerId:STYLE_LAYER_IDS.outdoorAndSport,classes:{grass:!0}},{layerId:"LULC - Parking & Driving",classes:{roads:!0}},{layerId:"Water - Line",classes:{water:["!",isIntermittent],mud:isIntermittent}},{layerId:"Water - Shadow",classes:waterClasses},{layerId:STYLE_LAYER_IDS.intermittentWater,classes:{mud:!0}},{layerId:STYLE_LAYER_IDS.water,classes:waterClasses},{layerId:"Hillshade",classes:{}},{layerId:"Structure - Bridge & Pier shadow",classes:structureClasses},{layerId:"Structure - Bridge & Pier line",classes:structureClasses},{layerId:"Structure - Bridge & Pier area",classes:structureClasses},{layerId:"Transit - Aeroway line",classes:{roads:!0}},{layerId:"Transit - Aeroway area",classes:{roads:!0}},{layerId:"Transit - Platform line",classes:{paving:!0}},{layerId:"Transit - Platform area",classes:{paving:!0}},{layerId:"Areas - Pedestrian shadow",classes:{paving:!0}},{layerId:STYLE_LAYER_IDS.pedestrian,classes:{paving:!0}},{layerId:"Areas - Service road",classes:{roads:!0}},...ROAD_LAYER_IDS.map(e=>({layerId:e,classes:{roads:!0},lanes:!0}))])(),surfaceSeasons=["spring","summer","autumn","winter","snow"],DEFAULT_SURFACE_SEASON="summer",isSurfaceSeason=e=>surfaceSeasons.includes(e),COUNT_FACTOR_RANGE={min:0,max:3,step:.1,bounds:"hard-min"},SIZE_FACTOR_RANGE={min:.5,max:2,step:.05,bounds:"hard"},intensityOf=(e,s)=>({kind:"number",description:`How strongly the ${e} texture shows over the style's colour, 0 (the style's flat colour) to 1.`,default:s,range:UNIT_RANGE}),seasonOf=e=>({kind:"enum",description:`The season to colour ${e} for, from the style's own colours. Unset: \`season\`.`,options:surfaceSeasons}),roleColorOf=e=>({kind:"color",description:`Colour of ${e}. Unset: the style's colour as the season shades it.`}),shareFactorOf=e=>({kind:"factor",description:`How often ${e} grow, times the share their kind of ground and its latitude give them: 0 for none, and every other kind takes their place.`,default:1,range:COUNT_FACTOR_RANGE}),patternOf=(e,s=.5)=>({kind:"number",description:`How strongly ${e} show, 0 (none) to 1.`,default:s,range:UNIT_RANGE}),surfacesKnobDefinitions={visible:{kind:"toggle",description:"The textured surfaces.",default:!0},season:{kind:"enum",description:"The season every surface and the trees are coloured for, each from the style's own colours, which a map's colour knobs set. A part's own `season` takes over from it.",default:"summer",options:surfaceSeasons},"surfaces.water.intensity":/* @__PURE__ */intensityOf("water",1),"surfaces.water.season":/* @__PURE__ */seasonOf("the water"),"surfaces.water.colors.shallow":/* @__PURE__ */roleColorOf("the shallows along the shore"),"surfaces.water.colors.foam":/* @__PURE__ */roleColorOf("the foam of the breakers and the waterline"),"surfaces.water.waves.heightFactor":{kind:"factor",description:"How steep the wind waves on open water stand, times their usual, 0 leaving the water a mirror. Seen from afar, they smooth into a glitter of the sun.",default:1,range:{min:0,max:3,step:.05,bounds:"hard-min"}},"surfaces.water.enclosed.waves.heightFactor":{kind:"factor",description:"How steep the ripples on enclosed water stand, such as canals, ponds and harbours, times the open water's waves.",default:.3,range:UNIT_RANGE},"surfaces.water.shore.intensity":{kind:"number",description:"How strongly an open shore shows: its shallows, the waves rolling in onto it, the breakers and their foam, 0 (none) to 1.",default:1,range:UNIT_RANGE},"surfaces.water.shore.reachMeters":{kind:"number",description:"How far out from an open shore, such as a lake or the sea, the waves turn to roll in onto it, in metres.",default:160,range:{min:0,max:400,step:10,bounds:"hard"}},"surfaces.water.reflection.intensity":{kind:"number",description:"How much the water mirrors the sky, which grows towards the horizon as on real water, 0 (none) to 1.",default:1,range:UNIT_RANGE},"surfaces.water.glint.intensity":{kind:"number",description:"How brightly the waves catch the sun, or the moon on dark styles, 0 (none) to 1.",default:1,range:UNIT_RANGE},"surfaces.water.glint.color":{kind:"color",description:"Colour of the water's glint. Unset: sunlight on light styles and streetSatellite, a dimmer moonlight on dark ones."},"surfaces.ice.intensity":/* @__PURE__ */intensityOf("glacier and snowfield",.8),"surfaces.ice.season":/* @__PURE__ */seasonOf("the glaciers and snowfields"),"surfaces.ice.colors.crevasses":/* @__PURE__ */roleColorOf("the glaciers' crevasses and their bare blue ice"),"surfaces.ice.crevasses.intensity":/* @__PURE__ */patternOf("the crevasses rifting the glaciers and the bare ice the wind scours"),"surfaces.forest.intensity":/* @__PURE__ */intensityOf("tree crowns",.9),"surfaces.forest.season":/* @__PURE__ */seasonOf("the forest"),"surfaces.forest.colors.broadleaf":/* @__PURE__ */roleColorOf("the forest's broadleaf crowns"),"surfaces.forest.colors.conifer":/* @__PURE__ */roleColorOf("the forest's conifer crowns"),"surfaces.forest.crowns.sizeFactor":{kind:"factor",description:"How wide the crowns of the forest stand, times their usual 8 m or so.",default:1,range:SIZE_FACTOR_RANGE},"surfaces.forest.conifer.fraction":{kind:"number",description:"The share of the forest's crowns that are conifers, 0 to 1.",default:.38,range:UNIT_RANGE},"surfaces.grass.intensity":/* @__PURE__ */intensityOf("grass",.8),"surfaces.grass.season":/* @__PURE__ */seasonOf("the grass"),"surfaces.grass.colors.lush":/* @__PURE__ */roleColorOf("the lush patches of grass"),"surfaces.grass.colors.dry":/* @__PURE__ */roleColorOf("the dry patches of grass"),"surfaces.grass.colors.flowers":/* @__PURE__ */roleColorOf("the flowers in unmown grass, among white ones"),"surfaces.grass.mown.fraction":{kind:"number",description:"The share of lawns that are mown, in stripes, rather than left long with flowers, 0 to 1.",default:.5,range:UNIT_RANGE},"surfaces.grass.stripes.intensity":/* @__PURE__ */patternOf("the mown stripes of the lawns"),"surfaces.grass.flowers.fraction":{kind:"number",description:"How many flowers dot the unmown grass: the share of its half-metre squares holding one, 0 to 0.2.",default:.02,range:{min:0,max:.2,step:.005,bounds:"hard"}},"surfaces.scrub.intensity":/* @__PURE__ */intensityOf("scrub and heath",.8),"surfaces.scrub.season":/* @__PURE__ */seasonOf("the scrub"),"surfaces.scrub.colors.bushes":/* @__PURE__ */roleColorOf("the bushes of the scrub"),"surfaces.scrub.bushes.intensity":/* @__PURE__ */patternOf("the bushes dotting the scrub, and their shadows",.7),"surfaces.farmland.intensity":/* @__PURE__ */intensityOf("field parcels",.9),"surfaces.farmland.season":/* @__PURE__ */seasonOf("the fields"),"surfaces.farmland.colors.young":/* @__PURE__ */roleColorOf("the fields of young green crops"),"surfaces.farmland.colors.cereal":/* @__PURE__ */roleColorOf("the cereal fields"),"surfaces.farmland.colors.soil":/* @__PURE__ */roleColorOf("the ploughed fields and the wheel tracks"),"surfaces.farmland.colors.pasture":/* @__PURE__ */roleColorOf("the pastures"),"surfaces.farmland.colors.rapeseed":/* @__PURE__ */roleColorOf("the rapeseed fields"),"surfaces.farmland.colors.stubble":/* @__PURE__ */roleColorOf("the stubble fields"),"surfaces.farmland.colors.hedges":/* @__PURE__ */roleColorOf("the hedges between the fields"),"surfaces.farmland.parcels.sizeFactor":{kind:"factor",description:"How large the field parcels are, times their usual 35 to 125 m across.",default:1,range:{min:.5,max:3,step:.05,bounds:"hard"}},"surfaces.farmland.rows.intensity":/* @__PURE__ */patternOf("the rows and furrows of the fields"),"surfaces.farmland.hedges.intensity":/* @__PURE__ */patternOf("the hedges between the fields",.85),"surfaces.sand.intensity":/* @__PURE__ */intensityOf("dunes and ripples",.8),"surfaces.sand.season":/* @__PURE__ */seasonOf("the sand"),"surfaces.sand.colors.wet":/* @__PURE__ */roleColorOf("the wet sand along the water"),"surfaces.sand.dunes.intensity":/* @__PURE__ */patternOf("the sunlit dunes"),"surfaces.sand.ripples.intensity":/* @__PURE__ */patternOf("the ripples the wind lays across the sand"),"surfaces.sand.wet.widthMeters":{kind:"number",description:"How far up from the water the sand is wet, in metres, about as far as the waves run.",default:4,range:{min:0,max:12,step:.5,bounds:"hard"}},"surfaces.mud.intensity":/* @__PURE__ */intensityOf("mud flat",.8),"surfaces.mud.season":/* @__PURE__ */seasonOf("the mud flats and the beds of water that runs dry"),"surfaces.mud.colors.wet":/* @__PURE__ */roleColorOf("the wet mud along the creeks and puddles"),"surfaces.mud.puddles.intensity":/* @__PURE__ */patternOf("the creeks and puddles over the mud, mirroring the sky"),"surfaces.gravel.intensity":/* @__PURE__ */intensityOf("shingle",.8),"surfaces.gravel.season":/* @__PURE__ */seasonOf("the shingle"),"surfaces.gravel.stones.intensity":/* @__PURE__ */patternOf("the stones of the shingle, each its own shade"),"surfaces.rock.intensity":/* @__PURE__ */intensityOf("bare rock",.8),"surfaces.rock.season":/* @__PURE__ */seasonOf("the bare rock"),"surfaces.rock.ridges.intensity":/* @__PURE__ */patternOf("the ridges of the rock"),"surfaces.paving.intensity":/* @__PURE__ */intensityOf("paving",.7),"surfaces.paving.season":/* @__PURE__ */seasonOf("the paving of squares, pedestrian streets, platforms, piers and bridges"),"surfaces.paving.colors.joints":/* @__PURE__ */roleColorOf("the joints between the paving stones"),"surfaces.paving.joints.intensity":/* @__PURE__ */patternOf("the joints between the slabs, setts and bricks of the paving"),"surfaces.urban.intensity":/* @__PURE__ */intensityOf("built-up ground",.5),"surfaces.urban.season":/* @__PURE__ */seasonOf("the built-up ground, from towns to industrial estates, schools and hospitals"),"surfaces.urban.wear.intensity":/* @__PURE__ */patternOf("the built-up ground's lots and stains"),"surfaces.roads.intensity":/* @__PURE__ */intensityOf("asphalt",.7),"surfaces.roads.season":/* @__PURE__ */seasonOf("the roads, car parks and runways"),"surfaces.roads.wear.intensity":/* @__PURE__ */patternOf("the roads' stains, patches and cracks"),"trees.visible":{kind:"toggle",description:"The 3D trees standing on woods, parks, gardens, meadows, scrub, heaths, orchards, cemeteries and playgrounds, each as densely as its kind of ground grows them.",default:!0},"trees.densityFactor":{kind:"factor",description:"How many trees stand on each kind of ground, times its own density: wild woods stay the densest, parks and meadows open.",default:1,range:COUNT_FACTOR_RANGE},"trees.sizeFactor":{kind:"factor",description:"How tall the trees and bushes stand, times their usual height.",default:1,range:SIZE_FACTOR_RANGE},"trees.species.broadleaf.shareFactor":/* @__PURE__ */shareFactorOf("round-crowned broadleaf trees"),"trees.species.conifer.shareFactor":/* @__PURE__ */shareFactorOf("conifers, more of them towards the poles,"),"trees.species.columnar.shareFactor":/* @__PURE__ */shareFactorOf("slender columnar trees, such as poplars and cypresses, most in cemeteries and gardens,"),"trees.species.umbrella.shareFactor":/* @__PURE__ */shareFactorOf("flat-topped umbrella trees, such as stone pines, only where it is warm, south of about 46°,"),"trees.species.bush.shareFactor":/* @__PURE__ */shareFactorOf("bushes, most on scrub and heath,"),"trees.tracks.intensity":{kind:"number",description:"How strongly the roads, paths, railways and streams through a wood show over the crowns standing in front of them, 0 (hidden behind them) to 1.",default:.6,range:UNIT_RANGE},"trees.minZoom":{kind:"number",description:"The zoom from which the trees grow in, reaching their full height three quarters of a zoom later.",default:15,range:{min:13,max:19,step:.25,bounds:"hard"}},"trees.season":/* @__PURE__ */seasonOf("the 3D trees"),"trees.colors.broadleaf":/* @__PURE__ */roleColorOf("the foliage of the broadleaf and columnar trees and the bushes"),"trees.colors.conifer":/* @__PURE__ */roleColorOf("the needles of the conifers and umbrella trees"),"trees.shadows.intensity":{kind:"number",description:"How dark the shadows the trees cast on the ground are, away from the sun, 0 (none) to 1.",default:.55,range:UNIT_RANGE},"light.direction":{kind:"number",description:"Direction the sun comes from, in degrees clockwise from north. It lights the trees and dunes, casts the trees' shadows, and sets where the water glints. Unset: the map's light where one is placed, as the styling module's `view.light` knobs do, else a day sun on light styles and satellite imagery, and a night one on dark styles.",range:DEGREES_RANGE},"light.altitude":{kind:"number",description:"Height of the sun above the horizon, in degrees (90 = overhead). Unset: the map's light, as for `light.direction`.",range:LIGHT_ALTITUDE_RANGE},"sky.color":{kind:"color",description:"Colour of the sky overhead, which the water mirrors where it faces up. Unset: the map's sky colour where the style sets one, else a day sky on light styles and satellite imagery, and a night sky on dark styles."},"sky.horizonColor":{kind:"color",description:"Colour of the sky at the horizon, which the far water mirrors. Unset: the map's horizon colour where the style sets one, else a day or a night horizon, as for `sky.color`."},"wind.direction":{kind:"number",description:"Direction the wind blows from, in degrees clockwise from north. The waves and the sand ripples lie across it.",default:225,range:DEGREES_RANGE},"wind.speedFactor":{kind:"factor",description:"How fast the waves, the grass and the trees move, 0 holding them still. While nothing moves, the map draws no frames for them.",default:1,range:{min:0,max:4,step:.1,bounds:"hard-min"}}},glSurfacesKnobIds=/* @__PURE__ */Object.keys(surfacesKnobDefinitions),glSurfacesKnobCatalogue=/* @__PURE__ */withIds(surfacesKnobDefinitions);export{LIGHT_ALTITUDE_RANGE as _,surfaceSeasons as a,SURFACE_ID_COUNT as c,landmarkTextureUses as d,landmarks3DKnobCatalogue as f,DEGREES_RANGE as g,paletteModes as h,isSurfaceSeason as i,standardStyleSurfaceTargets as l,paletteMapColors as m,glSurfacesKnobIds as n,STYLE_LAYER_IDS as o,landmarks3DKnobIds as p,DEFAULT_SURFACE_SEASON as r,SURFACE_IDS as s,glSurfacesKnobCatalogue as t,surfaceKinds as u,UNIT_RANGE as v,withIds as y};
|
package/dist/third-party.json
CHANGED
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"name": "three",
|
|
14
|
-
"version": "0.
|
|
14
|
+
"version": "0.186.1",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"bundled": false,
|
|
17
17
|
"description": "JavaScript 3D library",
|
|
18
18
|
"repository": "https://github.com/mrdoob/three.js",
|
|
19
19
|
"homepage": "https://threejs.org/",
|
|
20
20
|
"author": "mrdoob",
|
|
21
|
-
"licenseText": "The MIT License\n\nCopyright © 2010-
|
|
21
|
+
"licenseText": "The MIT License\n\nCopyright © 2010-2026 three.js authors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."
|
|
22
22
|
}
|
|
23
23
|
]
|
package/package.json
CHANGED
|
@@ -2,33 +2,34 @@
|
|
|
2
2
|
"name": "@tomtom-org/maps-sdk-plugin-landmarks-3d",
|
|
3
3
|
"author": "TomTom International B.V.",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.3.0",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"description": "
|
|
7
|
+
"description": "3D on a TomTomMap: TomTom Orbis 3D landmarks and the base map's buildings drawn with three.js, and WebGL textures for the style's water, land cover and roads with 3D trees on its green",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"sideEffects": false,
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@tomtom-org/maps-sdk": "^1.0.0-rc.
|
|
11
|
+
"@tomtom-org/maps-sdk": "^1.0.0-rc.6",
|
|
12
12
|
"maplibre-gl": "^6.15.0",
|
|
13
|
-
"three": "^0.
|
|
13
|
+
"three": "^0.186.1"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@playwright/test": "1.60.0",
|
|
17
17
|
"@tsconfig/recommended": "^1.0.13",
|
|
18
18
|
"@types/node": "^26.6.5",
|
|
19
|
-
"@types/three": "^0.
|
|
19
|
+
"@types/three": "^0.186.0",
|
|
20
20
|
"@vitest/coverage-v8": "^5.0.5",
|
|
21
21
|
"rolldown": "^1.2.14",
|
|
22
22
|
"typescript": "^6.0.3",
|
|
23
23
|
"vite": "^8.3.4",
|
|
24
24
|
"vitest": "^5.0.5",
|
|
25
25
|
"@testing/core-utils": "0.0.0",
|
|
26
|
-
"@tomtom-org/maps-sdk": "1.0.0-rc.
|
|
26
|
+
"@tomtom-org/maps-sdk": "1.0.0-rc.6"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"dist",
|
|
30
30
|
"package.json",
|
|
31
31
|
"README.md",
|
|
32
|
+
"CHANGELOG.md",
|
|
32
33
|
"LICENSE.txt",
|
|
33
34
|
"THIRD_PARTY.txt",
|
|
34
35
|
"!**/*.map"
|
|
@@ -37,6 +38,10 @@
|
|
|
37
38
|
".": {
|
|
38
39
|
"types": "./dist/index.d.ts",
|
|
39
40
|
"default": "./dist/index.es.js"
|
|
41
|
+
},
|
|
42
|
+
"./knobs": {
|
|
43
|
+
"types": "./dist/knobs.d.ts",
|
|
44
|
+
"default": "./dist/knobs.es.js"
|
|
40
45
|
}
|
|
41
46
|
},
|
|
42
47
|
"scripts": {
|
|
@@ -48,7 +53,7 @@
|
|
|
48
53
|
"test:e2e:ui": "playwright test --config e2e-tests/playwright.config.ts --ui",
|
|
49
54
|
"test:e2e:update-snapshots": "playwright test --config e2e-tests/playwright.config.ts --update-snapshots",
|
|
50
55
|
"test:e2e:server": "vite --config e2e-tests/vite.config.ts",
|
|
51
|
-
"test:e2e:install": "playwright install chromium",
|
|
56
|
+
"test:e2e:install": "playwright install chromium firefox webkit",
|
|
52
57
|
"type-check": "tsc --noEmit"
|
|
53
58
|
}
|
|
54
59
|
}
|