polotno 4.12.0 → 4.13.0
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/README.md +57 -22
- package/blueprint/canvas/context-menu/context-menu.d.ts +2 -2
- package/blueprint/canvas/page-controls.d.ts +14 -2
- package/blueprint/canvas/tooltip.d.ts +24 -2
- package/blueprint/pages-timeline/audio-track.d.ts +12 -2
- package/blueprint/pages-timeline/audios.d.ts +10 -2
- package/blueprint/pages-timeline/current-time.d.ts +2 -2
- package/blueprint/pages-timeline/element-track.d.ts +14 -2
- package/blueprint/pages-timeline/elements.d.ts +2 -2
- package/blueprint/pages-timeline/page-preview.d.ts +8 -2
- package/blueprint/pages-timeline/pages-timeline.d.ts +8 -2
- package/blueprint/pages-timeline/pages.d.ts +8 -2
- package/blueprint/pages-timeline/play-button.d.ts +2 -2
- package/blueprint/pages-timeline/time-ruler.d.ts +10 -2
- package/blueprint/side-panel/ai-images-panel.d.ts +6 -2
- package/blueprint/side-panel/animations-panel.d.ts +6 -2
- package/blueprint/side-panel/background-panel.d.ts +6 -2
- package/blueprint/side-panel/draw-panel.d.ts +6 -2
- package/blueprint/side-panel/effects-panel.d.ts +6 -2
- package/blueprint/side-panel/image-clip-panel.d.ts +6 -2
- package/blueprint/side-panel/layers-panel.d.ts +6 -2
- package/blueprint/side-panel/pages-panel.d.ts +6 -2
- package/blueprint/side-panel/select-video.d.ts +2 -2
- package/blueprint/side-panel/side-panel.d.ts +2 -2
- package/blueprint/side-panel/size-panel.d.ts +6 -2
- package/blueprint/side-panel/templates-panel.d.ts +6 -2
- package/blueprint/side-panel/text-panel.d.ts +6 -2
- package/blueprint/side-panel/videos-panel.d.ts +6 -2
- package/blueprint/toolbar/admin-button.d.ts +6 -2
- package/blueprint/toolbar/animations-picker.d.ts +18 -4
- package/blueprint/toolbar/copy-style.d.ts +6 -2
- package/blueprint/toolbar/download-button.d.ts +6 -2
- package/blueprint/toolbar/duplicate-button.d.ts +6 -2
- package/blueprint/toolbar/figure-toolbar.d.ts +8 -8
- package/blueprint/toolbar/filters-picker.d.ts +26 -6
- package/blueprint/toolbar/gif-toolbar.d.ts +2 -2
- package/blueprint/toolbar/group-button.d.ts +6 -2
- package/blueprint/toolbar/group-toolbar.d.ts +2 -2
- package/blueprint/toolbar/history-buttons.d.ts +6 -2
- package/blueprint/toolbar/html-toolbar.d.ts +10 -10
- package/blueprint/toolbar/image-remove-background-button.d.ts +10 -2
- package/blueprint/toolbar/image-toolbar.d.ts +28 -8
- package/blueprint/toolbar/line-toolbar.d.ts +14 -10
- package/blueprint/toolbar/lock-button.d.ts +6 -2
- package/blueprint/toolbar/many-toolbar.d.ts +2 -2
- package/blueprint/toolbar/opacity-picker.d.ts +6 -2
- package/blueprint/toolbar/page-toolbar.d.ts +2 -2
- package/blueprint/toolbar/position-picker.d.ts +6 -2
- package/blueprint/toolbar/remove-button.d.ts +6 -2
- package/blueprint/toolbar/svg-toolbar.d.ts +2 -2
- package/blueprint/toolbar/table-toolbar.d.ts +44 -14
- package/blueprint/toolbar/text-ai-write.d.ts +6 -2
- package/blueprint/toolbar/text-toolbar.d.ts +14 -14
- package/blueprint/toolbar/toolbar.d.ts +2 -2
- package/blueprint/toolbar/video-toolbar.d.ts +6 -6
- package/blueprint/toolbar/zoom-buttons.d.ts +4 -4
- package/canvas/audio.d.ts +3 -2
- package/canvas/context-menu/context-menu.d.ts +2 -2
- package/canvas/drawing-layer.d.ts +2 -2
- package/canvas/element.d.ts +2 -2
- package/canvas/fade-overlay.d.ts +14 -0
- package/canvas/fade-overlay.js +1 -0
- package/canvas/figure-element.d.ts +2 -2
- package/canvas/gif-element.d.ts +2 -2
- package/canvas/gif-element.js +1 -1
- package/canvas/highlighter.d.ts +6 -2
- package/canvas/html-element.d.ts +2 -2
- package/canvas/image-element.d.ts +5 -3
- package/canvas/image-element.js +1 -1
- package/canvas/line-element.d.ts +2 -2
- package/canvas/page-controls.d.ts +14 -2
- package/canvas/page.d.ts +2 -2
- package/canvas/page.js +1 -1
- package/canvas/render-tag-element.d.ts +2 -2
- package/canvas/render-tag-element.js +1 -1
- package/canvas/rich-editor.js +3 -3
- package/canvas/rules.d.ts +2 -2
- package/canvas/table-element.d.ts +2 -2
- package/canvas/text-element.d.ts +2 -2
- package/canvas/tooltip.d.ts +24 -2
- package/canvas/video-element.d.ts +3 -2
- package/canvas/video-element.js +1 -1
- package/canvas/workspace-canvas.d.ts +2 -2
- package/hooks/use-fade-stop-focus.d.ts +2 -0
- package/hooks/use-fade-stop-focus.js +1 -0
- package/icons/registry.d.ts +106 -102
- package/model/figure-model.d.ts +1 -1
- package/model/gif-model.d.ts +1 -1
- package/model/group-model.d.ts +8 -8
- package/model/image-model.d.ts +1 -1
- package/model/line-model.d.ts +1 -1
- package/model/page-model.d.ts +10 -10
- package/model/shape-model.d.ts +2 -2
- package/model/shape-model.js +1 -1
- package/model/store.d.ts +92 -92
- package/model/svg-model.d.ts +1 -1
- package/model/table-model.d.ts +1 -1
- package/model/text-model.d.ts +1 -1
- package/model/video-model.d.ts +1 -1
- package/package.json +52 -38
- package/pages-timeline/audio-track.d.ts +14 -2
- package/pages-timeline/audio-track.js +1 -1
- package/pages-timeline/audios.d.ts +10 -2
- package/pages-timeline/current-time.d.ts +2 -2
- package/pages-timeline/current-time.js +1 -1
- package/pages-timeline/element-track.d.ts +14 -2
- package/pages-timeline/element-track.js +1 -1
- package/pages-timeline/elements.d.ts +2 -2
- package/pages-timeline/page-preview.d.ts +8 -2
- package/pages-timeline/page-preview.js +1 -1
- package/pages-timeline/pages-timeline.d.ts +8 -2
- package/pages-timeline/pages-timeline.js +1 -1
- package/pages-timeline/pages.d.ts +8 -2
- package/pages-timeline/play-button.d.ts +2 -2
- package/pages-timeline/time-ruler.d.ts +10 -2
- package/pages-timeline/time-ruler.js +1 -1
- package/polotno.bundle.js +167 -166
- package/side-panel/ai-images-panel.d.ts +6 -2
- package/side-panel/animations-panel.d.ts +6 -2
- package/side-panel/background-panel.d.ts +6 -2
- package/side-panel/draw-panel.d.ts +6 -2
- package/side-panel/effects-panel.d.ts +6 -2
- package/side-panel/effects-panel.js +1 -1
- package/side-panel/image-clip-panel.d.ts +6 -2
- package/side-panel/layers-panel.d.ts +6 -2
- package/side-panel/pages-panel.d.ts +6 -2
- package/side-panel/select-video.d.ts +2 -2
- package/side-panel/side-panel.d.ts +2 -2
- package/side-panel/size-panel.d.ts +6 -2
- package/side-panel/templates-panel.d.ts +6 -2
- package/side-panel/text-panel.d.ts +6 -2
- package/side-panel/videos-panel.d.ts +6 -2
- package/toolbar/admin-button.d.ts +6 -2
- package/toolbar/animations-picker.d.ts +18 -4
- package/toolbar/copy-style.d.ts +6 -2
- package/toolbar/download-button.d.ts +6 -2
- package/toolbar/duplicate-button.d.ts +6 -2
- package/toolbar/figure-toolbar.d.ts +8 -8
- package/toolbar/filters-picker.d.ts +26 -6
- package/toolbar/gif-toolbar.d.ts +2 -2
- package/toolbar/group-button.d.ts +6 -2
- package/toolbar/group-toolbar.d.ts +2 -2
- package/toolbar/history-buttons.d.ts +6 -2
- package/toolbar/html-toolbar.d.ts +10 -10
- package/toolbar/image-remove-background-button.d.ts +10 -2
- package/toolbar/image-toolbar.d.ts +32 -10
- package/toolbar/line-toolbar.d.ts +14 -10
- package/toolbar/lock-button.d.ts +6 -2
- package/toolbar/many-toolbar.d.ts +2 -2
- package/toolbar/opacity-picker.d.ts +6 -2
- package/toolbar/page-toolbar.d.ts +2 -2
- package/toolbar/position-picker.d.ts +6 -2
- package/toolbar/remove-button.d.ts +6 -2
- package/toolbar/svg-toolbar.d.ts +2 -2
- package/toolbar/table-toolbar.d.ts +44 -14
- package/toolbar/text-ai-write.d.ts +6 -2
- package/toolbar/text-toolbar.d.ts +30 -18
- package/toolbar/toolbar.d.ts +2 -2
- package/toolbar/video-toolbar.d.ts +12 -6
- package/toolbar/video-toolbar.js +1 -1
- package/toolbar/zoom-buttons.d.ts +4 -4
- package/ui.css +1 -1
- package/utils/clip-fade.d.ts +6 -0
- package/utils/clip-fade.js +1 -0
- package/utils/clipboard.d.ts +2 -2
- package/utils/fade-gradient.d.ts +33 -0
- package/utils/fade-gradient.js +1 -0
- package/utils/fade-overlay.d.ts +9 -0
- package/utils/fade-overlay.js +1 -0
- package/utils/l10n.d.ts +19 -0
- package/utils/l10n.js +1 -1
- package/utils/pointer-drag.d.ts +6 -4
- package/utils/pointer-drag.js +1 -1
- package/utils/rich-text-html.d.ts +0 -10
- package/utils/rich-text-html.js +1 -1
- package/utils/validate-key.js +1 -1
package/README.md
CHANGED
|
@@ -1,48 +1,83 @@
|
|
|
1
1
|
# Polotno
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Design editor SDK. Embed a Canva-like editor in your product, generate designs from templates and data, and export them to PNG, JPEG, PDF, or video in the browser or on a server.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Polotno ships React components and a framework-independent store. Use it from React, or from Vue, Angular, Svelte, and plain JavaScript through the [frameworkless integration](https://polotno.com/docs/frameworkless-integration). It is built on [Konva](https://konvajs.org/) and [react-konva](https://github.com/konvajs/react-konva).
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**[Documentation](https://polotno.com/docs)** · **[Website](https://polotno.com/)** · **[Build with AI](https://polotno.com/docs/build-with-ai)**
|
|
8
|
+
|
|
9
|
+
## What you get
|
|
10
|
+
|
|
11
|
+
- **Editor** — canvas, toolbar, side panel, pages, and zoom controls. Every part can be replaced, hidden, or restyled.
|
|
12
|
+
- **Templates and automation** — designs are plain JSON. Load templates, fill variables, and generate variants from data.
|
|
13
|
+
- **Text, images, and media** — rich text and fonts, image crop and filters, AI background removal, SVG, GIF, and video with audio.
|
|
14
|
+
- **Video editing** — animations, timelines, and export to MP4 and GIF.
|
|
15
|
+
- **Import** — PDF and PSD files become editable designs.
|
|
16
|
+
- **Export** — PNG, JPEG, PDF with bleed and crop marks, SVG, HTML, PPTX, MP4, GIF.
|
|
17
|
+
- **Server-side rendering** — render the same JSON in Node.js with `polotno-node`, or use Polotno Cloud Render.
|
|
18
|
+
- **AI tools** — write assistant, background removal, and an MCP server plus skills for coding agents.
|
|
19
|
+
|
|
20
|
+
## Install
|
|
8
21
|
|
|
9
22
|
```bash
|
|
10
23
|
npm install polotno
|
|
11
24
|
```
|
|
12
25
|
|
|
13
|
-
|
|
26
|
+
`polotno@4` is the React 19 line. For React 18, install `polotno@react18`.
|
|
27
|
+
|
|
28
|
+
## Quick start
|
|
14
29
|
|
|
15
30
|
```jsx
|
|
16
|
-
import React from 'react';
|
|
17
31
|
import { PolotnoContainer, SidePanelWrap, WorkspaceWrap } from 'polotno';
|
|
18
32
|
import { Toolbar } from 'polotno/toolbar/toolbar';
|
|
19
33
|
import { ZoomButtons } from 'polotno/toolbar/zoom-buttons';
|
|
20
34
|
import { SidePanel } from 'polotno/side-panel';
|
|
21
35
|
import { Workspace } from 'polotno/canvas/workspace';
|
|
22
36
|
import { createStore } from 'polotno/model/store';
|
|
37
|
+
import 'polotno/ui.css';
|
|
23
38
|
|
|
24
39
|
const store = createStore({
|
|
25
|
-
key: 'YOUR_API_KEY', //
|
|
26
|
-
showCredit: true,
|
|
40
|
+
key: 'YOUR_API_KEY', // https://polotno.com/cabinet — the SDK warns in the console without one
|
|
27
41
|
});
|
|
28
42
|
store.addPage();
|
|
29
43
|
|
|
30
|
-
export const App = () =>
|
|
31
|
-
|
|
32
|
-
<
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
export const App = () => (
|
|
45
|
+
<PolotnoContainer style={{ width: '100vw', height: '100vh' }}>
|
|
46
|
+
<SidePanelWrap>
|
|
47
|
+
<SidePanel store={store} />
|
|
48
|
+
</SidePanelWrap>
|
|
49
|
+
<WorkspaceWrap>
|
|
50
|
+
<Toolbar store={store} />
|
|
51
|
+
<Workspace store={store} />
|
|
52
|
+
<ZoomButtons store={store} />
|
|
53
|
+
</WorkspaceWrap>
|
|
54
|
+
</PolotnoContainer>
|
|
55
|
+
);
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Export the current design:
|
|
59
|
+
|
|
60
|
+
```js
|
|
61
|
+
await store.waitLoading();
|
|
62
|
+
const png = await store.toDataURL();
|
|
63
|
+
const pdf = await store.toPDFDataURL();
|
|
44
64
|
```
|
|
45
65
|
|
|
66
|
+
## AI coding agents
|
|
67
|
+
|
|
68
|
+
Install the official skills so your agent knows the SDK before it writes code. `polotno-sdk` is for developers integrating the editor; `polotno-design` is for producing designs.
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# Claude Code: both skills plus the docs MCP server
|
|
72
|
+
claude plugin marketplace add polotno-project/skills
|
|
73
|
+
claude plugin install polotno@polotno
|
|
74
|
+
|
|
75
|
+
# Cursor, Codex, Copilot, Windsurf, Cline, and others
|
|
76
|
+
npx skills add polotno-project/skills
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Every docs page is also available as markdown by appending `.md` to its URL, and https://polotno.com/llms.txt indexes them. Full guide: https://polotno.com/docs/build-with-ai
|
|
80
|
+
|
|
46
81
|
## License
|
|
47
82
|
|
|
48
|
-
See [LICENSE.md](./LICENSE.md).
|
|
83
|
+
Polotno is commercial software. See [LICENSE.md](./LICENSE.md) and [pricing](https://polotno.com/sdk/pricing).
|
|
@@ -11,7 +11,7 @@ type ContextMenuProps = {
|
|
|
11
11
|
isOpen: boolean;
|
|
12
12
|
setIsOpen: (b: boolean) => void;
|
|
13
13
|
};
|
|
14
|
-
export declare const ContextMenu: (({ store, isOpen, offset, setIsOpen }: ContextMenuProps) => React.JSX.Element | null) & {
|
|
15
|
-
|
|
14
|
+
export declare const ContextMenu: (({ store, isOpen, offset, setIsOpen }: ContextMenuProps) => React.JSX.Element | null) & React.NamedExoticComponent<ContextMenuProps> & {
|
|
15
|
+
readonly type: ({ store, isOpen, offset, setIsOpen }: ContextMenuProps) => React.JSX.Element | null;
|
|
16
16
|
};
|
|
17
17
|
export {};
|
|
@@ -7,6 +7,18 @@ export declare const PageControls: (({ store, page, xPadding, yPadding, layout,
|
|
|
7
7
|
xPadding: number;
|
|
8
8
|
yPadding: number;
|
|
9
9
|
layout?: "vertical" | "horizontal";
|
|
10
|
-
}) => React.JSX.Element | null) & {
|
|
11
|
-
|
|
10
|
+
}) => React.JSX.Element | null) & React.NamedExoticComponent<{
|
|
11
|
+
store: StoreType;
|
|
12
|
+
page: PageType;
|
|
13
|
+
xPadding: number;
|
|
14
|
+
yPadding: number;
|
|
15
|
+
layout?: "vertical" | "horizontal";
|
|
16
|
+
}> & {
|
|
17
|
+
readonly type: ({ store, page, xPadding, yPadding, layout, }: {
|
|
18
|
+
store: StoreType;
|
|
19
|
+
page: PageType;
|
|
20
|
+
xPadding: number;
|
|
21
|
+
yPadding: number;
|
|
22
|
+
layout?: "vertical" | "horizontal";
|
|
23
|
+
}) => React.JSX.Element | null;
|
|
12
24
|
};
|
|
@@ -12,6 +12,28 @@ export declare const Tooltip: (({ store, page, components, stageRef, tooltipSafe
|
|
|
12
12
|
left?: number;
|
|
13
13
|
right?: number;
|
|
14
14
|
};
|
|
15
|
-
}) => React.JSX.Element | null) & {
|
|
16
|
-
|
|
15
|
+
}) => React.JSX.Element | null) & React.NamedExoticComponent<{
|
|
16
|
+
store: StoreType;
|
|
17
|
+
page: PageType;
|
|
18
|
+
components?: any;
|
|
19
|
+
stageRef?: any;
|
|
20
|
+
tooltipSafeArea?: {
|
|
21
|
+
top?: number;
|
|
22
|
+
bottom?: number;
|
|
23
|
+
left?: number;
|
|
24
|
+
right?: number;
|
|
25
|
+
};
|
|
26
|
+
}> & {
|
|
27
|
+
readonly type: ({ store, page, components, stageRef, tooltipSafeArea, }: {
|
|
28
|
+
store: StoreType;
|
|
29
|
+
page: PageType;
|
|
30
|
+
components?: any;
|
|
31
|
+
stageRef?: any;
|
|
32
|
+
tooltipSafeArea?: {
|
|
33
|
+
top?: number;
|
|
34
|
+
bottom?: number;
|
|
35
|
+
left?: number;
|
|
36
|
+
right?: number;
|
|
37
|
+
};
|
|
38
|
+
}) => React.JSX.Element | null;
|
|
17
39
|
};
|
|
@@ -8,6 +8,16 @@ export declare const AudioTrack: (({ audio, scale, store, index, }: {
|
|
|
8
8
|
scale: number;
|
|
9
9
|
store: StoreType;
|
|
10
10
|
index: number;
|
|
11
|
-
}) => React.JSX.Element) & {
|
|
12
|
-
|
|
11
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
12
|
+
audio: AudioType;
|
|
13
|
+
scale: number;
|
|
14
|
+
store: StoreType;
|
|
15
|
+
index: number;
|
|
16
|
+
}> & {
|
|
17
|
+
readonly type: ({ audio, scale, store, index, }: {
|
|
18
|
+
audio: AudioType;
|
|
19
|
+
scale: number;
|
|
20
|
+
store: StoreType;
|
|
21
|
+
index: number;
|
|
22
|
+
}) => React.JSX.Element;
|
|
13
23
|
};
|
|
@@ -4,6 +4,14 @@ export declare const Audios: (({ store, scale, width, }: {
|
|
|
4
4
|
store: StoreType;
|
|
5
5
|
scale: number;
|
|
6
6
|
width: number;
|
|
7
|
-
}) => React.JSX.Element | null) & {
|
|
8
|
-
|
|
7
|
+
}) => React.JSX.Element | null) & React.NamedExoticComponent<{
|
|
8
|
+
store: StoreType;
|
|
9
|
+
scale: number;
|
|
10
|
+
width: number;
|
|
11
|
+
}> & {
|
|
12
|
+
readonly type: ({ store, scale, width, }: {
|
|
13
|
+
store: StoreType;
|
|
14
|
+
scale: number;
|
|
15
|
+
width: number;
|
|
16
|
+
}) => React.JSX.Element | null;
|
|
9
17
|
};
|
|
@@ -7,7 +7,7 @@ interface CurrentTimeProps {
|
|
|
7
7
|
variant?: Variant;
|
|
8
8
|
dragAreaRef?: React.RefObject<HTMLElement | null>;
|
|
9
9
|
}
|
|
10
|
-
export declare const CurrentTime: (({ store, scale, variant, dragAreaRef }: CurrentTimeProps) => React.JSX.Element) & {
|
|
11
|
-
|
|
10
|
+
export declare const CurrentTime: (({ store, scale, variant, dragAreaRef }: CurrentTimeProps) => React.JSX.Element) & React.NamedExoticComponent<CurrentTimeProps> & {
|
|
11
|
+
readonly type: ({ store, scale, variant, dragAreaRef }: CurrentTimeProps) => React.JSX.Element;
|
|
12
12
|
};
|
|
13
13
|
export {};
|
|
@@ -9,6 +9,18 @@ export declare const ElementTrack: (({ element, page, store, scale, row, }: {
|
|
|
9
9
|
store: StoreType;
|
|
10
10
|
scale: number;
|
|
11
11
|
row: number;
|
|
12
|
-
}) => React.JSX.Element) & {
|
|
13
|
-
|
|
12
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
13
|
+
element: ShapeType;
|
|
14
|
+
page: PageType;
|
|
15
|
+
store: StoreType;
|
|
16
|
+
scale: number;
|
|
17
|
+
row: number;
|
|
18
|
+
}> & {
|
|
19
|
+
readonly type: ({ element, page, store, scale, row, }: {
|
|
20
|
+
element: ShapeType;
|
|
21
|
+
page: PageType;
|
|
22
|
+
store: StoreType;
|
|
23
|
+
scale: number;
|
|
24
|
+
row: number;
|
|
25
|
+
}) => React.JSX.Element;
|
|
14
26
|
};
|
|
@@ -5,7 +5,7 @@ interface ElementTimelineProps {
|
|
|
5
5
|
scale: number;
|
|
6
6
|
width: number;
|
|
7
7
|
}
|
|
8
|
-
export declare const ElementsTimeline: (({ store, scale, width }: ElementTimelineProps) => React.JSX.Element | null) & {
|
|
9
|
-
|
|
8
|
+
export declare const ElementsTimeline: (({ store, scale, width }: ElementTimelineProps) => React.JSX.Element | null) & React.NamedExoticComponent<ElementTimelineProps> & {
|
|
9
|
+
readonly type: ({ store, scale, width }: ElementTimelineProps) => React.JSX.Element | null;
|
|
10
10
|
};
|
|
11
11
|
export {};
|
|
@@ -7,6 +7,12 @@ export declare const usePagePreview: ({ page, ref, }: {
|
|
|
7
7
|
export declare const PagePreview: (({ page, scale }: {
|
|
8
8
|
page: PageType;
|
|
9
9
|
scale: number;
|
|
10
|
-
}) => React.JSX.Element) & {
|
|
11
|
-
|
|
10
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
11
|
+
page: PageType;
|
|
12
|
+
scale: number;
|
|
13
|
+
}> & {
|
|
14
|
+
readonly type: ({ page, scale }: {
|
|
15
|
+
page: PageType;
|
|
16
|
+
scale: number;
|
|
17
|
+
}) => React.JSX.Element;
|
|
12
18
|
};
|
|
@@ -4,6 +4,12 @@ import { StoreType } from '../../model/store.js';
|
|
|
4
4
|
export declare const PagesTimeline: (({ store, defaultOpened, }: {
|
|
5
5
|
store: StoreType;
|
|
6
6
|
defaultOpened?: boolean;
|
|
7
|
-
}) => React.JSX.Element) & {
|
|
8
|
-
|
|
7
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
8
|
+
store: StoreType;
|
|
9
|
+
defaultOpened?: boolean;
|
|
10
|
+
}> & {
|
|
11
|
+
readonly type: ({ store, defaultOpened, }: {
|
|
12
|
+
store: StoreType;
|
|
13
|
+
defaultOpened?: boolean;
|
|
14
|
+
}) => React.JSX.Element;
|
|
9
15
|
};
|
|
@@ -3,6 +3,12 @@ import { StoreType } from '../../model/store.js';
|
|
|
3
3
|
export declare const Pages: (({ store, scale }: {
|
|
4
4
|
store: StoreType;
|
|
5
5
|
scale: number;
|
|
6
|
-
}) => React.JSX.Element) & {
|
|
7
|
-
|
|
6
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
7
|
+
store: StoreType;
|
|
8
|
+
scale: number;
|
|
9
|
+
}> & {
|
|
10
|
+
readonly type: ({ store, scale }: {
|
|
11
|
+
store: StoreType;
|
|
12
|
+
scale: number;
|
|
13
|
+
}) => React.JSX.Element;
|
|
8
14
|
};
|
|
@@ -5,7 +5,7 @@ interface PlayButtonProps {
|
|
|
5
5
|
scale?: number;
|
|
6
6
|
onScaleChange?: (scale: number) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const PlayButton: (({ store, scale, onScaleChange }: PlayButtonProps) => React.JSX.Element) & {
|
|
9
|
-
|
|
8
|
+
export declare const PlayButton: (({ store, scale, onScaleChange }: PlayButtonProps) => React.JSX.Element) & React.NamedExoticComponent<PlayButtonProps> & {
|
|
9
|
+
readonly type: ({ store, scale, onScaleChange }: PlayButtonProps) => React.JSX.Element;
|
|
10
10
|
};
|
|
11
11
|
export {};
|
|
@@ -4,6 +4,14 @@ export declare const TimeRuler: (({ store, scale, minWidth, }: {
|
|
|
4
4
|
store: StoreType;
|
|
5
5
|
scale: number;
|
|
6
6
|
minWidth?: number;
|
|
7
|
-
}) => React.JSX.Element) & {
|
|
8
|
-
|
|
7
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
8
|
+
store: StoreType;
|
|
9
|
+
scale: number;
|
|
10
|
+
minWidth?: number;
|
|
11
|
+
}> & {
|
|
12
|
+
readonly type: ({ store, scale, minWidth, }: {
|
|
13
|
+
store: StoreType;
|
|
14
|
+
scale: number;
|
|
15
|
+
minWidth?: number;
|
|
16
|
+
}) => React.JSX.Element;
|
|
9
17
|
};
|
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { StoreType } from '../../model/store.js';
|
|
3
3
|
export declare const AiImagesPanel: (({ store }: {
|
|
4
4
|
store: StoreType;
|
|
5
|
-
}) => React.JSX.Element) & {
|
|
6
|
-
|
|
5
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
6
|
+
store: StoreType;
|
|
7
|
+
}> & {
|
|
8
|
+
readonly type: ({ store }: {
|
|
9
|
+
store: StoreType;
|
|
10
|
+
}) => React.JSX.Element;
|
|
7
11
|
};
|
|
@@ -7,6 +7,10 @@ export declare const NumberInput: ({ value, onValueChange, ...props }: {
|
|
|
7
7
|
}) => React.JSX.Element;
|
|
8
8
|
export declare const AnimationsPanel: (({ store }: {
|
|
9
9
|
store: StoreType;
|
|
10
|
-
}) => React.JSX.Element | null) & {
|
|
11
|
-
|
|
10
|
+
}) => React.JSX.Element | null) & React.NamedExoticComponent<{
|
|
11
|
+
store: StoreType;
|
|
12
|
+
}> & {
|
|
13
|
+
readonly type: ({ store }: {
|
|
14
|
+
store: StoreType;
|
|
15
|
+
}) => React.JSX.Element | null;
|
|
12
16
|
};
|
|
@@ -4,6 +4,10 @@ export declare const setDefaultQuery: (query: string) => void;
|
|
|
4
4
|
export declare const setBackgroundColorsPreset: (newColors: string[]) => void;
|
|
5
5
|
export declare const BackgroundPanel: (({ store }: {
|
|
6
6
|
store: StoreType;
|
|
7
|
-
}) => React.JSX.Element) & {
|
|
8
|
-
|
|
7
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
8
|
+
store: StoreType;
|
|
9
|
+
}> & {
|
|
10
|
+
readonly type: ({ store }: {
|
|
11
|
+
store: StoreType;
|
|
12
|
+
}) => React.JSX.Element;
|
|
9
13
|
};
|
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { StoreType } from '../../model/store.js';
|
|
3
3
|
export declare const DrawPanel: (({ store }: {
|
|
4
4
|
store: StoreType;
|
|
5
|
-
}) => React.JSX.Element) & {
|
|
6
|
-
|
|
5
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
6
|
+
store: StoreType;
|
|
7
|
+
}> & {
|
|
8
|
+
readonly type: ({ store }: {
|
|
9
|
+
store: StoreType;
|
|
10
|
+
}) => React.JSX.Element;
|
|
7
11
|
};
|
|
@@ -7,6 +7,10 @@ export declare const NumberInput: ({ value, onValueChange, ...props }: {
|
|
|
7
7
|
}) => React.JSX.Element;
|
|
8
8
|
export declare const EffectsPanel: (({ store }: {
|
|
9
9
|
store: StoreType;
|
|
10
|
-
}) => React.JSX.Element | null) & {
|
|
11
|
-
|
|
10
|
+
}) => React.JSX.Element | null) & React.NamedExoticComponent<{
|
|
11
|
+
store: StoreType;
|
|
12
|
+
}> & {
|
|
13
|
+
readonly type: ({ store }: {
|
|
14
|
+
store: StoreType;
|
|
15
|
+
}) => React.JSX.Element | null;
|
|
12
16
|
};
|
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { StoreType } from '../../model/store.js';
|
|
3
3
|
export declare const ImageClipPanel: (({ store }: {
|
|
4
4
|
store: StoreType;
|
|
5
|
-
}) => React.JSX.Element) & {
|
|
6
|
-
|
|
5
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
6
|
+
store: StoreType;
|
|
7
|
+
}> & {
|
|
8
|
+
readonly type: ({ store }: {
|
|
9
|
+
store: StoreType;
|
|
10
|
+
}) => React.JSX.Element;
|
|
7
11
|
};
|
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { StoreType } from '../../model/store.js';
|
|
3
3
|
export declare const LayersPanel: (({ store }: {
|
|
4
4
|
store: StoreType;
|
|
5
|
-
}) => React.JSX.Element) & {
|
|
6
|
-
|
|
5
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
6
|
+
store: StoreType;
|
|
7
|
+
}> & {
|
|
8
|
+
readonly type: ({ store }: {
|
|
9
|
+
store: StoreType;
|
|
10
|
+
}) => React.JSX.Element;
|
|
7
11
|
};
|
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { StoreType } from '../../model/store.js';
|
|
3
3
|
export declare const PagesPanel: (({ store }: {
|
|
4
4
|
store: StoreType;
|
|
5
|
-
}) => React.JSX.Element) & {
|
|
6
|
-
|
|
5
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
6
|
+
store: StoreType;
|
|
7
|
+
}> & {
|
|
8
|
+
readonly type: ({ store }: {
|
|
9
|
+
store: StoreType;
|
|
10
|
+
}) => React.JSX.Element;
|
|
7
11
|
};
|
|
@@ -160,7 +160,7 @@ export declare const selectVideo: ({ src, droppedPos, targetElement, store, attr
|
|
|
160
160
|
} & {
|
|
161
161
|
readonly locked: boolean;
|
|
162
162
|
readonly a: import("../../model/shape-model.js").AnimatedAttrs;
|
|
163
|
-
animated(attr:
|
|
163
|
+
animated(attr: string): any;
|
|
164
164
|
readonly timeRange: {
|
|
165
165
|
start: number;
|
|
166
166
|
end: number;
|
|
@@ -328,7 +328,7 @@ export declare const selectVideo: ({ src, droppedPos, targetElement, store, attr
|
|
|
328
328
|
} & {
|
|
329
329
|
readonly locked: boolean;
|
|
330
330
|
readonly a: import("../../model/shape-model.js").AnimatedAttrs;
|
|
331
|
-
animated(attr:
|
|
331
|
+
animated(attr: string): any;
|
|
332
332
|
readonly timeRange: {
|
|
333
333
|
start: number;
|
|
334
334
|
end: number;
|
|
@@ -33,7 +33,7 @@ interface SidePanelProps {
|
|
|
33
33
|
sections?: Section[];
|
|
34
34
|
defaultSection?: string;
|
|
35
35
|
}
|
|
36
|
-
export declare const SidePanel: (({ store, sections, defaultSection }: SidePanelProps) => React.JSX.Element) & {
|
|
37
|
-
|
|
36
|
+
export declare const SidePanel: (({ store, sections, defaultSection }: SidePanelProps) => React.JSX.Element) & React.NamedExoticComponent<SidePanelProps> & {
|
|
37
|
+
readonly type: ({ store, sections, defaultSection }: SidePanelProps) => React.JSX.Element;
|
|
38
38
|
};
|
|
39
39
|
export default SidePanel;
|
|
@@ -8,6 +8,10 @@ export declare const SIZE_CATEGORIES: Array<{
|
|
|
8
8
|
}>;
|
|
9
9
|
export declare const SizePanel: (({ store }: {
|
|
10
10
|
store: StoreType;
|
|
11
|
-
}) => React.JSX.Element) & {
|
|
12
|
-
|
|
11
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
12
|
+
store: StoreType;
|
|
13
|
+
}> & {
|
|
14
|
+
readonly type: ({ store }: {
|
|
15
|
+
store: StoreType;
|
|
16
|
+
}) => React.JSX.Element;
|
|
13
17
|
};
|
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { StoreType } from '../../model/store.js';
|
|
3
3
|
export declare const TemplatesPanel: (({ store }: {
|
|
4
4
|
store: StoreType;
|
|
5
|
-
}) => React.JSX.Element) & {
|
|
6
|
-
|
|
5
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
6
|
+
store: StoreType;
|
|
7
|
+
}> & {
|
|
8
|
+
readonly type: ({ store }: {
|
|
9
|
+
store: StoreType;
|
|
10
|
+
}) => React.JSX.Element;
|
|
7
11
|
};
|
|
@@ -4,7 +4,11 @@ declare let uploadFunc: (file: File) => Promise<string>;
|
|
|
4
4
|
export declare function setFontUploadFunc(func: typeof uploadFunc): void;
|
|
5
5
|
export declare const TextPanel: (({ store }: {
|
|
6
6
|
store: StoreType;
|
|
7
|
-
}) => React.JSX.Element) & {
|
|
8
|
-
|
|
7
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
8
|
+
store: StoreType;
|
|
9
|
+
}> & {
|
|
10
|
+
readonly type: ({ store }: {
|
|
11
|
+
store: StoreType;
|
|
12
|
+
}) => React.JSX.Element;
|
|
9
13
|
};
|
|
10
14
|
export {};
|
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { StoreType } from '../../model/store.js';
|
|
3
3
|
export declare const VideosPanel: (({ store }: {
|
|
4
4
|
store: StoreType;
|
|
5
|
-
}) => React.JSX.Element) & {
|
|
6
|
-
|
|
5
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
6
|
+
store: StoreType;
|
|
7
|
+
}> & {
|
|
8
|
+
readonly type: ({ store }: {
|
|
9
|
+
store: StoreType;
|
|
10
|
+
}) => React.JSX.Element;
|
|
7
11
|
};
|
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { StoreType } from '../../model/store.js';
|
|
3
3
|
export declare const AdminButton: (({ store }: {
|
|
4
4
|
store: StoreType;
|
|
5
|
-
}) => React.JSX.Element) & {
|
|
6
|
-
|
|
5
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
6
|
+
store: StoreType;
|
|
7
|
+
}> & {
|
|
8
|
+
readonly type: ({ store }: {
|
|
9
|
+
store: StoreType;
|
|
10
|
+
}) => React.JSX.Element;
|
|
7
11
|
};
|
|
@@ -10,13 +10,27 @@ export declare const AnimationsPickerOld: (({ element, store, elements, }: {
|
|
|
10
10
|
elements?: Array<ShapeType>;
|
|
11
11
|
element?: ShapeType;
|
|
12
12
|
store: StoreType;
|
|
13
|
-
}) => React.JSX.Element) & {
|
|
14
|
-
|
|
13
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
14
|
+
elements?: Array<ShapeType>;
|
|
15
|
+
element?: ShapeType;
|
|
16
|
+
store: StoreType;
|
|
17
|
+
}> & {
|
|
18
|
+
readonly type: ({ element, store, elements, }: {
|
|
19
|
+
elements?: Array<ShapeType>;
|
|
20
|
+
element?: ShapeType;
|
|
21
|
+
store: StoreType;
|
|
22
|
+
}) => React.JSX.Element;
|
|
15
23
|
};
|
|
16
24
|
export declare const AnimationsPicker: (({ element, store }: {
|
|
17
25
|
element: ShapeType;
|
|
18
26
|
store: StoreType;
|
|
19
|
-
}) => React.JSX.Element | null) & {
|
|
20
|
-
|
|
27
|
+
}) => React.JSX.Element | null) & React.NamedExoticComponent<{
|
|
28
|
+
element: ShapeType;
|
|
29
|
+
store: StoreType;
|
|
30
|
+
}> & {
|
|
31
|
+
readonly type: ({ element, store }: {
|
|
32
|
+
element: ShapeType;
|
|
33
|
+
store: StoreType;
|
|
34
|
+
}) => React.JSX.Element | null;
|
|
21
35
|
};
|
|
22
36
|
export default AnimationsPicker;
|
|
@@ -2,7 +2,11 @@ import { StoreType } from '../../model/store.js';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export declare const CopyStyleButton: (({ store }: {
|
|
4
4
|
store: StoreType;
|
|
5
|
-
}) => React.JSX.Element) & {
|
|
6
|
-
|
|
5
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
6
|
+
store: StoreType;
|
|
7
|
+
}> & {
|
|
8
|
+
readonly type: ({ store }: {
|
|
9
|
+
store: StoreType;
|
|
10
|
+
}) => React.JSX.Element;
|
|
7
11
|
};
|
|
8
12
|
export declare const PAINT_ICON: React.JSX.Element;
|
|
@@ -2,7 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { StoreType } from '../../model/store.js';
|
|
3
3
|
export declare const DownloadButton: (({ store }: {
|
|
4
4
|
store: StoreType;
|
|
5
|
-
}) => React.JSX.Element) & {
|
|
6
|
-
|
|
5
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
6
|
+
store: StoreType;
|
|
7
|
+
}> & {
|
|
8
|
+
readonly type: ({ store }: {
|
|
9
|
+
store: StoreType;
|
|
10
|
+
}) => React.JSX.Element;
|
|
7
11
|
};
|
|
8
12
|
export default DownloadButton;
|
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { StoreType } from '../../model/store.js';
|
|
3
3
|
export declare const DuplicateButton: (({ store }: {
|
|
4
4
|
store: StoreType;
|
|
5
|
-
}) => React.JSX.Element) & {
|
|
6
|
-
|
|
5
|
+
}) => React.JSX.Element) & React.NamedExoticComponent<{
|
|
6
|
+
store: StoreType;
|
|
7
|
+
}> & {
|
|
8
|
+
readonly type: ({ store }: {
|
|
9
|
+
store: StoreType;
|
|
10
|
+
}) => React.JSX.Element;
|
|
7
11
|
};
|
|
@@ -10,16 +10,16 @@ type ButtonProps = {
|
|
|
10
10
|
store: StoreType;
|
|
11
11
|
elements: FigureElementType[];
|
|
12
12
|
};
|
|
13
|
-
export declare const FigureFill: (({ elements, store }: ButtonProps) => React.JSX.Element) & {
|
|
14
|
-
|
|
13
|
+
export declare const FigureFill: (({ elements, store }: ButtonProps) => React.JSX.Element) & React.NamedExoticComponent<ButtonProps> & {
|
|
14
|
+
readonly type: ({ elements, store }: ButtonProps) => React.JSX.Element;
|
|
15
15
|
};
|
|
16
|
-
export declare const FigureSettings: (({ store, elements, element }: ButtonProps) => React.JSX.Element) & {
|
|
17
|
-
|
|
16
|
+
export declare const FigureSettings: (({ store, elements, element }: ButtonProps) => React.JSX.Element) & React.NamedExoticComponent<ButtonProps> & {
|
|
17
|
+
readonly type: ({ store, elements, element }: ButtonProps) => React.JSX.Element;
|
|
18
18
|
};
|
|
19
|
-
export declare const FigureStroke: (({ elements, store }: ButtonProps) => React.JSX.Element | null) & {
|
|
20
|
-
|
|
19
|
+
export declare const FigureStroke: (({ elements, store }: ButtonProps) => React.JSX.Element | null) & React.NamedExoticComponent<ButtonProps> & {
|
|
20
|
+
readonly type: ({ elements, store }: ButtonProps) => React.JSX.Element | null;
|
|
21
21
|
};
|
|
22
|
-
export declare const FigureToolbar: (({ store, components }: Props) => React.JSX.Element) & {
|
|
23
|
-
|
|
22
|
+
export declare const FigureToolbar: (({ store, components }: Props) => React.JSX.Element) & React.NamedExoticComponent<Props> & {
|
|
23
|
+
readonly type: ({ store, components }: Props) => React.JSX.Element;
|
|
24
24
|
};
|
|
25
25
|
export default FigureToolbar;
|