svelte-plotly.js 0.1.3 → 0.1.6
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 +2 -2
- package/Plot.svelte.d.ts +2 -1
- package/package.json +6 -4
package/Plot.svelte
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
</script>
|
|
3
3
|
|
|
4
4
|
<script>import { onMount, onDestroy } from 'svelte';
|
|
5
|
-
import { debounce as debouncify } from 'lodash';
|
|
6
|
-
|
|
5
|
+
import { debounce as debouncify } from 'lodash-es';
|
|
6
|
+
const browser = typeof window === 'object';
|
|
7
7
|
const nextFrame = browser ? requestAnimationFrame : () => void 0;
|
|
8
8
|
async function loadPlotly() {
|
|
9
9
|
if (!browser)
|
package/Plot.svelte.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
1
2
|
import { SvelteComponentTyped } from "svelte";
|
|
2
3
|
import type { Data, Layout, Config, PlotlyHTMLElement } from 'plotly.js';
|
|
3
4
|
export type { Data, Layout, Config, PlotlyHTMLElement };
|
|
4
5
|
export declare type FillParent = boolean | 'width' | 'height';
|
|
5
|
-
import type { DebounceSettings } from 'lodash';
|
|
6
|
+
import type { DebounceSettings } from 'lodash-es';
|
|
6
7
|
export interface DebounceOptions extends DebounceSettings {
|
|
7
8
|
wait: number;
|
|
8
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-plotly.js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Michal Grňo (m93a)",
|
|
6
6
|
"url": "https://github.com/m93a/"
|
|
@@ -37,14 +37,16 @@
|
|
|
37
37
|
},
|
|
38
38
|
"type": "module",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@types/lodash": "^4.
|
|
40
|
+
"@types/lodash-es": "^4.17.6",
|
|
41
41
|
"@types/plotly.js": "^1.54.20",
|
|
42
|
-
"lodash": "^4.17.21",
|
|
42
|
+
"lodash-es": "^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
|
}
|