@tileflow/dev 0.1.0-alpha.18 → 0.1.0-alpha.19

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.
Files changed (46) hide show
  1. package/GENERATED_OUTPUT_LICENSE.md +21 -0
  2. package/LICENSE +201 -0
  3. package/NOTICE +9 -0
  4. package/README.md +397 -41
  5. package/THIRD_PARTY_NOTICES.md +65 -7
  6. package/TRADEMARKS.md +10 -0
  7. package/dist/artifacts.d.ts +152 -0
  8. package/dist/artifacts.js +62 -0
  9. package/dist/chunk-BALG4DSG.js +844 -0
  10. package/dist/chunk-BKHIZ7H2.js +287 -0
  11. package/dist/chunk-BL3FK4GO.js +170 -0
  12. package/dist/chunk-D4OE4ITL.js +13 -0
  13. package/dist/chunk-GWUMIHL6.js +4208 -0
  14. package/dist/chunk-KDFTE4Q5.js +156 -0
  15. package/dist/chunk-O7PE6FB2.js +1210 -0
  16. package/dist/chunk-OEABXOJH.js +1991 -0
  17. package/dist/chunk-VEB43KDS.js +670 -0
  18. package/dist/chunk-ZOYFZ3MT.js +801 -0
  19. package/dist/chunk-ZRI6PNFL.js +211 -0
  20. package/dist/config.d.ts +33 -0
  21. package/dist/config.js +27 -0
  22. package/dist/fonts.d.ts +47 -0
  23. package/dist/fonts.js +16 -0
  24. package/dist/icons.d.ts +136 -0
  25. package/dist/icons.js +17 -0
  26. package/dist/index.d.ts +12 -320
  27. package/dist/index.js +128 -2566
  28. package/dist/inspect.d.ts +147 -0
  29. package/dist/inspect.js +16 -0
  30. package/dist/preview-assets-6LYL7GP7.js +145 -0
  31. package/dist/preview.d.ts +69 -0
  32. package/dist/preview.js +18 -0
  33. package/dist/server.d.ts +77 -0
  34. package/dist/server.js +47 -0
  35. package/dist/validation.d.ts +57 -0
  36. package/dist/validation.js +22 -0
  37. package/package.json +61 -7
  38. package/assets/streets-poi/cafe.svg +0 -10
  39. package/assets/streets-poi/hospital.svg +0 -10
  40. package/assets/streets-poi/hotel.svg +0 -10
  41. package/assets/streets-poi/museum.svg +0 -10
  42. package/assets/streets-poi/restaurant.svg +0 -10
  43. package/assets/streets-poi/school.svg +0 -10
  44. package/assets/streets-poi/services.svg +0 -10
  45. package/assets/streets-poi/shopping.svg +0 -10
  46. package/assets/streets-poi/train.svg +0 -10
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tileflow/dev",
3
- "version": "0.1.0-alpha.18",
3
+ "version": "0.1.0-alpha.19",
4
+ "license": "Apache-2.0",
4
5
  "description": "Node development utilities for Tileflow configs and builds.",
5
6
  "type": "module",
6
7
  "sideEffects": false,
@@ -20,18 +21,64 @@
20
21
  "development",
21
22
  "styles"
22
23
  ],
24
+ "engines": {
25
+ "node": ">=22"
26
+ },
23
27
  "main": "./dist/index.js",
24
28
  "types": "./dist/index.d.ts",
25
29
  "files": [
26
- "assets",
27
30
  "dist",
28
- "THIRD_PARTY_NOTICES.md"
31
+ "THIRD_PARTY_NOTICES.md",
32
+ "LICENSE",
33
+ "NOTICE",
34
+ "GENERATED_OUTPUT_LICENSE.md",
35
+ "TRADEMARKS.md"
29
36
  ],
