Documenting all the shorthands I know of

dev
Andy Meneely 2020-11-17 22:32:12 -05:00
parent b304bf39e4
commit 24c9fbd0bf
12 changed files with 39 additions and 39 deletions

View File

@ -3,10 +3,10 @@
width width
default: ``:deck`` (the width of the deck) default: ``:deck`` (the width of the deck)
the width of the box. Supports :doc:`/units`. the width of the box. Supports :doc:`/units` and :doc:`/shorthands`.
height height
default: ``:deck`` (the height of the deck) default: ``:deck`` (the height of the deck)
the height of the box. Supports :doc:`/units`. Also can be ``:center`` or ``:middle`` for half the height of the deck. Supports :doc:`/units`. the height of the box. Supports :doc:`/units`. Also can be ``:center`` or ``:middle`` for half the height of the deck. Supports :doc:`/units` and and :doc:`/shorthands`.

View File

@ -3,10 +3,10 @@
x x
default: ``0`` default: ``0``
the x-coordinate to place, relative to the upper-left corner of the card and moving right as it increases. Supports :doc:`/units`. the x-coordinate to place, relative to the upper-left corner of the card and moving right as it increases. Supports :doc:`/units` and :doc:`/shorthands`.
y y
default: ``0`` default: ``0``
the y-coordinate to place, relative to the upper-left corner of the card and moving downward as it increases. Supports :doc:`/units`. the y-coordinate to place, relative to the upper-left corner of the card and moving downward as it increases. Supports :doc:`/units` and :doc:`/shorthands`.

View File

@ -3,7 +3,7 @@
x x
default: ``0`` default: ``0``
the x-coordinate to place, relative to the upper-left corner of the card and moving right as it increases. Supports :doc:`/units`. the x-coordinate to place, relative to the upper-left corner of the card and moving right as it increases. Supports :doc:`/units` and :doc:`/shorthands`.
Also can be ``:center`` or ``:middle`` for half the width of the deck. Also can be ``:center`` or ``:middle`` for half the width of the deck.
@ -11,6 +11,6 @@ x
y y
default: ``0`` default: ``0``
the y-coordinate to place, relative to the upper-left corner of the card and moving downward as it increases. Supports :doc:`/units`. the y-coordinate to place, relative to the upper-left corner of the card and moving downward as it increases. Supports :doc:`/units` and :doc:`/shorthands`.
Also can be ``:center`` or ``:middle`` for half the height of the deck. Also can be ``:center`` or ``:middle`` for half the height of the deck.

View File

@ -10,49 +10,49 @@ Options
x1 x1
default: ``0`` default: ``0``
the x-coordinate of the first endpoint. Supports :doc:`/units`. the x-coordinate of the first endpoint. Supports :doc:`/units` and :doc:`/shorthands`..
y1 y1
default: ``0`` default: ``0``
the y-coordinate of the first endpoint. Supports :doc:`/units`. the y-coordinate of the first endpoint. Supports :doc:`/units` and :doc:`/shorthands`..
x2 x2
default: ``5`` default: ``5``
the x-coordinate of the second endpoint. Supports :doc:`/units`. the x-coordinate of the second endpoint. Supports :doc:`/units` and :doc:`/shorthands`..
y2 y2
default: ``5`` default: ``5``
the y-coordinate of the second endpoint. Supports :doc:`/units`. the y-coordinate of the second endpoint. Supports :doc:`/units` and :doc:`/shorthands`..
cx1 cx1
default: ``0`` default: ``0``
the x-coordinate of the first control point. Supports :doc:`/units`. the x-coordinate of the first control point. Supports :doc:`/units` and :doc:`/shorthands`..
cy1 cy1
default: ``0`` default: ``0``
the y-coordinate of the first control point. Supports :doc:`/units`. the y-coordinate of the first control point. Supports :doc:`/units` and :doc:`/shorthands`..
cx2 cx2
default: ``5`` default: ``5``
the x-coordinate of the second control point. Supports :doc:`/units`. the x-coordinate of the second control point. Supports :doc:`/units` and :doc:`/shorthands`..
cy2 cy2
default: ``5`` default: ``5``
the y-coordinate of the second control point. Supports :doc:`/units`. the y-coordinate of the second control point. Supports :doc:`/units` and :doc:`/shorthands`..
.. include:: /args/draw.rst .. include:: /args/draw.rst

View File

