@flowscape-ui/core-sdk 1.0.0 → 1.0.1
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 +56 -18
- package/dist/index.cjs +1 -7347
- package/dist/index.js +1 -7314
- package/package.json +1 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/@flowscape-ui/core-sdk)
|
|
8
8
|
[](https://opensource.org/licenses/MIT)
|
|
9
|
-
[](https://bundlephobia.com/package/@flowscape-ui/core-sdk)
|
|
11
|
-
|
|
9
|
+
[](https://buymeacoffee.com/flowscape)
|
|
12
10
|
[Documentation](https://github.com/Flowscape-UI/core-sdk#readme) • [Examples](https://github.com/Flowscape-UI/core-sdk/tree/main/playground) • [Changelog](./CHANGELOG.md)
|
|
11
|
+
[](https://bundlephobia.com/package/@flowscape-ui/core-sdk)
|
|
13
12
|
|
|
14
13
|
</div>
|
|
15
14
|
|
|
@@ -139,16 +138,60 @@ const core = new CoreEngine({
|
|
|
139
138
|
|
|
140
139
|
### Built-in Plugins
|
|
141
140
|
|
|
142
|
-
| Plugin
|
|
143
|
-
|
|
|
144
|
-
| `GridPlugin`
|
|
145
|
-
| `SelectionPlugin`
|
|
146
|
-
| `NodeHotkeysPlugin`
|
|
147
|
-
| `CameraHotkeysPlugin`
|
|
148
|
-
| `RulerPlugin`
|
|
149
|
-
| `RulerGuidesPlugin`
|
|
150
|
-
| `
|
|
151
|
-
| `
|
|
141
|
+
| Plugin | Description |
|
|
142
|
+
| ---------------------- | ------------------------------------------------ |
|
|
143
|
+
| `GridPlugin` | Adaptive grid with automatic scaling |
|
|
144
|
+
| `SelectionPlugin` | Selection, transformation, drag & drop, grouping |
|
|
145
|
+
| `NodeHotkeysPlugin` | Copy/paste/cut nodes, delete, z-index management |
|
|
146
|
+
| `CameraHotkeysPlugin` | Zoom and pan controls with keyboard |
|
|
147
|
+
| `RulerPlugin` | Rulers with measurement units |
|
|
148
|
+
| `RulerGuidesPlugin` | Draggable guide lines from rulers |
|
|
149
|
+
| `RulerHighlightPlugin` | Ruler highlighting on hover |
|
|
150
|
+
| `RulerManagerPlugin` | Toggle rulers and manage guides |
|
|
151
|
+
| `AreaSelectionPlugin` | Area selection with frame (Shift+Drag) |
|
|
152
|
+
| `LogoPlugin` | Watermark/logo on canvas |
|
|
153
|
+
|
|
154
|
+
### ⌨️ Keyboard Shortcuts
|
|
155
|
+
|
|
156
|
+
#### Node Operations (NodeHotkeysPlugin)
|
|
157
|
+
|
|
158
|
+
| Shortcut | Action |
|
|
159
|
+
| ---------------------- | ------------------------ |
|
|
160
|
+
| `Ctrl+C` | Copy selected nodes |
|
|
161
|
+
| `Ctrl+X` | Cut selected nodes |
|
|
162
|
+
| `Ctrl+V` | Paste nodes |
|
|
163
|
+
| `Delete` / `Backspace` | Delete selected nodes |
|
|
164
|
+
| `Ctrl+]` | Move node up (z-index) |
|
|
165
|
+
| `Ctrl+[` | Move node down (z-index) |
|
|
166
|
+
|
|
167
|
+
#### Grouping (SelectionPlugin)
|
|
168
|
+
|
|
169
|
+
| Shortcut | Action |
|
|
170
|
+
| -------------- | --------------------------------- |
|
|
171
|
+
| `Ctrl+G` | Group selected nodes |
|
|
172
|
+
| `Ctrl+Shift+G` | Ungroup selected group |
|
|
173
|
+
| `Shift+Click` | Add/remove node to/from selection |
|
|
174
|
+
| `Shift` | Lock aspect ratio during resize |
|
|
175
|
+
|
|
176
|
+
#### Camera Controls (CameraHotkeysPlugin)
|
|
177
|
+
|
|
178
|
+
| Shortcut | Action |
|
|
179
|
+
| ------------------- | ------------------ |
|
|
180
|
+
| `Ctrl+Wheel` | Zoom in/out |
|
|
181
|
+
| `+` / `=` | Zoom in |
|
|
182
|
+
| `-` | Zoom out |
|
|
183
|
+
| `Arrow Keys` | Pan camera |
|
|
184
|
+
| `Space+Drag` | Pan camera (mouse) |
|
|
185
|
+
| `Middle Mouse+Drag` | Pan camera |
|
|
186
|
+
| `Right Mouse+Drag` | Pan camera |
|
|
187
|
+
|
|
188
|
+
#### Ruler Controls (RulerManagerPlugin)
|
|
189
|
+
|
|
190
|
+
| Shortcut | Action |
|
|
191
|
+
| ---------------------- | ------------------------ |
|
|
192
|
+
| `Shift+R` | Toggle rulers visibility |
|
|
193
|
+
| `Delete` / `Backspace` | Delete active guide |
|
|
194
|
+
| `Drag from ruler` | Create guide line |
|
|
152
195
|
|
|
153
196
|
## 📚 Usage Examples
|
|
154
197
|
|
|
@@ -282,11 +325,6 @@ bun run lint:fix # Auto-fix
|
|
|
282
325
|
|
|
283
326
|
Coming soon
|
|
284
327
|
|
|
285
|
-
### Branching Strategy
|
|
286
|
-
|
|
287
|
-
- `dev` — active development
|
|
288
|
-
- `main` — stable version, auto-publish to npm
|
|
289
|
-
|
|
290
328
|
## 📄 License
|
|
291
329
|
|
|
292
330
|
MIT © [Flowscape UI Team](https://github.com/Flowscape-UI)
|