@kanaries/graphic-walker 0.4.3 → 0.4.4
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/dist/components/spinner.d.ts +3 -1
- package/dist/graphic-walker.es.js +6422 -6417
- package/dist/graphic-walker.es.js.map +1 -1
- package/dist/graphic-walker.umd.js +98 -98
- package/dist/graphic-walker.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/loadingLayer.tsx +5 -1
- package/src/components/spinner.tsx +3 -2
- package/src/renderer/index.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import Spinner from './spinner';
|
|
2
3
|
|
|
3
4
|
export default function LoadingLayer () {
|
|
4
5
|
return <div className="bg-gray-100/50 dark:bg-gray-700/50 absolute top-0 left-0 right-0 bottom-0 z-50 flex items-center justify-center">
|
|
5
|
-
|
|
6
|
+
<Spinner className="text-indigo-500" />
|
|
7
|
+
<span className="text-sm text-indigo-500">
|
|
8
|
+
Loading...
|
|
9
|
+
</span>
|
|
6
10
|
</div>
|
|
7
11
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
export default function Spinner() {
|
|
3
|
+
export default function Spinner(props: { className?: string }) {
|
|
4
|
+
const className = props.className || 'text-white';
|
|
4
5
|
return (
|
|
5
|
-
<svg className=
|
|
6
|
+
<svg className={`animate-spin ml-2 mr-2 h-5 w-5 ${className}`} viewBox="0 0 24 24">
|
|
6
7
|
<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4"></circle>
|
|
7
8
|
<path
|
|
8
9
|
className="opacity-75"
|
package/src/renderer/index.tsx
CHANGED
|
@@ -76,7 +76,7 @@ const Renderer = forwardRef<IReactVegaHandler, RendererProps>(function (props, r
|
|
|
76
76
|
setViewConfig(latestFromRef.current.visualConfig);
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
}, [waiting, vizStore]);
|
|
79
|
+
}, [waiting, data, vizStore]);
|
|
80
80
|
|
|
81
81
|
useChartIndexControl({
|
|
82
82
|
count: visList.length,
|