svelte-plotly.js 0.1.4 → 0.1.7

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 CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  <script>import { onMount, onDestroy } from 'svelte';
5
5
  import { debounce as debouncify } from 'lodash';
6
- import { browser } from '$app/env';
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
@@ -24,7 +24,7 @@ This is an unofficial package that lets you efficiently use [plotly.js](https://
24
24
  margin: { t: 0 }
25
25
  }}
26
26
  fillParent='width'
27
- debounce=250
27
+ debounce={250}
28
28
  />
29
29
  ```
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-plotly.js",
3
- "version": "0.1.4",
3
+ "version": "0.1.7",
4
4
  "author": {
5
5
  "name": "Michal Grňo (m93a)",
6
6
  "url": "https://github.com/m93a/"