@ -68,12 +68,12 @@ cap
x x
default: ``margin`` (whatever the margin was set to) default: ``margin`` (whatever the margin was set to)
the x-coordinate to place, relative to the upper-left corner of the card and moving right as it increases. Supports :doc:`/units`. the x-coordinate to place, relative to the upper-left corner of the card and moving right as it increases. Supports :doc:`/units`and :doc:`/shorthands`.
y y
default: ``margin`` (whatever the margin was set to) default: ``margin`` (whatever the margin was set to)
the y-coordinate to place, relative to the upper-left corner of the card and moving downward as it increases. Supports :doc:`/units`. the y-coordinate to place, relative to the upper-left corner of the card and moving downward as it increases. Supports :doc:`/units`and :doc:`/shorthands`.
.. include:: /args/range.rst .. include:: /args/range.rst
.. include:: /args/layout.rst .. include:: /args/layout.rst

View File

@ -14,13 +14,13 @@ Options
width width
default: ``:deck`` (the width of the deck) default: ``:deck`` (the width of the deck)
the spacing between vertical gridlines. Supports :doc:`/units`. the spacing between vertical gridlines. Supports :doc:`/units` and :doc:`/shorthands`.
height height
default: ``:deck`` (the height of the deck) default: ``:deck`` (the height of the deck)
the spacing between horizontal gridlines. Supports :doc:`/units`. the spacing between horizontal gridlines. Supports :doc:`/units` and :doc:`/shorthands`.
.. include:: /args/draw.rst .. include:: /args/draw.rst

View File

@ -10,25 +10,25 @@ Options
x1 x1
default: ``0`` default: ``0``
the x-coordinate to place. Supports :doc:`/units/` the x-coordinate to place. Supports :doc:`/units/` and :doc:`/shorthands`.
y1 y1
default: ``0`` default: ``0``
the y-coordinate to place. Supports :doc:`/units/` the y-coordinate to place. Supports :doc:`/units/` and :doc:`/shorthands`.
x2 x2
default: ``50`` default: ``50``
the x-coordinate to place. Supports :doc:`/units/` the x-coordinate to place. Supports :doc:`/units/` and :doc:`/shorthands`.
y2 y2
default: ``50`` default: ``50``
the y-coordinate to place. Supports :doc:`/units/` the y-coordinate to place. Supports :doc:`/units/` and :doc:`/shorthands`.
.. include:: /args/draw.rst .. include:: /args/draw.rst
.. include:: /args/range.rst .. include:: /args/range.rst

View File

@ -17,12 +17,12 @@ file
width width
default: ``:native`` default: ``:native``
the pixel width that the image should scale to. Supports :doc:`/units`. When set to ``:native``, uses the DPI and units of the loaded SVG document. Using ``:deck`` will scale to the deck width. Using ``:scale`` will use the ``height`` to scale and keep native the aspect ratio. Scaling PNGs is not recommended for professional-looking cards, and up-scaling a PNG will throw a warning in the console (see :doc:`/config`). the pixel width that the image should scale to. Supports :doc:`/units`. When set to ``:native``, uses the DPI and units of the loaded SVG document. Using ``:deck`` will scale to the deck width. Using ``:scale`` will use the ``height`` to scale and keep native the aspect ratio. Scaling PNGs is not recommended for professional-looking cards, and up-scaling a PNG will throw a warning in the console (see :doc:`/config`). Supports :doc:`/units` and :doc:`/shorthands`.
height height
default: ``:native`` default: ``:native``
the pixel height that the image should scale to. Supports :doc:`/units`. When set to ``:native``, uses the DPI and units of the loaded SVG document. Using ``:deck`` will scale to the deck height. Using ``:scale`` will use the ``width`` to scale and keep native the aspect ratio. Scaling PNGs is not recommended for professional-looking cards, and up-scaling a PNG will throw a warning in the console (see :doc:`/config`). the pixel height that the image should scale to. Supports :doc:`/units`. When set to ``:native``, uses the DPI and units of the loaded SVG document. Using ``:deck`` will scale to the deck height. Using ``:scale`` will use the ``width`` to scale and keep native the aspect ratio. Scaling PNGs is not recommended for professional-looking cards, and up-scaling a PNG will throw a warning in the console (see :doc:`/config`). Supports :doc:`/units` and :doc:`/shorthands`.
alpha alpha
default: 1.0 default: 1.0

View File

