svelte-plotly.js 0.1.2 → 0.1.5
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/Plot.svelte +1 -1
- package/README.md +1 -1
- package/package.json +6 -4
package/Plot.svelte
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
<script>import { onMount, onDestroy } from 'svelte';
|
|
5
5
|
import { debounce as debouncify } from 'lodash';
|
|
6
|
-
|
|
6
|
+
const browser = typeof window === 'object';
|
|
7
7
|
const nextFrame = browser ? requestAnimationFrame : () => void 0;
|
|
8
8
|
async function loadPlotly() {
|
|
9
9
|
if (!browser)
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-plotly.js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Michal Grňo (m93a)",
|
|
6
6
|
"url": "https://github.com/m93a/"
|
|
@@ -20,8 +20,6 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@sveltejs/adapter-auto": "next",
|
|
22
22
|
"@sveltejs/kit": "next",
|
|
23
|
-
"@types/lodash": "^4.14.182",
|
|
24
|
-
"@types/plotly.js": "^1.54.20",
|
|
25
23
|
"@typescript-eslint/eslint-plugin": "^5.10.1",
|
|
26
24
|
"@typescript-eslint/parser": "^5.10.1",
|
|
27
25
|
"eslint": "^8.12.0",
|
|
@@ -39,12 +37,16 @@
|
|
|
39
37
|
},
|
|
40
38
|
"type": "module",
|
|
41
39
|
"dependencies": {
|
|
40
|
+
"@types/lodash": "^4.14.182",
|
|
41
|
+
"@types/plotly.js": "^1.54.20",
|
|
42
42
|
"lodash": "^4.17.21",
|
|
43
43
|
"plotly.js-dist": "^2.12.1"
|
|
44
44
|
},
|
|
45
45
|
"types": "./Plot.svelte.d.ts",
|
|
46
46
|
"exports": {
|
|
47
47
|
"./package.json": "./package.json",
|
|
48
|
+
".": "./Plot.svelte",
|
|
48
49
|
"./Plot.svelte": "./Plot.svelte"
|
|
49
|
-
}
|
|
50
|
+
},
|
|
51
|
+
"svelte": "./Plot.svelte"
|
|
50
52
|
}
|