@kanaries/graphic-walker 0.4.7 → 0.4.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanaries/graphic-walker",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "scripts": {
5
5
  "dev:front_end": "vite --host",
6
6
  "dev": "npm run dev:front_end",
@@ -38,7 +38,7 @@ type IPureRendererProps =
38
38
  * This is a pure component, which means it will not depend on any global state.
39
39
  */
40
40
  const PureRenderer = forwardRef<IReactVegaHandler, IPureRendererProps>(function PureRenderer(props, ref) {
41
- const { name, themeKey, dark, visualState, visualConfig, type, locale, sort, limit } = props;
41
+ const { name, themeKey, dark, visualState, visualConfig, type, locale, sort, limit, themeConfig } = props;
42
42
  const computation = useMemo(() => {
43
43
  if (props.type === 'remote') {
44
44
  return props.computation;
@@ -98,12 +98,13 @@ const PureRenderer = forwardRef<IReactVegaHandler, IPureRendererProps>(function
98
98
  <ShadowDom className="flex w-full" style={{ height: '100%' }}>
99
99
  <div className="relative flex flex-col w-full flex-1">
100
100
  {isSpatial && (
101
- <div className="max-w-full" style={{ width: LEAFLET_DEFAULT_WIDTH, height: LEAFLET_DEFAULT_HEIGHT, flexGrow: 1 }}>
101
+ <div className="max-w-full" style={{ height: LEAFLET_DEFAULT_HEIGHT, flexGrow: 1 }}>
102
102
  <LeafletRenderer data={data} draggableFieldState={visualState} visualConfig={visualConfig} />
103
103
  </div>
104
104
  )}
105
105
  {isSpatial || (
106
106
  <SpecRenderer
107
+ themeConfig={themeConfig}
107
108
  name={name}
108
109
  loading={waiting}
109
110
  data={viewData}