impact-nova 3.0.0-alpha.20 → 3.0.0-alpha.23
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/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +32 -31
- package/dist/components/data-display/chart/chart-heatmap-layout.d.ts +31 -0
- package/dist/components/data-display/chart/chart-heatmap-layout.js +72 -0
- package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +1 -1
- package/dist/components/data-display/chart/chart.js +165 -150
- package/dist/components/data-display/chart/chart.types.d.ts +17 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid-play.d.ts +9 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.d.ts +32 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.js +93 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.d.ts +46 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.js +80 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.types.d.ts +54 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.d.ts +18 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.js +80 -0
- package/dist/components/data-display/heatmap-grid/index.d.ts +3 -0
- package/dist/components/data-display/heatmap-grid/index.js +14 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.d.ts +14 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.js +39 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.d.ts +29 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.js +33 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.d.ts +4 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.js +49 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.d.ts +3 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.js +173 -0
- package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.d.ts +12 -0
- package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.js +161 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.js +35 -33
- package/dist/components/data-display/hex-tilemap/hex-tilemap.types.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-camera.js +30 -28
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.d.ts +1 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.js +36 -34
- package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.d.ts +2 -1
- package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.js +87 -84
- package/dist/components/flows/iris-chat/iris-chat-chrome.js +203 -185
- package/dist/i18n/defaultMessages.d.ts +6 -0
- package/dist/i18n/defaultMessages.js +16 -11
- package/dist/i18n/locales/de.js +5 -0
- package/dist/i18n/locales/es.js +5 -0
- package/dist/i18n/locales/hi.js +5 -0
- package/dist/i18n/locales/kn.js +5 -0
- package/dist/impact-nova.css +1 -1
- package/dist/lib/primitives/use-field-chrome.js +22 -22
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +5 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as w, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import { createComponent as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { hexTilemapViewportVariants as
|
|
3
|
+
import { createComponent as k } from "../../../../lib/primitives/create-component.js";
|
|
4
|
+
import { cn as L } from "../../../../lib/utils.js";
|
|
5
|
+
import { hexTilemapViewportVariants as $ } from "../hex-tilemap.variants.js";
|
|
6
6
|
import { HEX_BUTTON_ZOOM_STEP as g } from "./hex-camera.js";
|
|
7
|
-
import { extentsFromTiles as
|
|
8
|
-
import { useHexTilemapContext as
|
|
9
|
-
import { HexTilemapTooltip as
|
|
10
|
-
import { HexTilemapZoom as
|
|
11
|
-
import { useHexCamera as
|
|
12
|
-
const
|
|
7
|
+
import { extentsFromTiles as E, buildLandPath as V, hexTileToPixel as D } from "./hex-geometry.js";
|
|
8
|
+
import { useHexTilemapContext as O } from "./hex-tilemap-context.js";
|
|
9
|
+
import { HexTilemapTooltip as _ } from "./hex-tilemap-tooltip.js";
|
|
10
|
+
import { HexTilemapZoom as z } from "./hex-tilemap-zoom.js";
|
|
11
|
+
import { useHexCamera as F } from "./use-hex-camera.js";
|
|
12
|
+
const N = 315, A = "M9.56148 9.69087C9.20834 10.3244 8.53986 10.7171 7.81452 10.7171H3.94774C3.23129 10.7171 2.56957 10.3339 2.21301 9.71249L0.265298 6.3179C-0.090937 5.69704-0.0882008 4.93312 0.272474 4.31482L2.21064 0.992257C2.56906 0.377822 3.22686 0 3.93819 0H7.824C8.54428 0 9.20893 0.387309 9.56404 1.01397L11.4467 4.33636C11.7909 4.94364 11.7935 5.6864 11.4536 6.2961L9.56148 9.69087Z", Q = k(
|
|
13
13
|
"HexTilemapViewport",
|
|
14
|
-
({ className: v, height: T =
|
|
14
|
+
({ className: v, height: T = N, ...C }, r) => {
|
|
15
15
|
const {
|
|
16
16
|
layout: s,
|
|
17
17
|
visiblePoints: P,
|
|
@@ -19,37 +19,39 @@ const F = 315, N = "M9.56148 9.69087C9.20834 10.3244 8.53986 10.7171 7.81452 10.
|
|
|
19
19
|
setHoverPoint: m,
|
|
20
20
|
mapLabel: b,
|
|
21
21
|
setZoom: H,
|
|
22
|
-
zoom: Z
|
|
23
|
-
|
|
22
|
+
zoom: Z,
|
|
23
|
+
wheelZoomMode: M
|
|
24
|
+
} = O(), c = n.useRef(null), p = n.useRef(null), f = n.useId(), y = n.useMemo(
|
|
24
25
|
() => new Map(h.map((e) => [e.id, e.color])),
|
|
25
26
|
[h]
|
|
26
|
-
), t = n.useMemo(() =>
|
|
27
|
+
), t = n.useMemo(() => E(s.land), [s.land]), R = n.useMemo(
|
|
27
28
|
() => ({ width: t.width, height: t.height }),
|
|
28
29
|
[t.height, t.width]
|
|
29
|
-
),
|
|
30
|
-
() =>
|
|
30
|
+
), B = n.useMemo(
|
|
31
|
+
() => V(s.land, t.originColumn, t.originRow),
|
|
31
32
|
[t.originColumn, t.originRow, s.land]
|
|
32
|
-
), o =
|
|
33
|
-
extents:
|
|
33
|
+
), o = F({
|
|
34
|
+
extents: R,
|
|
34
35
|
zoom: Z,
|
|
35
36
|
onZoomChange: H,
|
|
36
37
|
svgRef: p,
|
|
37
|
-
viewportRef: c
|
|
38
|
-
|
|
38
|
+
viewportRef: c,
|
|
39
|
+
wheelZoomMode: M
|
|
40
|
+
}), I = n.useCallback(
|
|
39
41
|
(e) => {
|
|
40
42
|
c.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
|
|
41
43
|
},
|
|
42
44
|
[r]
|
|
43
45
|
), x = n.useCallback(
|
|
44
46
|
(e, d) => {
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
+
const l = c.current?.getBoundingClientRect(), a = d.getBoundingClientRect();
|
|
48
|
+
l && m({
|
|
47
49
|
id: e.id,
|
|
48
50
|
label: e.label,
|
|
49
51
|
value: e.value,
|
|
50
52
|
seriesId: e.seriesId,
|
|
51
|
-
clientX:
|
|
52
|
-
clientY:
|
|
53
|
+
clientX: a.left + a.width / 2 - l.left,
|
|
54
|
+
clientY: a.top - l.top
|
|
53
55
|
});
|
|
54
56
|
},
|
|
55
57
|
[m]
|
|
@@ -57,10 +59,10 @@ const F = 315, N = "M9.56148 9.69087C9.20834 10.3244 8.53986 10.7171 7.81452 10.
|
|
|
57
59
|
return /* @__PURE__ */ w(
|
|
58
60
|
"div",
|
|
59
61
|
{
|
|
60
|
-
ref:
|
|
62
|
+
ref: I,
|
|
61
63
|
"data-component": "hex-tilemap-viewport",
|
|
62
64
|
tabIndex: 0,
|
|
63
|
-
className:
|
|
65
|
+
className: L($({ panning: o.isPanning }), v),
|
|
64
66
|
style: { height: T },
|
|
65
67
|
...C,
|
|
66
68
|
onPointerDown: o.handlePointerDown,
|
|
@@ -85,25 +87,25 @@ const F = 315, N = "M9.56148 9.69087C9.20834 10.3244 8.53986 10.7171 7.81452 10.
|
|
|
85
87
|
/* @__PURE__ */ i(
|
|
86
88
|
"path",
|
|
87
89
|
{
|
|
88
|
-
d:
|
|
90
|
+
d: B,
|
|
89
91
|
className: "pointer-events-none fill-canvas-elevated stroke-content/15",
|
|
90
92
|
strokeWidth: 0.35,
|
|
91
93
|
filter: `url(#${f})`
|
|
92
94
|
}
|
|
93
95
|
),
|
|
94
96
|
P.map((e) => {
|
|
95
|
-
const { pixelX: d, pixelY:
|
|
97
|
+
const { pixelX: d, pixelY: l } = D(
|
|
96
98
|
e.tile.x - t.originColumn,
|
|
97
99
|
e.tile.y - t.originRow
|
|
98
|
-
),
|
|
100
|
+
), a = y.get(e.seriesId) ?? "var(--color-success)";
|
|
99
101
|
return /* @__PURE__ */ i(
|
|
100
102
|
"path",
|
|
101
103
|
{
|
|
102
104
|
"data-testid": "hex-tilemap-point",
|
|
103
105
|
"data-point-id": e.id,
|
|
104
|
-
d:
|
|
105
|
-
transform: `translate(${d}, ${
|
|
106
|
-
fill:
|
|
106
|
+
d: A,
|
|
107
|
+
transform: `translate(${d}, ${l})`,
|
|
108
|
+
fill: a,
|
|
107
109
|
className: "cursor-pointer stroke-content/10 outline-none focus-visible:stroke-brand",
|
|
108
110
|
strokeWidth: 0.3,
|
|
109
111
|
tabIndex: 0,
|
|
@@ -124,9 +126,9 @@ const F = 315, N = "M9.56148 9.69087C9.20834 10.3244 8.53986 10.7171 7.81452 10.
|
|
|
124
126
|
]
|
|
125
127
|
}
|
|
126
128
|
),
|
|
127
|
-
/* @__PURE__ */ i(
|
|
129
|
+
/* @__PURE__ */ i(_, {}),
|
|
128
130
|
/* @__PURE__ */ i(
|
|
129
|
-
|
|
131
|
+
z,
|
|
130
132
|
{
|
|
131
133
|
onZoomIn: () => o.zoomBy(g),
|
|
132
134
|
onZoomOut: () => o.zoomBy(-g),
|
|
@@ -143,5 +145,5 @@ const F = 315, N = "M9.56148 9.69087C9.20834 10.3244 8.53986 10.7171 7.81452 10.
|
|
|
143
145
|
}
|
|
144
146
|
);
|
|
145
147
|
export {
|
|
146
|
-
|
|
148
|
+
Q as HexTilemapViewport
|
|
147
149
|
};
|
|
@@ -6,8 +6,9 @@ interface UseHexCameraOptions {
|
|
|
6
6
|
onZoomChange: (zoom: number) => void;
|
|
7
7
|
svgRef: React.RefObject<SVGSVGElement | null>;
|
|
8
8
|
viewportRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
wheelZoomMode: "always" | "pinch-only";
|
|
9
10
|
}
|
|
10
|
-
export declare function useHexCamera({ extents, zoom, onZoomChange, svgRef, viewportRef, }: UseHexCameraOptions): {
|
|
11
|
+
export declare function useHexCamera({ extents, zoom, onZoomChange, svgRef, viewportRef, wheelZoomMode, }: UseHexCameraOptions): {
|
|
11
12
|
isPanning: boolean;
|
|
12
13
|
handlePointerDown: (event: React.PointerEvent<HTMLDivElement>) => void;
|
|
13
14
|
handlePointerMove: (event: React.PointerEvent<HTMLDivElement>) => void;
|
|
@@ -1,137 +1,140 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { centeredCamera as C, applyCameraViewBox as D, prefersReducedMotion as W, clampZoom as I, zoomCameraAt as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { centeredCamera as C, applyCameraViewBox as D, prefersReducedMotion as W, clampZoom as I, zoomCameraAt as Y, HEX_ZOOM_DEFAULT as O, clientToSvgPoint as T, panCamera as y, HEX_BUTTON_ZOOM_STEP as x, HEX_ZOOM_MIN as q, HEX_ZOOM_MAX as V, interpolateCamera as j, HEX_WHEEL_ZOOM_STEP as z, easeOutCubic as G } from "./hex-camera.js";
|
|
3
|
+
const J = 180;
|
|
4
|
+
function $({
|
|
5
5
|
extents: f,
|
|
6
|
-
zoom:
|
|
7
|
-
onZoomChange:
|
|
6
|
+
zoom: p,
|
|
7
|
+
onZoomChange: P,
|
|
8
8
|
svgRef: l,
|
|
9
|
-
viewportRef:
|
|
9
|
+
viewportRef: Z,
|
|
10
|
+
wheelZoomMode: g
|
|
10
11
|
}) {
|
|
11
|
-
const [
|
|
12
|
+
const [F, H] = e.useState(!1), c = e.useRef(C(f, p)), o = e.useRef(f), E = e.useRef(p), m = e.useRef(null), k = e.useRef(null), u = e.useCallback((t) => {
|
|
12
13
|
c.current = t;
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
}, [l]),
|
|
14
|
+
const r = l.current;
|
|
15
|
+
r && D(r, t);
|
|
16
|
+
}, [l]), A = e.useCallback(
|
|
16
17
|
(t) => {
|
|
17
|
-
const
|
|
18
|
-
|
|
18
|
+
const r = I(t);
|
|
19
|
+
r !== E.current && P(r);
|
|
19
20
|
},
|
|
20
|
-
[
|
|
21
|
-
), d =
|
|
22
|
-
|
|
23
|
-
}, []), i =
|
|
24
|
-
(t,
|
|
21
|
+
[P]
|
|
22
|
+
), d = e.useCallback(() => {
|
|
23
|
+
m.current !== null && (cancelAnimationFrame(m.current), m.current = null);
|
|
24
|
+
}, []), i = e.useCallback(
|
|
25
|
+
(t, r) => {
|
|
25
26
|
d();
|
|
26
27
|
const n = c.current;
|
|
27
|
-
if (
|
|
28
|
-
|
|
28
|
+
if (A(r), W()) {
|
|
29
|
+
u(t);
|
|
29
30
|
return;
|
|
30
31
|
}
|
|
31
|
-
const
|
|
32
|
-
const b = Math.min(1, (X -
|
|
33
|
-
if (
|
|
34
|
-
|
|
32
|
+
const a = performance.now(), s = (X) => {
|
|
33
|
+
const b = Math.min(1, (X - a) / J);
|
|
34
|
+
if (u(j(n, t, G(b))), b < 1) {
|
|
35
|
+
m.current = requestAnimationFrame(s);
|
|
35
36
|
return;
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
+
m.current = null;
|
|
38
39
|
};
|
|
39
|
-
|
|
40
|
+
m.current = requestAnimationFrame(s);
|
|
40
41
|
},
|
|
41
|
-
[d,
|
|
42
|
-
),
|
|
43
|
-
|
|
44
|
-
o.current = { width:
|
|
45
|
-
}, [_,
|
|
46
|
-
const t = { width:
|
|
42
|
+
[d, A, u]
|
|
43
|
+
), w = f.width, _ = f.height;
|
|
44
|
+
e.useEffect(() => {
|
|
45
|
+
o.current = { width: w, height: _ }, E.current = p;
|
|
46
|
+
}, [_, w, p]), e.useEffect(() => {
|
|
47
|
+
const t = { width: w, height: _ };
|
|
47
48
|
o.current = t;
|
|
48
|
-
const
|
|
49
|
-
c.current =
|
|
49
|
+
const r = C(t, E.current);
|
|
50
|
+
c.current = r;
|
|
50
51
|
const n = l.current;
|
|
51
|
-
n && D(n,
|
|
52
|
-
}, [_,
|
|
52
|
+
n && D(n, r);
|
|
53
|
+
}, [_, w, l]), e.useLayoutEffect(() => {
|
|
53
54
|
const t = l.current;
|
|
54
55
|
t && D(t, c.current);
|
|
55
|
-
}),
|
|
56
|
-
const h =
|
|
57
|
-
(t,
|
|
58
|
-
const
|
|
56
|
+
}), e.useEffect(() => () => d(), [d]);
|
|
57
|
+
const h = e.useCallback(
|
|
58
|
+
(t, r, n = !1) => {
|
|
59
|
+
const a = I(E.current + t), s = Y(c.current, o.current, a, r);
|
|
59
60
|
if (n) {
|
|
60
|
-
d(),
|
|
61
|
+
d(), u(s), A(a);
|
|
61
62
|
return;
|
|
62
63
|
}
|
|
63
|
-
i(s,
|
|
64
|
+
i(s, a);
|
|
64
65
|
},
|
|
65
|
-
[i, d,
|
|
66
|
-
),
|
|
66
|
+
[i, d, A, u]
|
|
67
|
+
), L = e.useCallback(
|
|
67
68
|
(t) => {
|
|
68
|
-
const
|
|
69
|
-
i(
|
|
69
|
+
const r = I(t);
|
|
70
|
+
i(Y(c.current, o.current, r), r);
|
|
70
71
|
},
|
|
71
72
|
[i]
|
|
72
|
-
),
|
|
73
|
-
i(C(o.current,
|
|
74
|
-
}, [i]),
|
|
75
|
-
i(C(o.current,
|
|
76
|
-
}, [i]),
|
|
73
|
+
), M = e.useCallback(() => {
|
|
74
|
+
i(C(o.current, O), O);
|
|
75
|
+
}, [i]), S = e.useCallback(() => {
|
|
76
|
+
i(C(o.current, O), O);
|
|
77
|
+
}, [i]), R = e.useCallback(
|
|
77
78
|
(t) => {
|
|
78
79
|
t.button === 0 && (t.target.closest("[data-hex-tilemap-zoom]") || (k.current = {
|
|
79
80
|
pointerId: t.pointerId,
|
|
80
81
|
lastX: t.clientX,
|
|
81
82
|
lastY: t.clientY
|
|
82
|
-
}, t.currentTarget.setPointerCapture(t.pointerId),
|
|
83
|
+
}, t.currentTarget.setPointerCapture(t.pointerId), H(!0)));
|
|
83
84
|
},
|
|
84
85
|
[]
|
|
85
|
-
),
|
|
86
|
+
), B = e.useCallback(
|
|
86
87
|
(t) => {
|
|
87
|
-
const
|
|
88
|
-
if (!
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
const r = k.current, n = l.current;
|
|
89
|
+
if (!r || r.pointerId !== t.pointerId || !n) return;
|
|
90
|
+
const a = T(n, r.lastX, r.lastY), s = T(n, t.clientX, t.clientY);
|
|
91
|
+
r.lastX = t.clientX, r.lastY = t.clientY, !(!a || !s) && u(
|
|
92
|
+
y(c.current, o.current, s.x - a.x, s.y - a.y)
|
|
92
93
|
);
|
|
93
94
|
},
|
|
94
|
-
[
|
|
95
|
-
),
|
|
96
|
-
t && k.current && k.current.pointerId !== t.pointerId || (k.current = null,
|
|
95
|
+
[u, l]
|
|
96
|
+
), N = e.useCallback((t) => {
|
|
97
|
+
t && k.current && k.current.pointerId !== t.pointerId || (k.current = null, H(!1));
|
|
97
98
|
}, []);
|
|
98
|
-
|
|
99
|
-
const t =
|
|
99
|
+
e.useEffect(() => {
|
|
100
|
+
const t = Z.current;
|
|
100
101
|
if (!t) return;
|
|
101
|
-
const
|
|
102
|
+
const r = (n) => {
|
|
103
|
+
if (g === "pinch-only" && !n.ctrlKey)
|
|
104
|
+
return;
|
|
102
105
|
n.preventDefault();
|
|
103
|
-
const
|
|
106
|
+
const a = l.current, s = n.deltaY < 0 ? 1 : -1, X = n.ctrlKey ? 10 : z, b = a ? T(a, n.clientX, n.clientY) : null;
|
|
104
107
|
h(s * X, b ?? void 0, !0);
|
|
105
108
|
};
|
|
106
|
-
return t.addEventListener("wheel",
|
|
107
|
-
}, [l,
|
|
108
|
-
const
|
|
109
|
+
return t.addEventListener("wheel", r, { passive: !1 }), () => t.removeEventListener("wheel", r);
|
|
110
|
+
}, [l, Z, g, h]);
|
|
111
|
+
const K = e.useCallback(
|
|
109
112
|
(t) => {
|
|
110
|
-
const
|
|
111
|
-
t.key === "+" || t.key === "=" ? (t.preventDefault(), h(
|
|
113
|
+
const r = c.current.width * 0.08;
|
|
114
|
+
t.key === "+" || t.key === "=" ? (t.preventDefault(), h(x)) : t.key === "-" || t.key === "_" ? (t.preventDefault(), h(-x)) : t.key === "ArrowLeft" ? (t.preventDefault(), u(y(c.current, o.current, -r, 0))) : t.key === "ArrowRight" ? (t.preventDefault(), u(y(c.current, o.current, r, 0))) : t.key === "ArrowUp" ? (t.preventDefault(), u(y(c.current, o.current, 0, -r))) : t.key === "ArrowDown" ? (t.preventDefault(), u(y(c.current, o.current, 0, r))) : t.key === "0" && (t.preventDefault(), M());
|
|
112
115
|
},
|
|
113
|
-
[
|
|
114
|
-
), U =
|
|
115
|
-
() => C(f,
|
|
116
|
+
[u, M, h]
|
|
117
|
+
), U = e.useMemo(
|
|
118
|
+
() => C(f, p),
|
|
116
119
|
// Recapture only when the land frame changes so wheel/pan viewBox writes stay on the SVG.
|
|
117
120
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
118
121
|
[f.height, f.width]
|
|
119
122
|
);
|
|
120
123
|
return {
|
|
121
|
-
isPanning:
|
|
122
|
-
handlePointerDown:
|
|
123
|
-
handlePointerMove:
|
|
124
|
-
endPan:
|
|
125
|
-
handleKeyDown:
|
|
124
|
+
isPanning: F,
|
|
125
|
+
handlePointerDown: R,
|
|
126
|
+
handlePointerMove: B,
|
|
127
|
+
endPan: N,
|
|
128
|
+
handleKeyDown: K,
|
|
126
129
|
zoomBy: h,
|
|
127
|
-
zoomTo:
|
|
128
|
-
resetZoom:
|
|
129
|
-
zoomToFit:
|
|
130
|
+
zoomTo: L,
|
|
131
|
+
resetZoom: M,
|
|
132
|
+
zoomToFit: S,
|
|
130
133
|
initialViewBox: U,
|
|
131
|
-
canZoomIn:
|
|
132
|
-
canZoomOut:
|
|
134
|
+
canZoomIn: p < V,
|
|
135
|
+
canZoomOut: p > q
|
|
133
136
|
};
|
|
134
137
|
}
|
|
135
138
|
export {
|
|
136
|
-
|
|
139
|
+
$ as useHexCamera
|
|
137
140
|
};
|