Skip to content

Commit 5db35b6

Browse files
authored
fix: add default values for canvas element attributes
1 parent e1518c7 commit 5db35b6

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

docs/common/sif_file_format.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,23 @@ Content model
4747
Attributes
4848
^^^^^^^^^^
4949

50-
:id: <optional> <string> canvas identifier. Ignored if it is the root canvas.
50+
:id: <optional> <string> canvas identifier. Ignored if it is the root canvas. Default: "".
5151
:guid: <optional>
5252
:version: <optional> <string> the canvas version. Current default: "1.2".
53-
:width: <optional> <positive integer>
54-
:height: <optional> <positive integer>
55-
:xres: <optional> <positive real>
56-
:yres: <optional> <positive real>
57-
:gamma-r: <optional> <positive real> The color correction factor for red component (since 1.1)
58-
:gamma-g: <optional> <positive real> The color correction factor for green component (since 1.1)
59-
:gamma-b: <optional> <positive real> The color correction factor for blue component (since 1.1)
60-
:fps: <optional> <positive real> How many frames should be rendered per second
61-
:begin-time: <optional> <Time>
62-
:end-time: <optional> <Time>
63-
:antialias: <optional> <positive integer> The antialias amount
64-
:view-box: <optional> <list of 4 real> The 2D coordinates of top-left point and bottom-right point of the view box, in this order, separated by a single space: tl_x tl_y br_x br_y
65-
:bgcolor: <optional> <list of 4 real> Background color represented by red, green, blue and alpha components, separated by single space. Values in the range (0.0, 1.0).
66-
:focus: <optional> <list of 2 real> The canvas focus point (for zooming). The point coordinates are separated by a single space.
53+
:width: <optional> <positive integer> Default: 480.
54+
:height: <optional> <positive integer> Default: 270.
55+
:xres: <optional> <positive real> Default: 2834.645669 dpm (i.e. 72 dpi).
56+
:yres: <optional> <positive real> Default: 2834.645669 dpm (i.e. 72 dpi).
57+
:gamma-r: <optional> <positive real> The color correction factor for red component. Default: 1. (since 1.1)
58+
:gamma-g: <optional> <positive real> The color correction factor for green component. Default: 1. (since 1.1)
59+
:gamma-b: <optional> <positive real> The color correction factor for blue component. Default: 1. (since 1.1)
60+
:fps: <optional> <positive real> How many frames should be rendered per second. Default: 24fps.
61+
:begin-time: <optional> <Time> Default: 0.
62+
:end-time: <optional> <Time> Default: 0.
63+
:antialias: <optional> <positive integer> The antialias amount. Default: 2.
64+
:view-box: <optional> <list of 4 real> The 2D coordinates of top-left point and bottom-right point of the view box, in this order, separated by a single space: tl_x tl_y br_x br_y. Default: (-4, 2.25), (4, -2.25).
65+
:bgcolor: <optional> <list of 4 real> Background color represented by red, green, blue and alpha components, separated by single space. Values in the range (0.0, 1.0). Default: gray (0.5 0.5 0.5 1.0)
66+
:focus: <optional> <list of 2 real> The canvas focus point (for zooming). The point coordinates are separated by a single space. Default: (0, 0)
6767

6868
.. _canvas_id:
6969
A canvas 'id' may be any string without '#' and ':' characters. When a node refers to a canvas, it will use its 'id' to identify it.

0 commit comments

Comments
 (0)