Quick Start (5 Minutes)
This guide walks you through the core workflow of Smart SCADA Editor in 5 minutes: enter editor → create screen → drag shapes → configure properties → bind data → run preview.
Prerequisite: Completed Installation Guide and started frontend and backend services.
Workflow Overview
Enter Editor → Create/Open Screen → Drag Shapes → Configure Properties → Bind Data → Run Preview
(1) (2) (3) (4) (5) (6)
1. Enter Editor
- Visit
http://localhost:5173 - Login with admin account (for first use, follow init wizard to create admin account)
- After login, visit
http://localhost:5173/editorto enter SCADA editor
💡 To skip auth for frontend debugging, set
VITE_DEBUG_SKIP_AUTH=truein frontend.env.development.
2. Create Screen
- Select or create a project in editor home
- Click New Screen or add a page in the page panel
- Fill in screen info:
| Field | Example | Description |
|---|---|---|
| Screen Name | Process Flow |
Display name |
| Screen Code | process-flow |
Unique identifier |
| Screen Size | 1920 × 1080 |
Canvas resolution |
| Background | #1e293b |
Canvas background |
- Save and enter canvas editing interface
3. Drag Shapes
- Browse shape categories in the left Shape Library:
- Basic Shapes: Rectangle, text, button, image
- Industrial Shapes: Pump, valve, tank, pipe, fan, gauge
- Electrical Shapes: Breaker, transformer, PT/CT, busbar
- Mining Shapes: Crusher, ball mill, conveyor
- Chart Shapes: Line chart, bar chart, pie chart
- Form Shapes: Input, checkbox
- Drag shapes from library to canvas
- Adjust shape position and size on canvas
Common Canvas Operations
| Operation | Shortcut / Method | Description |
|---|---|---|
| Select shape | Mouse click | Single select |
| Multi-select | Shift + click or drag selection |
Multi-select |
| Move shape | Mouse drag | Move selected shapes |
| Copy | Ctrl + C |
Copy selected shapes |
| Paste | Ctrl + V |
Paste shapes |
| Delete | Delete |
Delete selected shapes |
| Undo | Ctrl + Z |
Undo last action |
| Redo | Ctrl + Y |
Redo |
| Zoom canvas | Mouse wheel | Zoom in/out |
| Pan canvas | Space + drag or middle-click drag | Pan view |
4. Configure Properties
- Select a shape on canvas
- Configure shape properties in the right Property Panel:
Style Properties
| Property | Description | Example |
|---|---|---|
| Position X/Y | Shape coordinates on canvas | 100, 200 |
| Size W/H | Shape width/height | 120, 80 |
| Rotation | Shape rotation angle | 0° |
| Fill Color | Shape fill color | var(--primary) |
| Border Color | Shape border color | var(--border) |
| Border Width | Border thickness | 2 |
| Opacity | Shape opacity | 1.0 |
⚠️ Colors must use CSS variables (e.g.,
var(--primary)). Hardcoded color values are strictly prohibited.
Interaction Properties
Configure shape events in the Interaction tab:
| Event Type | Trigger | Configurable Actions |
|---|---|---|
| Click | Mouse click on shape | Navigate page, execute script, toggle visibility |
| Value Change | Bound data changes | Change style, execute script |
| Visibility | Condition control | Show/hide shape |
5. Bind Data
- Select shape, switch to Data tab in property panel
- Click Add Data Source or Bind Tag
Data Source Types
| Type | Description | Use Case |
|---|---|---|
| Tag Binding | Bind device data tag | Real-time device data display |
| API Data Source | Configure HTTP API endpoint | Third-party system data |
| Static Data | Manually enter JSON data | Fixed configuration info |
| Script Driven | JavaScript generates data | Computed values, composite data |
Tag Binding Example
| Field | Example | Description |
|---|---|---|
| Device | Temperature Sensor 1 |
Select configured device |
| Tag | temperature |
Select tag under device |
| Field Mapping | value → text |
Tag field mapped to shape property |
| Refresh Rate | 1000 |
Milliseconds, data refresh interval |
⚠️ Data binding requires backend Smart Data service running and device/tags configured. See Data Platform Quick Start.
6. Run Preview
- Click Preview button in toolbar, or visit
http://localhost:5173/editor/preview - Select the screen to preview
- Screen enters runtime mode:
- Shapes update in real-time based on bound data
- Interaction events take effect (click, navigation, etc.)
- Scripts execute automatically
- Use Debug Panel to view runtime data, performance, script logs
Design Mode vs Runtime Mode
| Dimension | Design Mode | Runtime Mode |
|---|---|---|
| Interaction | Edit shapes, configure properties | Respond to user actions, data-driven |
| Data | Static/mock data | Real-time device data |
| Scripts | Not executed | Auto-executed |
| Tools | Toolbar, property panel, layer panel | Debug panel, runtime monitoring |
Completion Checklist
After completing the workflow above, verify the following capabilities:
- [ ] Can login and enter SCADA editor
- [ ] Can create screen and enter canvas editing
- [ ] Can drag shapes from library to canvas
- [ ] Can configure shape styles in property panel
- [ ] Can bind data tags to shapes
- [ ] Can enter runtime preview and see data updates
Next Steps
- Configuration Guide — Adjust canvas, theme, shortcuts and other parameters
- Canvas Editing — Canvas operations in detail
- Shape Editing — Shape property and interaction configuration
- Data Platform Quick Start — Configure devices and data tags