SimpleVG › Tutorial › Chapter 3

Chapter 3: Canvas, Grid and Snapping

Goal Control the view with the Grid, Snap and Ruler buttons, set the size of your drawing area on the Canvas tab, and move around with zoom and keyboard nudging.

Good SCADA graphics are tidy: things line up, sit square and are the size you meant. This chapter covers the tools that make that easy.

Part 1: Grid, Snap and Ruler

Three toggle buttons sit in the menu bar, to the left of the theme button. A blue outline means the button is switched on.

The Grid, Snap and Ruler toggle buttons in the menu bar, all switched on
Grid
Shows or hides the dotted grid pattern on the canvas.
Snap
Turns magnetic snapping on or off. With Snap on, shapes you draw and move jump to the nearest grid line, so edges line up exactly.
Ruler
Shows or hides the pixel rulers along the top and left of the canvas, and the dashed centrelines through the middle.

Here is the canvas with the grid switched off. Snapping still works if Snap is on, but the dots are no longer drawn.

The canvas with the Grid button switched off, showing a plain white canvas with a blue rectangle

And with the rulers switched off, you get the maximum drawing room.

The canvas with the Ruler button switched off, with no rulers or centrelines

A good habit is to leave Grid and Snap on while building a diagram, and turn Snap off only for the odd small adjustment that needs to sit between grid lines.

Part 2: The Canvas tab

Click the Canvas tab at the top of the Inspector. Its first section, DOCUMENT PROPERTIES, controls the drawing area itself.

The Canvas tab of the Inspector showing Canvas Width and Height, Grid Size, Show Centerlines and the default new element styles
Canvas Width and Canvas Height
The size of the artboard in pixels. The default is 500 × 500.
Grid Size (px)
The spacing of the grid, and so the distance things snap by. The default is 10.
Show Centerlines and Centerline Color
The dashed lines through the middle of the canvas, useful for centring symbols.

Change the width to 800 and press Tab. The canvas grows at once, and the rulers follow.

The canvas resized to 800 by 500, with the rulers now running to 800
Match the size to where it will be used If the drawing is going to sit on a SentinelSCADA screen, set the canvas to the size you want it to appear on that screen. It saves scaling later.

Further down the Canvas tab, DEFAULT NEW ELEMENT STYLES sets the fill colour, stroke colour and stroke width given to every new shape you draw. Set these once to match your house style and each shape starts out right.

Note SimpleVG remembers your canvas size, grid size, default styles, and the Grid, Snap and Ruler settings in the browser, so they are still there next time you open it.

Part 3: Zoom and the status bar

The status bar under the canvas shows the canvas size, the pointer position in canvas pixels, and how many items are selected. At the right are the zoom controls.

The status bar showing canvas size, pointer position, selection count and the zoom buttons 50%, 100%, 150%, 200%, minus, plus and Reset

Click 50%, 100%, 150% or 200% to jump to a zoom level, use - and + to step, and Reset to return to the default. Zoom in for fine work, and out to see the whole diagram.

Part 4: Nudging with the keyboard

Dragging gets a shape close. For the last pixel, select it and use the arrow keys:

Recap

In the next chapter we bring in ready-made SCADA symbols from the libraries.

← Chapter 2: Your First Shapes Chapter 4: SCADA Symbol Libraries →