@versatiles/svg-renderer 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 VersaTiles
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # VersaTiles SVG Renderer
2
+
3
+ Renders vector maps as SVG.
4
+
5
+ ![Example: rendered map view](docs/demo.svg)
6
+
7
+ [Download SVG](docs/demo.svg)
8
+
9
+ Currently only background, fill and line layers are supported.
10
+
11
+ ## E2E Visual Comparison
12
+
13
+ A visual comparison report between the SVG renderer and MapLibre GL JS is published to GitHub Pages:
14
+
15
+ [View Report](https://versatiles-org.github.io/versatiles-svg-renderer/report.html)
16
+
17
+ ## Dependency Graph
18
+
19
+ <!--- This chapter is generated automatically --->
20
+
21
+ ```mermaid
22
+ ---
23
+ config:
24
+ layout: elk
25
+ ---
26
+ flowchart TB
27
+
28
+ subgraph 0["src"]
29
+ 1["demo.ts"]
30
+ 2["index.ts"]
31
+ subgraph 3["lib"]
32
+ 4["geometry.ts"]
33
+ 7["color.ts"]
34
+ 9["style_layer.ts"]
35
+ end
36
+ subgraph 5["processor"]
37
+ 6["render.ts"]
38
+ 8["styles.ts"]
39
+ A["vector.ts"]
40
+ B["helper.ts"]
41
+ end
42
+ subgraph C["renderer"]
43
+ D["renderer_svg.ts"]
44
+ end
45
+ E["types.ts"]
46
+ end
47
+ 1-->2
48
+ 2-->4
49
+ 2-->6
50
+ 2-->D
51
+ 6-->7
52
+ 6-->4
53
+ 6-->8
54
+ 6-->A
55
+ 8-->9
56
+ A-->4
57
+ A-->B
58
+ B-->4
59
+ D-->7
60
+
61
+ class 0,3,5,C subgraphs;
62
+ classDef subgraphs fill-opacity:0.1, fill:#888, color:#888, stroke:#888;
63
+ ```