@htmlbricks/hb-map 0.20.18 → 0.50.0-alpha.11

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.
@@ -207,6 +207,7 @@
207
207
  }
208
208
  }
209
209
  },
210
+ "description": "",
210
211
  "storybookArgs": {
211
212
  "options": {
212
213
  "control": {
@@ -244,9 +245,7 @@
244
245
  "vars": [],
245
246
  "parts": []
246
247
  },
247
- "author": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
248
248
  "contributors": [],
249
- "owner": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
250
249
  "htmlSlots": [],
251
250
  "i18n": [],
252
251
  "examples": [
@@ -319,7 +318,7 @@
319
318
  "graph"
320
319
  ],
321
320
  "size": {},
322
- "iifePath": "release/release.js",
321
+ "iifePath": "main.iife.js",
323
322
  "repoName": "@htmlbricks/hb-map",
324
- "version": "0.20.18"
323
+ "version": "0.50.0-alpha.11"
325
324
  }
package/package.json CHANGED
@@ -1,83 +1,16 @@
1
1
  {
2
- "name": "@htmlbricks/hb-map",
3
- "displayName": "Svelte-Bootstrap map",
4
- "description": "Svelte-Bootstrap map",
5
- "version": "0.20.18",
6
- "main": "release/release.js",
7
- "publishConfig": {
8
- "access": "public"
9
- },
10
- "author": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
11
- "authorUrl": "https://dariocaruso.info",
12
- "license": "MIT",
13
- "license-docs": "CC BY 4.0",
14
- "license-translations": "CC BY 4.0",
15
- "license-images": "CC BY-NC 4.0",
16
- "engines": {
17
- "node": ">=16.0.0"
18
- },
19
- "scripts": {
20
- "start": "sirv dist",
21
- "dev": "rm -rf ./dist && rollup -c -w",
22
- "build": "rm -rf ./dist && rollup -c",
23
- "generate-manifest": "npm run generate-schemes && monorepo-wc-packages-manifester --dir $PWD",
24
- "generate-component-schema": "ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
25
- "generate-events-schema": "ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json",
26
- "generate-schemes": "npm run generate-events-schema && npm run generate-component-schema",
27
- "copydest": "rsync -avh dist/* ./release/ --delete",
28
- "build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
29
- "build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",
30
- "prepublish": "npm run build:release"
31
- },
32
- "devDependencies": {
33
- "@rollup/plugin-alias": "^3.1.2",
34
- "@rollup/plugin-commonjs": "^18.0.0",
35
- "@rollup/plugin-json": "^4.1.0",
36
- "@rollup/plugin-node-resolve": "^11.2.1",
37
- "@rollup/plugin-replace": "^4.0.0",
38
- "@rollup/plugin-typescript": "^8.2.1",
39
- "@tsconfig/svelte": "^1.0.10",
40
- "@types/node": "^16.7.1",
41
- "@typescript-eslint/eslint-plugin": "^4.22.0",
42
- "@typescript-eslint/parser": "^4.22.0",
43
- "eslint": "^7.25.0",
44
- "eslint-plugin-jsdoc": "^33.0.0",
45
- "eslint-plugin-svelte3": "^3.2.0",
46
- "monorepo-wc-packages-manifester": "^0.0.3",
47
- "node-sass": "^9.0.0",
48
- "postcss": "^8.2.13",
49
- "postcss-load-config": "^3.0.1",
50
- "prettier": "^2.8.4",
51
- "rollup": "^2.46.0",
52
- "rollup-plugin-copy": "^3.4.0",
53
- "rollup-plugin-css-only": "^3.1.0",
54
- "rollup-plugin-livereload": "^2.0.0",
55
- "rollup-plugin-svelte": "^7.1.0",
56
- "rollup-plugin-terser": "^7.0.2",
57
- "rollup-plugin-ts-paths": "^1.0.5",
58
- "rollup-plugin-typescript2": "^0.31.1",
59
- "sass": "^1.32.12",
60
- "sirv-cli": "^1.0.11",
61
- "svelte": "^3.46.2",
62
- "svelte-check": "^1.5.2",
63
- "svelte-preprocess": "^4.7.2",
64
- "ts-json-schema-generator": "^0.98.0",
65
- "ts-node": "^9.1.1",
66
- "tslib": "^2.2.0",
67
- "ttypescript": "^1.5.12",
68
- "typescript": "^4.3.5",
69
- "typescript-transform-paths": "^2.2.3",
70
- "wc-js-utils": "^0.0.1"
71
- },
72
- "keywords": [
73
- "svelte",
74
- "svelte-webcomponents",
75
- "webcomponents"
76
- ],
77
- "contributors": [],
78
- "gitHead": "89b0885aff646abbcaebdf63ab8602aa87d3e218",
79
- "dependencies": {
80
- "debounce": "^1.2.1",
81
- "ol": "^6.12.0"
82
- }
83
- }
2
+ "name": "@htmlbricks/hb-map",
3
+ "version": "0.50.0-alpha.11",
4
+ "contributors": [],
5
+ "description": "",
6
+ "licenses": [
7
+ {
8
+ "type": "Apache-2.0",
9
+ "path": "LICENSE.md",
10
+ "cost": 0,
11
+ "currency": "EUR"
12
+ }
13
+ ],
14
+ "main": "main.iife.js",
15
+ "dependencies": []
16
+ }
@@ -0,0 +1,196 @@
1
+ {
2
+ "$ref": "#/definitions/Component",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "Component": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "center": {
9
+ "items": {
10
+ "type": "number"
11
+ },
12
+ "type": "array"
13
+ },
14
+ "data": {
15
+ "items": {
16
+ "additionalProperties": false,
17
+ "properties": {
18
+ "line": {
19
+ "items": {
20
+ "additionalProperties": false,
21
+ "properties": {
22
+ "icon": {
23
+ "additionalProperties": false,
24
+ "properties": {
25
+ "anchor": {
26
+ "items": {
27
+ "type": "number"
28
+ },
29
+ "type": "array"
30
+ },
31
+ "scale": {
32
+ "type": "number"
33
+ },
34
+ "uri": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "required": [
39
+ "uri"
40
+ ],
41
+ "type": "object"
42
+ },
43
+ "id": {
44
+ "type": "string"
45
+ },
46
+ "lngLat": {
47
+ "items": {
48
+ "type": "number"
49
+ },
50
+ "type": "array"
51
+ },
52
+ "popupHtml": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ "required": [
57
+ "lngLat"
58
+ ],
59
+ "type": "object"
60
+ },
61
+ "type": "array"
62
+ },
63
+ "marker": {
64
+ "additionalProperties": false,
65
+ "properties": {
66
+ "icon": {
67
+ "additionalProperties": false,
68
+ "properties": {
69
+ "anchor": {
70
+ "items": {
71
+ "type": "number"
72
+ },
73
+ "type": "array"
74
+ },
75
+ "scale": {
76
+ "type": "number"
77
+ },
78
+ "uri": {
79
+ "type": "string"
80
+ }
81
+ },
82
+ "required": [
83
+ "uri"
84
+ ],
85
+ "type": "object"
86
+ },
87
+ "id": {
88
+ "type": "string"
89
+ },
90
+ "lngLat": {
91
+ "items": {
92
+ "type": "number"
93
+ },
94
+ "type": "array"
95
+ },
96
+ "popupHtml": {
97
+ "type": "string"
98
+ }
99
+ },
100
+ "required": [
101
+ "lngLat"
102
+ ],
103
+ "type": "object"
104
+ },
105
+ "point": {
106
+ "additionalProperties": false,
107
+ "properties": {
108
+ "icon": {
109
+ "additionalProperties": false,
110
+ "properties": {
111
+ "anchor": {
112
+ "items": {
113
+ "type": "number"
114
+ },
115
+ "type": "array"
116
+ },
117
+ "scale": {
118
+ "type": "number"
119
+ },
120
+ "uri": {
121
+ "type": "string"
122
+ }
123
+ },
124
+ "required": [
125
+ "uri"
126
+ ],
127
+ "type": "object"
128
+ },
129
+ "id": {
130
+ "type": "string"
131
+ },
132
+ "lngLat": {
133
+ "items": {
134
+ "type": "number"
135
+ },
136
+ "type": "array"
137
+ },
138
+ "popupHtml": {
139
+ "type": "string"
140
+ }
141
+ },
142
+ "required": [
143
+ "lngLat"
144
+ ],
145
+ "type": "object"
146
+ }
147
+ },
148
+ "type": "object"
149
+ },
150
+ "type": "array"
151
+ },
152
+ "id": {
153
+ "type": "string"
154
+ },
155
+ "options": {
156
+ "additionalProperties": false,
157
+ "properties": {
158
+ "centerFromGeometries": {
159
+ "type": "boolean"
160
+ }
161
+ },
162
+ "type": "object"
163
+ },
164
+ "source": {
165
+ "additionalProperties": false,
166
+ "properties": {
167
+ "type": {
168
+ "type": "string"
169
+ },
170
+ "url": {
171
+ "type": "string"
172
+ }
173
+ },
174
+ "required": [
175
+ "type"
176
+ ],
177
+ "type": "object"
178
+ },
179
+ "style": {
180
+ "type": "string"
181
+ },
182
+ "zoom": {
183
+ "type": "number"
184
+ }
185
+ },
186
+ "required": [
187
+ "zoom",
188
+ "center",
189
+ "data",
190
+ "source",
191
+ "options"
192
+ ],
193
+ "type": "object"
194
+ }
195
+ }
196
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$ref": "#/definitions/Events",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "Events": {
6
+ "additionalProperties": false,
7
+ "type": "object"
8
+ }
9
+ }
10
+ }
package/LICENSE.md DELETED
@@ -1,68 +0,0 @@
1
- ## MIT License
2
-
3
- > Code and Contributions
4
-
5
- Copyright (c) 2021 Dario Caruso (dottgonzo)
6
-
7
- Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to deal
9
- in the Software without restriction, including without limitation the rights
10
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be included in all
15
- copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- SOFTWARE.
24
-
25
- ##### https://choosealicense.com/licenses/mit/
26
-
27
- ## Creative Commons BY-NC 4.0 License
28
-
29
- > Images, assets and logos
30
-
31
- Copyleft (c) 2021 Dario Caruso (dottgonzo)
32
-
33
- #### You are free to:
34
-
35
- - Share — copy and redistribute the material in any medium or format
36
- - Adapt — remix, transform, and build upon the material
37
-
38
- The licensor cannot revoke these freedoms as long as you follow the license terms.
39
-
40
- #### Under the following terms:
41
-
42
- - Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that - suggests the licensor endorses you or your use.
43
- - NonCommercial — You may not use the material for commercial purposes.
44
-
45
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
46
-
47
- ##### https://creativecommons.org/licenses/by-nc/4.0/
48
-
49
- ## Creative Commons BY 4.0 License
50
-
51
- > Documentation and Translations
52
-
53
- Copyleft (c) 2021 Dario Caruso (dottgonzo)
54
-
55
- #### You are free to:
56
-
57
- - Share — copy and redistribute the material in any medium or format
58
- - Adapt — remix, transform, and build upon the material for any purpose, even commercially.
59
-
60
- The licensor cannot revoke these freedoms as long as you follow the license terms.
61
-
62
- #### Under the following terms:
63
-
64
- - Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
65
-
66
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
67
-
68
- ##### https://creativecommons.org/licenses/by/4.0/
package/README.md DELETED
@@ -1,2 +0,0 @@
1
- # map web component
2
-
package/extra/docs.ts DELETED
@@ -1,79 +0,0 @@
1
- import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "wc-js-utils/main";
2
- import type { Component } from "../app/types/webcomponent.type";
3
-
4
- export const storybookArgs = {
5
- options: { control: { type: "object" } },
6
- center: { control: { type: "array" } },
7
- data: { control: { type: "array" } },
8
- zoom: { control: { type: "number" } },
9
- source: { control: { type: "object" } },
10
- pointClickCoordinates: { action: "pointClickCoordinates" },
11
- markerClick: { action: "markerClick" },
12
- };
13
-
14
- const cssVars: CssVar[] = [];
15
- export const cssParts: CssPart[] = [];
16
- export const htmlSlots: HtmlSlot[] = [];
17
- export const i18nLanguages: i18nLang[] = [];
18
-
19
- export const styleSetup: StyleSetup = {
20
- vars: cssVars,
21
- parts: cssParts,
22
- };
23
-
24
- const examples: { name: string; description?: string; data: Component }[] = [
25
- {
26
- name: "default",
27
- data: {
28
- center: [10, 10],
29
- zoom: 9,
30
- source: { type: "osm" },
31
- options: { centerFromGeometries: true },
32
- data: [
33
- {
34
- marker: {
35
- lngLat: [10.1, 10],
36
- icon: {
37
- uri: "https://upload.wikimedia.org/wikipedia/commons/4/4b/Visual_Studio_Code_Insiders_1.36_icon.svg",
38
- scale: 0.15,
39
- anchor: [0.5, 0.1],
40
- },
41
- popupHtml: "<p>You clicked here:</p><code>ciao</code>",
42
- },
43
- },
44
- {
45
- marker: {
46
- lngLat: [10, 10],
47
- popupHtml: "<p>You clicked here:</p><code>ciao</code>",
48
- },
49
- },
50
- {
51
- marker: {
52
- lngLat: [10.3, 10],
53
- },
54
- },
55
- ],
56
- },
57
- },
58
- ];
59
- export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
60
- definitions: null as any,
61
- storybookArgs,
62
- styleSetup,
63
- author: null as any,
64
- contributors: [],
65
- owner: null as any,
66
- htmlSlots,
67
- i18n: i18nLanguages,
68
- examples,
69
- screenshots: [],
70
- licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
71
- readmePath: "README.md",
72
- name: "hb-map",
73
- category: "graph",
74
- tags: ["graph"],
75
- size: {},
76
- iifePath: "release/release.js",
77
- repoName: "@htmlbricks/hb-map",
78
- version: null as any,
79
- };
package/release/docs.js DELETED
@@ -1,74 +0,0 @@
1
- export var storybookArgs = {
2
- options: { control: { type: "object" } },
3
- center: { control: { type: "array" } },
4
- data: { control: { type: "array" } },
5
- zoom: { control: { type: "number" } },
6
- source: { control: { type: "object" } },
7
- pointClickCoordinates: { action: "pointClickCoordinates" },
8
- markerClick: { action: "markerClick" }
9
- };
10
- var cssVars = [];
11
- export var cssParts = [];
12
- export var htmlSlots = [];
13
- export var i18nLanguages = [];
14
- export var styleSetup = {
15
- vars: cssVars,
16
- parts: cssParts
17
- };
18
- var examples = [
19
- {
20
- name: "default",
21
- data: {
22
- center: [10, 10],
23
- zoom: 9,
24
- source: { type: "osm" },
25
- options: { centerFromGeometries: true },
26
- data: [
27
- {
28
- marker: {
29
- lngLat: [10.1, 10],
30
- icon: {
31
- uri: "https://upload.wikimedia.org/wikipedia/commons/4/4b/Visual_Studio_Code_Insiders_1.36_icon.svg",
32
- scale: 0.15,
33
- anchor: [0.5, 0.1]
34
- },
35
- popupHtml: "<p>You clicked here:</p><code>ciao</code>"
36
- }
37
- },
38
- {
39
- marker: {
40
- lngLat: [10, 10],
41
- popupHtml: "<p>You clicked here:</p><code>ciao</code>"
42
- }
43
- },
44
- {
45
- marker: {
46
- lngLat: [10.3, 10]
47
- }
48
- },
49
- ]
50
- }
51
- },
52
- ];
53
- export var componentSetup = {
54
- definitions: null,
55
- storybookArgs: storybookArgs,
56
- styleSetup: styleSetup,
57
- author: null,
58
- contributors: [],
59
- owner: null,
60
- htmlSlots: htmlSlots,
61
- i18n: i18nLanguages,
62
- examples: examples,
63
- screenshots: [],
64
- licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
65
- readmePath: "README.md",
66
- name: "hb-map",
67
- category: "graph",
68
- tags: ["graph"],
69
- size: {},
70
- iifePath: "release/release.js",
71
- repoName: "@htmlbricks/hb-map",
72
- version: null
73
- };
74
- //# sourceMappingURL=docs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACtC,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACpC,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACrC,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACvC,qBAAqB,EAAE,EAAE,MAAM,EAAE,uBAAuB,EAAE;IAC1D,WAAW,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE;CACtC,CAAC;AAEF,IAAM,OAAO,GAAa,EAAE,CAAC;AAC7B,MAAM,CAAC,IAAM,QAAQ,GAAc,EAAE,CAAC;AACtC,MAAM,CAAC,IAAM,SAAS,GAAe,EAAE,CAAC;AACxC,MAAM,CAAC,IAAM,aAAa,GAAe,EAAE,CAAC;AAE5C,MAAM,CAAC,IAAM,UAAU,GAAe;IACrC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,QAAQ;CACf,CAAC;AAEF,IAAM,QAAQ,GAA8D;IAC3E;QACC,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACL,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;YAChB,IAAI,EAAE,CAAC;YACP,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;YACvB,OAAO,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE;YACvC,IAAI,EAAE;gBACL;oBACC,MAAM,EAAE;wBACP,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;wBAClB,IAAI,EAAE;4BACL,GAAG,EAAE,+FAA+F;4BACpG,KAAK,EAAE,IAAI;4BACX,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;yBAClB;wBACD,SAAS,EAAE,2CAA2C;qBACtD;iBACD;gBACD;oBACC,MAAM,EAAE;wBACP,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;wBAChB,SAAS,EAAE,2CAA2C;qBACtD;iBACD;gBACD;oBACC,MAAM,EAAE;wBACP,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;qBAClB;iBACD;aACD;SACD;KACD;CACD,CAAC;AACF,MAAM,CAAC,IAAM,cAAc,GAA6F;IACvH,WAAW,EAAE,IAAW;IACxB,aAAa,eAAA;IACb,UAAU,YAAA;IACV,MAAM,EAAE,IAAW;IACnB,YAAY,EAAE,EAAE;IAChB,KAAK,EAAE,IAAW;IAClB,SAAS,WAAA;IACT,IAAI,EAAE,aAAa;IACnB,QAAQ,UAAA;IACR,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChF,UAAU,EAAE,WAAW;IACvB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,oBAAoB;IAC9B,QAAQ,EAAE,oBAAoB;IAC9B,OAAO,EAAE,IAAW;CACpB,CAAC"}
package/release/docs.ts DELETED
@@ -1,79 +0,0 @@
1
- import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "wc-js-utils/main";
2
- import type { Component } from "../app/types/webcomponent.type";
3
-
4
- export const storybookArgs = {
5
- options: { control: { type: "object" } },
6
- center: { control: { type: "array" } },
7
- data: { control: { type: "array" } },
8
- zoom: { control: { type: "number" } },
9
- source: { control: { type: "object" } },
10
- pointClickCoordinates: { action: "pointClickCoordinates" },
11
- markerClick: { action: "markerClick" },
12
- };
13
-
14
- const cssVars: CssVar[] = [];
15
- export const cssParts: CssPart[] = [];
16
- export const htmlSlots: HtmlSlot[] = [];
17
- export const i18nLanguages: i18nLang[] = [];
18
-
19
- export const styleSetup: StyleSetup = {
20
- vars: cssVars,
21
- parts: cssParts,
22
- };
23
-
24
- const examples: { name: string; description?: string; data: Component }[] = [
25
- {
26
- name: "default",
27
- data: {
28
- center: [10, 10],
29
- zoom: 9,
30
- source: { type: "osm" },
31
- options: { centerFromGeometries: true },
32
- data: [
33
- {
34
- marker: {
35
- lngLat: [10.1, 10],
36
- icon: {
37
- uri: "https://upload.wikimedia.org/wikipedia/commons/4/4b/Visual_Studio_Code_Insiders_1.36_icon.svg",
38
- scale: 0.15,
39
- anchor: [0.5, 0.1],
40
- },
41
- popupHtml: "<p>You clicked here:</p><code>ciao</code>",
42
- },
43
- },
44
- {
45
- marker: {
46
- lngLat: [10, 10],
47
- popupHtml: "<p>You clicked here:</p><code>ciao</code>",
48
- },
49
- },
50
- {
51
- marker: {
52
- lngLat: [10.3, 10],
53
- },
54
- },
55
- ],
56
- },
57
- },
58
- ];
59
- export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
60
- definitions: null as any,
61
- storybookArgs,
62
- styleSetup,
63
- author: null as any,
64
- contributors: [],
65
- owner: null as any,
66
- htmlSlots,
67
- i18n: i18nLanguages,
68
- examples,
69
- screenshots: [],
70
- licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
71
- readmePath: "README.md",
72
- name: "hb-map",
73
- category: "graph",
74
- tags: ["graph"],
75
- size: {},
76
- iifePath: "release/release.js",
77
- repoName: "@htmlbricks/hb-map",
78
- version: null as any,
79
- };