30
37
  "exports": {
31
38
  ".": {
32
39
  "types": "./dist/index.d.ts",
33
40
  "import": "./dist/index.js",
34
41
  "default": "./dist/index.js"
42
+ },
43
+ "./artifacts": {
44
+ "types": "./dist/artifacts.d.ts",
45
+ "import": "./dist/artifacts.js",
46
+ "default": "./dist/artifacts.js"
47
+ },
48
+ "./config": {
49
+ "types": "./dist/config.d.ts",
50
+ "import": "./dist/config.js",
51
+ "default": "./dist/config.js"
52
+ },
53
+ "./icons": {
54
+ "types": "./dist/icons.d.ts",
55
+ "import": "./dist/icons.js",
56
+ "default": "./dist/icons.js"
57
+ },
58
+ "./fonts": {
59
+ "types": "./dist/fonts.d.ts",
60
+ "import": "./dist/fonts.js",
61
+ "default": "./dist/fonts.js"
62
+ },
63
+ "./inspect": {
64
+ "types": "./dist/inspect.d.ts",
65
+ "import": "./dist/inspect.js",
66
+ "default": "./dist/inspect.js"
67
+ },
68
+ "./preview": {
69
+ "types": "./dist/preview.d.ts",
70
+ "import": "./dist/preview.js",
71
+ "default": "./dist/preview.js"
72
+ },
73
+ "./server": {
74
+ "types": "./dist/server.d.ts",
75
+ "import": "./dist/server.js",
76
+ "default": "./dist/server.js"
77
+ },
78
+ "./validation": {
79
+ "types": "./dist/validation.d.ts",
80
+ "import": "./dist/validation.js",
81
+ "default": "./dist/validation.js"
35
82
  }
36
83
  },
