react-zoom-pan-pinch 3.0.2 → 3.0.3
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/.storybook/main.js +23 -0
- package/.storybook/preview-head.html +5 -0
- package/.storybook/preview.js +11 -0
- package/.storybook/theme-overrides.css +49 -0
- package/__tests__/features/props.spec.tsx +11 -0
- package/__tests__/features/rendering.spec.tsx +36 -0
- package/__tests__/shared/render.shared.tsx +41 -0
- package/__tests__/utils/controls.utils.tsx +25 -0
- package/__tests__/utils/example.tsx +81 -0
- package/dist/__tests__/features/props.spec.d.ts +1 -0
- package/dist/__tests__/features/rendering.spec.d.ts +1 -0
- package/dist/__tests__/shared/render.shared.d.ts +11 -0
- package/dist/__tests__/utils/controls.utils.d.ts +3 -0
- package/dist/__tests__/utils/example.d.ts +6 -0
- package/dist/src/stories/docs/handlers.d.ts +12 -0
- package/dist/src/stories/docs/props.d.ts +14 -0
- package/dist/src/stories/examples/content-rerendering/example.d.ts +2 -0
- package/dist/src/stories/examples/image-responsive/example.d.ts +2 -0
- package/dist/src/stories/examples/keep-scale/example.d.ts +2 -0
- package/dist/src/stories/examples/mini-map/example.d.ts +1 -0
- package/dist/src/stories/examples/stress/example.d.ts +2 -0
- package/dist/src/stories/examples/svg-zoom-to-element/example.d.ts +2 -0
- package/dist/src/stories/examples/zoom-to-element/example.d.ts +2 -0
- package/dist/src/stories/types/args.types.d.ts +268 -0
- package/dist/src/stories/utils/args.utils.d.ts +3 -0
- package/dist/src/stories/utils/code.utils.d.ts +6 -0
- package/dist/src/stories/utils/controls.utils.d.ts +3 -0
- package/dist/src/stories/utils/index.d.ts +3 -0
- package/jest.config.ts +45 -0
- package/package.json +1 -1
- package/src/stories/assets/big-image.jpeg +0 -0
- package/src/stories/assets/map.jpg +0 -0
- package/src/stories/assets/medium-image.jpg +0 -0
- package/src/stories/assets/pin.svg +1 -0
- package/src/stories/assets/small-image.jpg +0 -0
- package/src/stories/assets/svg-example.svg +14 -0
- package/src/stories/docs/Introduction.stories.mdx +174 -0
- package/src/stories/docs/handlers.stories.mdx +48 -0
- package/src/stories/docs/handlers.tsx +107 -0
- package/src/stories/docs/props.stories.mdx +92 -0
- package/src/stories/docs/props.tsx +496 -0
- package/src/stories/examples/content/content.stories.mdx +121 -0
- package/src/stories/examples/content-rerendering/content-updating.stories.mdx +45 -0
- package/src/stories/examples/content-rerendering/example.tsx +73 -0
- package/src/stories/examples/controls/controls.stories.mdx +71 -0
- package/src/stories/examples/image-big/image-big.stories.mdx +43 -0
- package/src/stories/examples/image-medium/image-medium.stories.mdx +41 -0
- package/src/stories/examples/image-responsive/example.tsx +103 -0
- package/src/stories/examples/image-responsive/image-responsive.stories.mdx +32 -0
- package/src/stories/examples/image-small/image-small.stories.mdx +41 -0
- package/src/stories/examples/image-zoomed-out/image-zoomed-out.stories.mdx +46 -0
- package/src/stories/examples/keep-scale/example.tsx +92 -0
- package/src/stories/examples/keep-scale/keep-scale.stories.mdx +45 -0
- package/src/stories/examples/mini-map/example.tsx +54 -0
- package/src/stories/examples/mini-map/mini-map.stories.mdx +33 -0
- package/src/stories/examples/stress/example.tsx +23 -0
- package/src/stories/examples/stress/stress-test.stories.mdx +28 -0
- package/src/stories/examples/svg-zoom-to-element/creativity.svg +143 -0
- package/src/stories/examples/svg-zoom-to-element/example.tsx +57 -0
- package/src/stories/examples/svg-zoom-to-element/svg-zoom-to-element.stories.mdx +28 -0
- package/src/stories/examples/zoom-to-element/example.tsx +94 -0
- package/src/stories/examples/zoom-to-element/zoom-to-element.stories.mdx +28 -0
- package/src/stories/hooks/use-controls.stories.mdx +24 -0
- package/src/stories/hooks/use-transform-context.stories.mdx +15 -0
- package/src/stories/hooks/use-transform-effect.stories.mdx +29 -0
- package/src/stories/hooks/use-transform-init.stories.mdx +25 -0
- package/src/stories/types/args.types.ts +201 -0
- package/src/stories/utils/args.utils.ts +34 -0
- package/src/stories/utils/code.utils.tsx +24 -0
- package/src/stories/utils/controls.utils.tsx +43 -0
- package/src/stories/utils/index.ts +3 -0
- package/src/stories/utils/styles.module.css +34 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|ts|tsx)"],
|
|
3
|
+
addons: [
|
|
4
|
+
"@storybook/addon-links",
|
|
5
|
+
"@storybook/addon-essentials",
|
|
6
|
+
"@storybook/preset-create-react-app",
|
|
7
|
+
"@storybook/addon-storysource",
|
|
8
|
+
"@storybook/addon-a11y",
|
|
9
|
+
],
|
|
10
|
+
core: {
|
|
11
|
+
builder: "webpack5",
|
|
12
|
+
},
|
|
13
|
+
framework: "@storybook/react",
|
|
14
|
+
webpackFinal: (webpackConfig) => {
|
|
15
|
+
const scopePluginIndex = webpackConfig.resolve.plugins.findIndex(
|
|
16
|
+
({ constructor }) =>
|
|
17
|
+
constructor && constructor.name === "ModuleScopePlugin",
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
webpackConfig.resolve.plugins.splice(scopePluginIndex, 1);
|
|
21
|
+
return webpackConfig;
|
|
22
|
+
},
|
|
23
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
body {
|
|
2
|
+
font-family: "Poppins", sans-serif;
|
|
3
|
+
font-style: normal;
|
|
4
|
+
font-weight: normal;
|
|
5
|
+
font-size: 13px;
|
|
6
|
+
line-height: 130%;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
-webkit-font-smoothing: antialiased;
|
|
9
|
+
-moz-osx-font-smoothing: grayscale;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
body .sbdocs {
|
|
13
|
+
max-width: unset;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.react-transform-wrapper {
|
|
17
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
body td > pre.prism-code {
|
|
21
|
+
background: transparent !important;
|
|
22
|
+
overflow: auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.props-table {
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.props-table th {
|
|
30
|
+
text-align: left;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.is-object-row td {
|
|
34
|
+
background: #d8e2f5;
|
|
35
|
+
border-top: 2px solid rgb(173 173 173) !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.react-transform-wrapper {
|
|
39
|
+
max-width: 80vw;
|
|
40
|
+
max-height: 80vh;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.handlers-table {
|
|
44
|
+
width: 100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.handlers-table th {
|
|
48
|
+
text-align: left;
|
|
49
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { renderExample } from "../shared/render.shared";
|
|
2
|
+
|
|
3
|
+
describe("Library components", () => {
|
|
4
|
+
describe("When library components have been rendered", () => {
|
|
5
|
+
test("it renders transform component without errors", () => {
|
|
6
|
+
const { content, wrapper } = renderExample();
|
|
7
|
+
expect(content).toBeDefined();
|
|
8
|
+
expect(wrapper).toBeDefined();
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { renderExample } from "../shared/render.shared";
|
|
2
|
+
|
|
3
|
+
describe("Example view", () => {
|
|
4
|
+
describe("When example view has been rendered", () => {
|
|
5
|
+
test("it renders entire example without errors", () => {
|
|
6
|
+
const { wrapper } = renderExample();
|
|
7
|
+
|
|
8
|
+
expect(wrapper).toBeDefined();
|
|
9
|
+
});
|
|
10
|
+
test("it renders center in button without errors", () => {
|
|
11
|
+
const { center } = renderExample();
|
|
12
|
+
|
|
13
|
+
expect(center).toBeDefined();
|
|
14
|
+
});
|
|
15
|
+
test("it renders zoom in button without errors", () => {
|
|
16
|
+
const { zoomInBtn } = renderExample();
|
|
17
|
+
|
|
18
|
+
expect(zoomInBtn).toBeDefined();
|
|
19
|
+
});
|
|
20
|
+
test("it renders zoom out button without errors", () => {
|
|
21
|
+
const { zoomOutBtn } = renderExample();
|
|
22
|
+
|
|
23
|
+
expect(zoomOutBtn).toBeDefined();
|
|
24
|
+
});
|
|
25
|
+
test("it renders reset button without errors", () => {
|
|
26
|
+
const { resetBtn } = renderExample();
|
|
27
|
+
|
|
28
|
+
expect(resetBtn).toBeDefined();
|
|
29
|
+
});
|
|
30
|
+
test("it renders transform component without errors", () => {
|
|
31
|
+
const { content } = renderExample();
|
|
32
|
+
|
|
33
|
+
expect(content).toBeDefined();
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { render, screen } from "@testing-library/react";
|
|
3
|
+
|
|
4
|
+
import { ReactZoomPanPinchProps } from "../../src";
|
|
5
|
+
import { Example } from "../utils/example";
|
|
6
|
+
|
|
7
|
+
export const renderExample = (props?: ReactZoomPanPinchProps) => {
|
|
8
|
+
let renders = 0;
|
|
9
|
+
let renderPropsValues = {};
|
|
10
|
+
|
|
11
|
+
render(
|
|
12
|
+
<Example
|
|
13
|
+
{...props}
|
|
14
|
+
onRender={() => {
|
|
15
|
+
renders += 1;
|
|
16
|
+
}}
|
|
17
|
+
onRenderProps={(ref) => {
|
|
18
|
+
renderPropsValues = ref;
|
|
19
|
+
}}
|
|
20
|
+
/>,
|
|
21
|
+
);
|
|
22
|
+
// controls buttons
|
|
23
|
+
const zoomInBtn = screen.getByTestId("zoom-in");
|
|
24
|
+
const zoomOutBtn = screen.getByTestId("zoom-out");
|
|
25
|
+
const resetBtn = screen.getByTestId("reset");
|
|
26
|
+
const center = screen.getByTestId("center");
|
|
27
|
+
// containers
|
|
28
|
+
const content = screen.getByTestId("content");
|
|
29
|
+
const wrapper = screen.getByTestId("wrapper");
|
|
30
|
+
|
|
31
|
+
return {
|
|
32
|
+
renders,
|
|
33
|
+
renderPropsValues,
|
|
34
|
+
zoomInBtn,
|
|
35
|
+
zoomOutBtn,
|
|
36
|
+
resetBtn,
|
|
37
|
+
center,
|
|
38
|
+
content,
|
|
39
|
+
wrapper,
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import { ReactZoomPanPinchContentRef } from "../../src";
|
|
4
|
+
|
|
5
|
+
export const Controls: React.FC<ReactZoomPanPinchContentRef> = ({
|
|
6
|
+
zoomIn,
|
|
7
|
+
zoomOut,
|
|
8
|
+
resetTransform,
|
|
9
|
+
centerView,
|
|
10
|
+
}: ReactZoomPanPinchContentRef) => (
|
|
11
|
+
<div>
|
|
12
|
+
<button type="button" onClick={() => zoomIn()} data-testid="zoom-in">
|
|
13
|
+
Zoom In +
|
|
14
|
+
</button>
|
|
15
|
+
<button type="button" onClick={() => zoomOut()} data-testid="zoom-out">
|
|
16
|
+
Zoom Out -
|
|
17
|
+
</button>
|
|
18
|
+
<button type="button" onClick={() => resetTransform()} data-testid="reset">
|
|
19
|
+
Reset
|
|
20
|
+
</button>
|
|
21
|
+
<button type="button" onClick={() => centerView()} data-testid="center">
|
|
22
|
+
Center
|
|
23
|
+
</button>
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
TransformWrapper,
|
|
5
|
+
TransformComponent,
|
|
6
|
+
ReactZoomPanPinchProps,
|
|
7
|
+
ReactZoomPanPinchContentRef,
|
|
8
|
+
} from "../../src";
|
|
9
|
+
import { Controls } from "./controls.utils";
|
|
10
|
+
|
|
11
|
+
export const Example = (options: {
|
|
12
|
+
props?: ReactZoomPanPinchProps;
|
|
13
|
+
onRender: () => void;
|
|
14
|
+
onRenderProps: (ref: ReactZoomPanPinchContentRef) => void;
|
|
15
|
+
}) => {
|
|
16
|
+
const { props = {}, onRender, onRenderProps } = options;
|
|
17
|
+
|
|
18
|
+
onRender();
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<TransformWrapper {...props}>
|
|
22
|
+
{(utils) => (
|
|
23
|
+
<div>
|
|
24
|
+
{onRenderProps(utils)}
|
|
25
|
+
<Controls {...utils} />
|
|
26
|
+
<TransformComponent
|
|
27
|
+
wrapperProps={
|
|
28
|
+
{
|
|
29
|
+
"data-testid": "wrapper",
|
|
30
|
+
} as React.HTMLAttributes<HTMLDivElement>
|
|
31
|
+
}
|
|
32
|
+
contentProps={
|
|
33
|
+
{
|
|
34
|
+
"data-testid": "content",
|
|
35
|
+
} as React.HTMLAttributes<HTMLDivElement>
|
|
36
|
+
}
|
|
37
|
+
wrapperStyle={{
|
|
38
|
+
width: "500px",
|
|
39
|
+
height: "500px",
|
|
40
|
+
maxWidth: "100%",
|
|
41
|
+
maxHeight: "calc(100vh - 50px)",
|
|
42
|
+
}}
|
|
43
|
+
>
|
|
44
|
+
<div
|
|
45
|
+
style={{ background: "#444", color: "white", padding: "50px" }}
|
|
46
|
+
>
|
|
47
|
+
<h1>Title</h1>
|
|
48
|
+
<h2>Subtitle</h2>
|
|
49
|
+
<button
|
|
50
|
+
type="button"
|
|
51
|
+
onClick={() =>
|
|
52
|
+
alert("You can still interact with click events!")
|
|
53
|
+
}
|
|
54
|
+
>
|
|
55
|
+
Click me!
|
|
56
|
+
</button>
|
|
57
|
+
<p>
|
|
58
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
|
|
59
|
+
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
|
|
60
|
+
enim ad minim veniam, quis nostrud exercitation ullamco laboris
|
|
61
|
+
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
|
|
62
|
+
in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
63
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident,
|
|
64
|
+
sunt in culpa qui officia deserunt mollit anim id est laborum
|
|
65
|
+
</p>
|
|
66
|
+
<p>
|
|
67
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
|
|
68
|
+
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
|
|
69
|
+
enim ad minim veniam, quis nostrud exercitation ullamco laboris
|
|
70
|
+
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
|
|
71
|
+
in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
72
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident,
|
|
73
|
+
sunt in culpa qui officia deserunt mollit anim id est laborum
|
|
74
|
+
</p>
|
|
75
|
+
</div>
|
|
76
|
+
</TransformComponent>
|
|
77
|
+
</div>
|
|
78
|
+
)}
|
|
79
|
+
</TransformWrapper>
|
|
80
|
+
);
|
|
81
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactZoomPanPinchProps } from "../../src";
|
|
2
|
+
export declare const renderExample: (props?: ReactZoomPanPinchProps) => {
|
|
3
|
+
renders: number;
|
|
4
|
+
renderPropsValues: {};
|
|
5
|
+
zoomInBtn: HTMLElement;
|
|
6
|
+
zoomOutBtn: HTMLElement;
|
|
7
|
+
resetBtn: HTMLElement;
|
|
8
|
+
center: HTMLElement;
|
|
9
|
+
content: HTMLElement;
|
|
10
|
+
wrapper: HTMLElement;
|
|
11
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactZoomPanPinchProps, ReactZoomPanPinchContentRef } from "../../src";
|
|
2
|
+
export declare const Example: (options: {
|
|
3
|
+
props?: ReactZoomPanPinchProps | undefined;
|
|
4
|
+
onRender: () => void;
|
|
5
|
+
onRenderProps: (ref: ReactZoomPanPinchContentRef) => void;
|
|
6
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ReactZoomPanPinchHandlers } from "../../models/context.model";
|
|
3
|
+
export type ControlsFnOptionsType = {
|
|
4
|
+
name: React.ReactNode;
|
|
5
|
+
type: string[];
|
|
6
|
+
parameters: string[];
|
|
7
|
+
description: string;
|
|
8
|
+
isObjectRow?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type ComponentProps = Record<keyof ReactZoomPanPinchHandlers, Omit<ControlsFnOptionsType, "name" | "isObjectRow"> | Record<string, Omit<ControlsFnOptionsType, "name" | "isObjectRow">>>;
|
|
11
|
+
export declare const handlersTable: ComponentProps;
|
|
12
|
+
export declare const getHandlersTable: () => ControlsFnOptionsType[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ReactZoomPanPinchProps } from "models";
|
|
3
|
+
export type ControlsOptionsType = {
|
|
4
|
+
name: React.ReactNode;
|
|
5
|
+
type: string[];
|
|
6
|
+
defaultValue: string;
|
|
7
|
+
description: string;
|
|
8
|
+
isObjectRow?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type ComponentProps = Record<keyof Omit<ReactZoomPanPinchProps, "children">, Omit<ControlsOptionsType, "name" | "isObjectRow"> | Record<string, Omit<ControlsOptionsType, "name" | "isObjectRow">>>;
|
|
11
|
+
export declare const componentPropsTable: Record<string, Omit<ControlsOptionsType, "name">>;
|
|
12
|
+
export declare const wrapperPropsTable: ComponentProps;
|
|
13
|
+
export declare const componentProps: ControlsOptionsType[];
|
|
14
|
+
export declare const wrapperProps: ControlsOptionsType[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Template: (args: any) => JSX.Element;
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
export declare const argsTypes: {
|
|
2
|
+
wheel: {
|
|
3
|
+
table: {
|
|
4
|
+
disable: boolean;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
"wheel.step": {
|
|
8
|
+
defaultValue: number;
|
|
9
|
+
control: {
|
|
10
|
+
type: string;
|
|
11
|
+
min: number;
|
|
12
|
+
};
|
|
13
|
+
table: {
|
|
14
|
+
defaultValue: {
|
|
15
|
+
summary: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
"wheel.disabled": {
|
|
20
|
+
defaultValue: NonNullable<boolean | undefined>;
|
|
21
|
+
control: {
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
24
|
+
table: {
|
|
25
|
+
defaultValue: {
|
|
26
|
+
summary: string;
|
|
27
|
+
};
|
|
28
|
+
type: {
|
|
29
|
+
summary: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
"wheel.wheelDisabled": {
|
|
34
|
+
defaultValue: NonNullable<boolean | undefined>;
|
|
35
|
+
control: {
|
|
36
|
+
type: string;
|
|
37
|
+
};
|
|
38
|
+
table: {
|
|
39
|
+
defaultValue: {
|
|
40
|
+
summary: string;
|
|
41
|
+
};
|
|
42
|
+
type: {
|
|
43
|
+
summary: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
"wheel.touchPadDisabled": {
|
|
48
|
+
defaultValue: NonNullable<boolean | undefined>;
|
|
49
|
+
control: {
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
table: {
|
|
53
|
+
defaultValue: {
|
|
54
|
+
summary: string;
|
|
55
|
+
};
|
|
56
|
+
type: {
|
|
57
|
+
summary: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
"wheel.activationKeys": {
|
|
62
|
+
defaultValue: import("../../models").DeepNonNullableArray<string>;
|
|
63
|
+
control: {
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
table: {
|
|
67
|
+
defaultValue: {
|
|
68
|
+
summary: string;
|
|
69
|
+
};
|
|
70
|
+
type: {
|
|
71
|
+
summary: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
"wheel.excluded": {
|
|
76
|
+
defaultValue: import("../../models").DeepNonNullableArray<string>;
|
|
77
|
+
control: {
|
|
78
|
+
type: string;
|
|
79
|
+
};
|
|
80
|
+
table: {
|
|
81
|
+
defaultValue: {
|
|
82
|
+
summary: string;
|
|
83
|
+
};
|
|
84
|
+
type: {
|
|
85
|
+
summary: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
panning: {
|
|
90
|
+
table: {
|
|
91
|
+
disable: boolean;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
"panning.disabled": {
|
|
95
|
+
defaultValue: NonNullable<boolean | undefined>;
|
|
96
|
+
control: {
|
|
97
|
+
type: string;
|
|
98
|
+
};
|
|
99
|
+
table: {
|
|
100
|
+
defaultValue: {
|
|
101
|
+
summary: string;
|
|
102
|
+
};
|
|
103
|
+
type: {
|
|
104
|
+
summary: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
"panning.velocityDisabled": {
|
|
109
|
+
defaultValue: NonNullable<boolean | undefined>;
|
|
110
|
+
control: {
|
|
111
|
+
type: string;
|
|
112
|
+
};
|
|
113
|
+
table: {
|
|
114
|
+
defaultValue: {
|
|
115
|
+
summary: string;
|
|
116
|
+
};
|
|
117
|
+
type: {
|
|
118
|
+
summary: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
"panning.lockAxisX": {
|
|
123
|
+
defaultValue: NonNullable<boolean | undefined>;
|
|
124
|
+
control: {
|
|
125
|
+
type: string;
|
|
126
|
+
};
|
|
127
|
+
table: {
|
|
128
|
+
defaultValue: {
|
|
129
|
+
summary: string;
|
|
130
|
+
};
|
|
131
|
+
type: {
|
|
132
|
+
summary: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
"panning.lockAxisY": {
|
|
137
|
+
defaultValue: NonNullable<boolean | undefined>;
|
|
138
|
+
control: {
|
|
139
|
+
type: string;
|
|
140
|
+
};
|
|
141
|
+
table: {
|
|
142
|
+
defaultValue: {
|
|
143
|
+
summary: string;
|
|
144
|
+
};
|
|
145
|
+
type: {
|
|
146
|
+
summary: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
"panning.activationKeys": {
|
|
151
|
+
defaultValue: import("../../models").DeepNonNullableArray<string>;
|
|
152
|
+
control: {
|
|
153
|
+
type: string;
|
|
154
|
+
};
|
|
155
|
+
table: {
|
|
156
|
+
defaultValue: {
|
|
157
|
+
summary: string;
|
|
158
|
+
};
|
|
159
|
+
type: {
|
|
160
|
+
summary: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
"panning.excluded": {
|
|
165
|
+
defaultValue: import("../../models").DeepNonNullableArray<string>;
|
|
166
|
+
control: {
|
|
167
|
+
type: string;
|
|
168
|
+
};
|
|
169
|
+
table: {
|
|
170
|
+
defaultValue: {
|
|
171
|
+
summary: string;
|
|
172
|
+
};
|
|
173
|
+
type: {
|
|
174
|
+
summary: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
pinch: {
|
|
179
|
+
table: {
|
|
180
|
+
disable: boolean;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
"pinch.step": {
|
|
184
|
+
defaultValue: number;
|
|
185
|
+
control: {
|
|
186
|
+
type: string;
|
|
187
|
+
min: number;
|
|
188
|
+
};
|
|
189
|
+
table: {
|
|
190
|
+
defaultValue: {
|
|
191
|
+
summary: string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
"pinch.disabled": {
|
|
196
|
+
defaultValue: NonNullable<boolean | undefined>;
|
|
197
|
+
control: {
|
|
198
|
+
type: string;
|
|
199
|
+
};
|
|
200
|
+
table: {
|
|
201
|
+
defaultValue: {
|
|
202
|
+
summary: string;
|
|
203
|
+
};
|
|
204
|
+
type: {
|
|
205
|
+
summary: string;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
"pinch.excluded": {
|
|
210
|
+
defaultValue: import("../../models").DeepNonNullableArray<string>;
|
|
211
|
+
control: {
|
|
212
|
+
type: string;
|
|
213
|
+
};
|
|
214
|
+
table: {
|
|
215
|
+
defaultValue: {
|
|
216
|
+
summary: string;
|
|
217
|
+
};
|
|
218
|
+
type: {
|
|
219
|
+
summary: string;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
doubleClick: {
|
|
224
|
+
table: {
|
|
225
|
+
disable: boolean;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
"doubleClick.step": {
|
|
229
|
+
defaultValue: number;
|
|
230
|
+
control: {
|
|
231
|
+
type: string;
|
|
232
|
+
min: number;
|
|
233
|
+
};
|
|
234
|
+
table: {
|
|
235
|
+
defaultValue: {
|
|
236
|
+
summary: string;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
"doubleClick.disabled": {
|
|
241
|
+
defaultValue: NonNullable<boolean | undefined>;
|
|
242
|
+
control: {
|
|
243
|
+
type: string;
|
|
244
|
+
};
|
|
245
|
+
table: {
|
|
246
|
+
defaultValue: {
|
|
247
|
+
summary: string;
|
|
248
|
+
};
|
|
249
|
+
type: {
|
|
250
|
+
summary: string;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
"doubleClick.excluded": {
|
|
255
|
+
defaultValue: import("../../models").DeepNonNullableArray<string>;
|
|
256
|
+
control: {
|
|
257
|
+
type: string;
|
|
258
|
+
};
|
|
259
|
+
table: {
|
|
260
|
+
defaultValue: {
|
|
261
|
+
summary: string;
|
|
262
|
+
};
|
|
263
|
+
type: {
|
|
264
|
+
summary: string;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
};
|