@ -17,13 +17,13 @@ margin
width width
default: ``width - margin`` (the width of the deck minus the margin) default: ``width - margin`` (the width of the deck minus the margin)
the width of the box. Supports :doc:`/units`. the width of the box. Supports :doc:`/units` and :doc:`/shorthands`.
height height
default: ``height - margin`` (the height of the deck minus the margin) default: ``height - margin`` (the height of the deck minus the margin)
the height of the box. Supports :doc:`/units`. the height of the box. Supports :doc:`/units` and :doc:`/shorthands`.
fill_color fill_color
default: ``'#0000'`` (fully transparent) default: ``'#0000'`` (fully transparent)
@ -82,12 +82,12 @@ cap
x x
default: ``margin`` (whatever the margin was set to) default: ``margin`` (whatever the margin was set to)
the x-coordinate to place, relative to the upper-left corner of the card and moving right as it increases. Supports :doc:`/units`. the x-coordinate to place, relative to the upper-left corner of the card and moving right as it increases. Supports :doc:`/units` and :doc:`/shorthands`.
y y
default: ``margin`` (whatever the margin was set to) default: ``margin`` (whatever the margin was set to)
the y-coordinate to place, relative to the upper-left corner of the card and moving downward as it increases. Supports :doc:`/units`. the y-coordinate to place, relative to the upper-left corner of the card and moving downward as it increases. Supports :doc:`/units` and :doc:`/shorthands`.
.. include:: /args/range.rst .. include:: /args/range.rst
.. include:: /args/layout.rst .. include:: /args/layout.rst

View File

@ -37,12 +37,12 @@ force_id
width width
default: ``native`` default: ``native``
the pixel width that the image should scale to. Setting this to ``:deck`` will scale to the deck height. ``:scale`` will use the width to scale and keep native the aspect ratio. SVG scaling is done with vectors, so the scaling should be smooth. When set to ``:native``, uses the DPI and units of the loaded SVG document. the pixel width that the image should scale to. Setting this to ``:deck`` will scale to the deck height. ``:scale`` will use the width to scale and keep native the aspect ratio. SVG scaling is done with vectors, so the scaling should be smooth. When set to ``:native``, uses the DPI and units of the loaded SVG document. Supports :doc:`/units` and :doc:`/shorthands`.
height height
default: ``:native`` default: ``:native``
the pixel width that the image should scale to. ``:deck`` will scale to the deck height. ``:scale`` will use the width to scale and keep native the aspect ratio. SVG scaling is done with vectors, so the scaling should be smooth. When set to ``:native``, uses the DPI and units of the loaded SVG document. the pixel width that the image should scale to. ``:deck`` will scale to the deck height. ``:scale`` will use the width to scale and keep native the aspect ratio. SVG scaling is done with vectors, so the scaling should be smooth. When set to ``:native``, uses the DPI and units of the loaded SVG document. Supports :doc:`/units` and :doc:`/shorthands`.
blend blend
default: ``:none`` default: ``:none``

View File

@ -35,12 +35,12 @@ markup
width width
default: ``:auto`` default: ``:auto``
the width of the box the string will be placed in. Stretches to the content by default.. Supports :doc:`/units`. the width of the box the string will be placed in. Stretches to the content by default.. Supports :doc:`/units` and :doc:`/shorthands`.
height height
default: ``:auto`` default: ``:auto``
the height of the box the string will be placed in. Stretches to the content by default. Supports :doc:`/units`. the height of the box the string will be placed in. Stretches to the content by default. Supports :doc:`/units` and :doc:`/shorthands`.
wrap wrap
default: ``:word_char`` default: ``:word_char``

View File

@ -10,36 +10,36 @@ Options
x1 x1
default: ``100`` default: ``100``
the first x-coordinate to place. Supports :doc:`/units/` the first x-coordinate to place. Supports :doc:`/units/` and :doc:`/shorthands`.
y1 y1
default: ``100`` default: ``100``
the first y-coordinate to place. Supports :doc:`/units/` the first y-coordinate to place. Supports :doc:`/units/` and :doc:`/shorthands`.
x2 x2
default: ``150`` default: ``150``
the second x-coordinate to place. Supports :doc:`/units/` the second x-coordinate to place. Supports :doc:`/units/` and :doc:`/shorthands`.
y2 y2
default: ``150`` default: ``150``
the second y-coordinate to place. Supports :doc:`/units/` the second y-coordinate to place. Supports :doc:`/units/` and :doc:`/shorthands`.
x3 x3
default: ``100`` default: ``100``
the third x-coordinate to place. Supports :doc:`/units/` the third x-coordinate to place. Supports :doc:`/units/` and :doc:`/shorthands`.
y3 y3
default: ``150`` default: ``150``
the third y-coordinate to place. Supports :doc:`/units/` the third y-coordinate to place. Supports :doc:`/units/` and :doc:`/shorthands`.
.. include:: /args/draw.rst .. include:: /args/draw.rst