f1ow 0.1.1 → 0.1.2
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 +46 -39
- package/dist/components/Toolbar/Toolbar.d.ts +1 -0
- package/dist/f1ow.js +3771 -3774
- package/dist/f1ow.umd.cjs +10 -10
- package/dist/lib/FlowCanvasProps.d.ts +9 -0
- package/package.json +1 -1
|
@@ -45,6 +45,15 @@ export interface FlowCanvasProps {
|
|
|
45
45
|
defaultStyle?: Partial<ElementStyle>;
|
|
46
46
|
/** Show/hide the toolbar */
|
|
47
47
|
showToolbar?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Position of the toolbar:
|
|
50
|
+
* - `'bottom'` — floating at the bottom center, like tldraw (default)
|
|
51
|
+
* - `'top'` — floating at the top center, like Excalidraw
|
|
52
|
+
* - `'hidden'` — toolbar is not rendered (same as `showToolbar={false}`)
|
|
53
|
+
*/
|
|
54
|
+
toolbarPosition?: 'top' | 'bottom' | 'hidden';
|
|
55
|
+
/** Default active tool when the canvas mounts (default: 'select') */
|
|
56
|
+
defaultTool?: ToolType;
|
|
48
57
|
/** Show/hide the style panel */
|
|
49
58
|
showStylePanel?: boolean;
|
|
50
59
|
/** Show/hide the status bar */
|
package/package.json
CHANGED