svelte-plotly.js 0.1.0 → 0.1.3
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/README.md +4 -4
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ This is an unofficial package that lets you efficiently use [plotly.js](https://
|
|
|
13
13
|
const data = [
|
|
14
14
|
{
|
|
15
15
|
x: [1, 2, 3, 4, 5],
|
|
16
|
-
y: [
|
|
16
|
+
y: [1, 2, 4, 8, 16]
|
|
17
17
|
}
|
|
18
18
|
];
|
|
19
19
|
</script>
|
|
@@ -35,9 +35,9 @@ This is an unofficial package that lets you efficiently use [plotly.js](https://
|
|
|
35
35
|
| `layout` | `Partial<Layout>` | layout of the plot, see https://plot.ly/javascript/reference/#layout
|
|
36
36
|
| `config` | `Partial<Config>` | configuration, see https://plot.ly/javascript/configuration-options/
|
|
37
37
|
| `class` | `string` | class that will be passed to the HTML element wrapping the plot
|
|
38
|
-
| `fillParent` | `boolean
|
|
39
|
-
| `debounce` | `number
|
|
40
|
-
| `libPlotly` | `Plotly
|
|
38
|
+
| `fillParent` | `boolean \| 'width' \| 'height'` | automatically resize the plot to fill the width and/or height of its parent element
|
|
39
|
+
| `debounce` | `number \| DebounceOptions` | debounce all changes to the plot
|
|
40
|
+
| `libPlotly` | `Plotly \| null \| undefined` | an alternative Plotly bundle to use; if undefined, it defaults to the `plotly.js-dist` package; if null, no plot will be drawn and no library will be downloaded
|
|
41
41
|
| `bind:element` | `HTMLDivElement` | the HTML element wrapping the plot
|
|
42
42
|
| `bind:plot` | `PlotlyHTMLElement` | the inner HTML element containing the plot
|
|
43
43
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-plotly.js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Michal Grňo (m93a)",
|
|
6
6
|
"url": "https://github.com/m93a/"
|
|
7
7
|
},
|
|
8
8
|
"description": "Unoficial Plotly package for Svelte and SvelteKit",
|
|
9
|
+
"homepage": "https://github.com/m93a/svelte-plotly.js",
|
|
9
10
|
"bugs": {
|
|
10
|
-
"url": "https://github.com/m93a/svelte-plotly.js"
|
|
11
|
+
"url": "https://github.com/m93a/svelte-plotly.js/issues"
|
|
11
12
|
},
|
|
12
13
|
"packageManager": "yarn@1.22.5",
|
|
13
14
|
"license": "MIT",
|
|
@@ -19,8 +20,6 @@
|
|
|
19
20
|
"devDependencies": {
|
|
20
21
|
"@sveltejs/adapter-auto": "next",
|
|
21
22
|
"@sveltejs/kit": "next",
|
|
22
|
-
"@types/lodash": "^4.14.182",
|
|
23
|
-
"@types/plotly.js": "^1.54.20",
|
|
24
23
|
"@typescript-eslint/eslint-plugin": "^5.10.1",
|
|
25
24
|
"@typescript-eslint/parser": "^5.10.1",
|
|
26
25
|
"eslint": "^8.12.0",
|
|
@@ -38,9 +37,12 @@
|
|
|
38
37
|
},
|
|
39
38
|
"type": "module",
|
|
40
39
|
"dependencies": {
|
|
40
|
+
"@types/lodash": "^4.14.182",
|
|
41
|
+
"@types/plotly.js": "^1.54.20",
|
|
41
42
|
"lodash": "^4.17.21",
|
|
42
43
|
"plotly.js-dist": "^2.12.1"
|
|
43
44
|
},
|
|
45
|
+
"types": "./Plot.svelte.d.ts",
|
|
44
46
|
"exports": {
|
|
45
47
|
"./package.json": "./package.json",
|
|
46
48
|
"./Plot.svelte": "./Plot.svelte"
|