37
84
  "publishConfig": {
@@ -40,18 +87,25 @@
40
87
  "dependencies": {
41
88
  "@mapbox/vector-tile": "2.0.5",
42
89
  "@maplibre/maplibre-gl-style-spec": "24.8.5",
43
- "@tileflow/core": ">=0.1.0-alpha.19 <0.1.0-beta.0",
90
+ "@tileflow/core": ">=0.1.0-alpha.21 <0.1.0-beta.0",
44
91
  "chokidar": "4.0.3",
92
+ "fflate": "0.8.2",
93
+ "fontkit": "2.0.4",
45
94
  "jiti": "^2.7.0",
46
95
  "maplibre-gl": "5.24.0",
47
- "pbf": "4.0.2",
48
- "saxes": "6.0.0"
96
+ "pbf": "5.1.2",
97
+ "pmtiles": "4.5.0",
98
+ "saxes": "6.0.0",
99
+ "three": "0.180.0"
100
+ },
101
+ "devDependencies": {
102
+ "@tileflow/maps": "0.1.0-alpha.0"
49
103
  },
50
104
  "optionalDependencies": {
51
105
  "sharp": "0.35.3"
52
106
  },
53
107
  "scripts": {
54
- "build": "tsup src/index.ts --format esm --dts --clean --platform node --external sharp",
108
+ "build": "tsup src/index.ts src/artifacts.ts src/config.ts src/fonts.ts src/icons.ts src/inspect.ts src/preview.ts src/server.ts src/validation.ts --format esm --dts --clean --platform node --external sharp",
55
109
  "test": "tsx --test test/*.test.ts",
56
110
  "typecheck": "tsc -p tsconfig.json --noEmit",
57
111
  "lint": "tsc -p tsconfig.json --noEmit",
@@ -1,10 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
2
- <title>Cafe</title>
3
- <circle cx="12" cy="13" r="10.5" fill="#44515E" opacity=".08"/>
4
- <circle cx="12" cy="12.5" r="10" fill="#44515E" opacity=".22"/>
5
- <circle cx="12" cy="11" r="10" fill="#FFFFFF"/>
6
- <circle cx="12" cy="11" r="8.25" fill="#FF9E67"/>
7
- <svg x="6.75" y="7" width="10.5" height="7.875" viewBox="0 0 12 9" fill="#FFFFFF">
8
- <path transform="translate(-5 -7)" fill-rule="evenodd" d="M13.4656593,7 L15.1589761,7 C15.6924964,7 16.125,7.43246448 16.125,7.96611494 L16.125,9.90201693 C16.125,10.4355875 15.6906762,10.8681319 15.1589761,10.8681319 L13.7074176,10.8681319 L11.8942308,13.043956 L8.0260989,13.043956 L6.09203297,10.8681319 L5.125,7 L13.4656593,7 Z M5.48763736,14.2527473 L15.157967,14.2527473 L15.157967,15.7032967 L5.48763736,15.7032967 Z M13.7074176,7.96703297 L15.157967,7.96703297 L15.157967,9.9010989 L13.7074176,9.9010989 Z"/>
9
- </svg>
10
- </svg>
@@ -1,10 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
2
- <title>Hospital</title>
3
- <circle cx="12" cy="13" r="10.5" fill="#44515E" opacity=".08"/>
4
- <circle cx="12" cy="12.5" r="10" fill="#44515E" opacity=".22"/>
5
- <circle cx="12" cy="11" r="10" fill="#FFFFFF"/>
6
- <circle cx="12" cy="11" r="8.25" fill="#F88181"/>
7
- <svg x="8.5" y="6" width="7" height="10" viewBox="0 0 7 10" fill="#FFFFFF">
8
- <path transform="translate(-7 -5)" fill-rule="evenodd" d="M8.55555556,14.8333333 L7,14.8333333 L7,5.5 L8.55555556,5.5 L8.55555556,9.38888889 L12.4444444,9.38888889 L12.4444444,5.5 L14,5.5 L14,14.8333333 L12.4444444,14.8333333 L12.4444444,10.9444444 L8.55555556,10.9444444 Z"/>
9
- </svg>
10
- </svg>
@@ -1,10 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
2
- <title>Lodging</title>
3
- <circle cx="12" cy="13" r="10.5" fill="#44515E" opacity=".08"/>
4
- <circle cx="12" cy="12.5" r="10" fill="#44515E" opacity=".22"/>
5
- <circle cx="12" cy="11" r="10" fill="#FFFFFF"/>
6
- <circle cx="12" cy="11" r="8.25" fill="#909CE1"/>
7
- <svg x="6.5" y="7.5" width="11" height="7" viewBox="0 0 11 7" fill="#FFFFFF">
8
- <path transform="translate(-5 -7)" fill-rule="evenodd" d="M5.86454849,7 C6.07788926,7 6.25083612,7.16733023 6.25083612,7.38333841 L6.25026087,11.23 L13.8162609,11.23 L13.8162609,11.229 L9.55363082,11.2296026 L9.55363082,7.94186138 C9.55363082,7.94186138 10.4141238,8.05735202 10.7150234,8.05735206 C12.2129784,8.05735203 13.5048382,9.50607239 14.0681491,10.3167693 L14.7461904,7.83035651 L14.7482609,8.617 L14.7491639,8.01836305 C14.7491639,7.83291732 14.8863533,7.67819481 15.0593924,7.64241177 L15.1354515,7.63461538 C15.3487923,7.63461538 15.5217391,7.8115966 15.5217391,8.01836305 L15.5217391,13.7692308 L14.7491639,13.7692308 L14.7482609,12.5 L6.25026087,12.5 L6.25083612,13.7692308 L5.47826087,13.7692308 L5.47826087,7.38333841 C5.47826087,7.19809045 5.61545027,7.04353295 5.78848942,7.00778807 L5.86454849,7 Z M7.98913043,8.05769231 C8.62915273,8.05769231 9.14799331,8.62594628 9.14799331,9.32692308 C9.14799331,10.0278999 8.62915273,10.5961538 7.98913043,10.5961538 C7.34910814,10.5961538 6.83026756,10.0278999 6.83026756,9.32692308 C6.83026756,8.62594628 7.34910814,8.05769231 7.98913043,8.05769231 Z"/>
9
- </svg>
10
- </svg>
@@ -1,10 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
2
- <title>Museum</title>
3
- <circle cx="12" cy="13" r="10.5" fill="#44515E" opacity=".08"/>
4
- <circle cx="12" cy="12.5" r="10" fill="#44515E" opacity=".22"/>
5
- <circle cx="12" cy="11" r="10" fill="#FFFFFF"/>
6
- <circle cx="12" cy="11" r="8.25" fill="#13B5C7"/>
7
- <svg x="7.5" y="5.75" width="9" height="9.82" viewBox="0 0 11 12" fill="#FFFFFF">
8
- <path transform="translate(-5 -4)" fill-rule="evenodd" d="M10.5,4.5 L16,8.5 L16,9.5 L15,9.5 L15,15 L16,15 L16,16 L5,16 L5,15 L6,15 L6,9.5 L5,9.5 L5,8.5 L10.5,4.5 Z M14,8.5 L7,8.5 L7,15 L14,15 L14,8.5 Z M8.99948459,9.49839952 L10.5053982,11.6376682 L12,9.512 L12,9.5 L13,9.5 L13,14 L12,14 L12,11.264 L10.5053982,13.6524794 L8.999,11.277 L9,14 L8,14 L8,9.5 L9,9.5 Z"/>
9
- </svg>
10
- </svg>
@@ -1,10 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
2
- <title>Restaurant</title>
3
- <circle cx="12" cy="13" r="10.5" fill="#44515E" opacity=".08"/>
4
- <circle cx="12" cy="12.5" r="10" fill="#44515E" opacity=".22"/>
5
- <circle cx="12" cy="11" r="10" fill="#FFFFFF"/>
6
- <circle cx="12" cy="11" r="8.25" fill="#FF9E67"/>
7
- <svg x="8.5" y="6" width="7" height="9.625" viewBox="0 0 8 11" fill="#FFFFFF">
8
- <path transform="translate(-6 -6)" fill-rule="evenodd" d="M12.4864865,12.0540541 L12.4864865,16.1621622 L14,16.1621622 L14,6.21621622 L12.4864865,6.21621622 L11.6216216,7.94594595 L11.6216216,10.7567568 L12.4864865,12.0540541 Z M9.02702703,10.7567568 L9.02702703,11.1891892 L10.7567568,10.3243243 L10.7567568,9.89189189 L10.7567568,7.08108108 L9.67567568,6.21621622 L9.67567568,9.45945946 L9.13513514,9.45945946 L8.81081081,9.45945946 L8.81081081,6 L7.94594595,6 L7.94594595,9.45945946 L7.62162162,9.45945946 L7.08108108,9.45945946 L7.08108108,6.21621622 L6,7.08108108 L6,9.89189189 L6,10.3243243 L7.72972973,11.1891892 L7.72972973,10.7567568 L7.72972973,16.1621622 L9.02702703,16.1621622 Z"/>
9
- </svg>
10
- </svg>
@@ -1,10 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
2
- <title>School</title>
3
- <circle cx="12" cy="13" r="10.5" fill="#44515E" opacity=".08"/>
4
- <circle cx="12" cy="12.5" r="10" fill="#44515E" opacity=".22"/>
5
- <circle cx="12" cy="11" r="10" fill="#FFFFFF"/>
6
- <circle cx="12" cy="11" r="8.25" fill="#7B9EB0"/>
7
- <svg x="6.75" y="6.5" width="10.5" height="8.9" viewBox="0 0 13 11" fill="#FFFFFF">
8
- <path transform="translate(-4 -5)" fill-rule="evenodd" d="M14.0097657,12.019911 L14.0097657,13.8695475 C13.1038778,15.4241579 10.6537375,15.3674047 10.5024279,15.3623802 C10.3511182,15.3674047 7.90097798,15.4241579 6.99509006,13.8695475 L6.99509006,12.019911 C6.99509006,12.019911 9.60423929,13.5859459 10.5024279,13.6268096 C11.4006164,13.5859459 14.0097657,12.019911 14.0097657,12.019911 Z M10.5,5 L17,8.25037977 L17,9.23855252 L16,9.738 L16,14.7579754 L15,14.7579754 L15,10.238 L10.5,12.4889323 L4,9.23855252 L4,8.25037977 L10.5,5 Z"/>
9
- </svg>
10
- </svg>
@@ -1,10 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
2
- <title>Services</title>
3
- <circle cx="12" cy="13" r="10.5" fill="#44515E" opacity=".08"/>
4
- <circle cx="12" cy="12.5" r="10" fill="#44515E" opacity=".22"/>
5
- <circle cx="12" cy="11" r="10" fill="#FFFFFF"/>
6
- <circle cx="12" cy="11" r="8.25" fill="#7B9EB0"/>
7
- <svg x="6.75" y="6.25" width="10.5" height="9.55" viewBox="0 0 11 10" fill="#FFFFFF">
8
- <path transform="translate(-5 -6)" fill-rule="evenodd" d="M11.015625,7.32533488 C13.2436218,5.65449747 15.9996948,6.04597697 15.9996948,6.04597697 L15.999,7.327 L16,7.32722697 L16,14.327227 L15.9140184,14.3269458 C11.9704111,14.3496822 11.930542,15.8108695 11.930542,15.8108695 L11.0158997,15.8108695 L11.015,14.327 L11,14.327227 L11,7.32722697 L12.123,7.327 Z M5.0078125,6.03795084 C5.0078125,6.03795084 7.7638855,5.65449747 9.99188232,7.32533488 L8.883,7.327 L10.0075073,7.32722697 L10.0075073,14.327227 L9.991,14.327 L9.99160767,15.8108695 L9.07696533,15.8108695 C9.06464946,15.6770402 8.85223435,14.3486164 5.09348894,14.3269458 L5.00750732,14.327227 L5.0078125,6.03795084 Z"/>
9
- </svg>
10
- </svg>
@@ -1,10 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
2
- <title>Shopping</title>
3
- <circle cx="12" cy="13" r="10.5" fill="#44515E" opacity=".08"/>
4
- <circle cx="12" cy="12.5" r="10" fill="#44515E" opacity=".22"/>
5
- <circle cx="12" cy="11" r="10" fill="#FFFFFF"/>
6
- <circle cx="12" cy="11" r="8.25" fill="#4B96F3"/>
7
- <svg x="7" y="6.25" width="10" height="9.23" viewBox="0 0 13 12" fill="#FFFFFF">
8
- <path transform="translate(-4 -3)" fill-rule="evenodd" d="M7.49019231,10.9275 C7.49019231,10.6215865 7.75802885,10.3747356 8.09141827,10.3747356 C8.42242788,10.3747356 8.69286058,10.6215865 8.69286058,10.9275 C8.69286058,11.6896875 9.46045673,12.3811298 10.5012981,12.3852404 C11.5421394,12.3811298 12.3060577,11.6896875 12.3086538,10.9275 C12.311899,10.6215865 12.5777885,10.3747356 12.9107452,10.3747356 C13.2415385,10.3747356 13.5137019,10.6215865 13.5137019,10.9275 C13.503101,12.3852404 12.1208654,13.4855769 10.5012981,13.4864423 C8.88259615,13.4855769 7.49689904,12.3852404 7.49019231,10.9275 Z M9.41415865,5.7046875 C9.77740385,5.03704327 10.2157212,4.76574519 10.5038942,4.78024038 C10.7881731,4.76574519 11.2264904,5.03704327 11.5901683,5.7046875 C11.8982452,6.26675481 12.1091827,7.15074519 12.1665144,8.03971154 L8.83608173,8.03971154 C8.89341346,7.15074519 9.10478365,6.26675481 9.41415865,5.7046875 M15.5291827,8.18855769 C15.4253365,8.09293269 15.2786538,8.03971154 15.130024,8.03971154 L13.2858894,8.03971154 C13.1439663,5.85439904 12.2803125,3.879375 10.5038942,3.75 C8.72314904,3.879375 7.85819712,5.85439904 7.71670673,8.03971154 L5.87213942,8.03971154 C5.72394231,8.03971154 5.57725962,8.09293269 5.47254808,8.18855769 C5.36848558,8.28569712 5.30769231,8.4159375 5.30769231,8.55439904 L4.875,14.4861779 C4.875,14.6222596 4.93665865,14.7548798 5.03985577,14.8496394 C5.14802885,14.9459135 5.29125,15 5.43944712,15 L15.5627163,15 C15.7139423,15 15.8541346,14.9476442 15.9590625,14.8496394 C16.0678846,14.7525 16.125,14.6248558 16.125,14.4861779 L15.6923077,8.55439904 C15.6923077,8.41918269 15.6328125,8.28569712 15.5291827,8.18855769"/>
9
- </svg>
10
- </svg>
@@ -1,10 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
2
- <title>Train and rail</title>
3
- <circle cx="12" cy="13" r="10.5" fill="#44515E" opacity=".08"/>
4
- <circle cx="12" cy="12.5" r="10" fill="#44515E" opacity=".22"/>
5
- <circle cx="12" cy="11" r="10" fill="#FFFFFF"/>
6
- <circle cx="12" cy="11" r="8.25" fill="#10BDFF"/>
7
- <svg x="7.875" y="5.9" width="8.25" height="9.8" viewBox="0 0 16 19" fill="#FFFFFF">
8
- <path d="M8,0C4,0,0,.5,0,4v9.5A3.5,3.5,0,0,0,3.5,17L2,18.5V19H4.23l2-2H10l2,2h2v-.5L12.5,17A3.5,3.5,0,0,0,16,13.5V4c0-3.5-3.58-4-8-4ZM3.5,15A1.5,1.5,0,1,1,5,13.5,1.5,1.5,0,0,1,3.5,15ZM7,8H2V4H7V8ZM9,8V4h5V8Zm3.5,7A1.5,1.5,0,1,1,14,13.5,1.5,1.5,0,0,1,12.5,15Z"/>
9
- </svg>
10
- </svg>