plugin:sketchcanvas:syntax
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:sketchcanvas:syntax [2015-08-17 14:29] – Add barrow and dallow msakuta | plugin:sketchcanvas:syntax [2015-09-12 15:22] (current) – [Text object] About links msakuta | ||
---|---|---|---|
Line 76: | Line 76: | ||
</ | </ | ||
- | Properties are common with [[# | + | Properties are common with [[# |
+ | |||
+ | ===== Arc object ===== | ||
+ | |||
+ | A curve defined by 3 points. | ||
+ | |||
+ | <code yaml> | ||
+ | - type: arc | ||
+ | points: ' | ||
+ | color: blue | ||
+ | width: 2 | ||
+ | </ | ||
+ | |||
+ | Properties are common with [[#line object]], except that " | ||
+ | |||
+ | Note that this object is quadratic [[wp> | ||
+ | will not cross the curve itself. | ||
+ | Probably we should name it " | ||
+ | |||
+ | ===== Arcarrow object ===== | ||
+ | |||
+ | A curve with an arrowhead on one end. | ||
+ | |||
+ | <code yaml> | ||
+ | - type: arcarrow | ||
+ | points: ' | ||
+ | color: blue | ||
+ | width: 2 | ||
+ | </ | ||
+ | |||
+ | Properties are the same with [[#arc object]], except that an arrowhead is drawn on the last point. | ||
+ | |||
+ | ===== Arcballow object ===== | ||
+ | |||
+ | A curve with an arrowhead on both ends. | ||
+ | |||
+ | <code yaml> | ||
+ | - type: arcbarrow | ||
+ | points: ' | ||
+ | color: blue | ||
+ | width: 2 | ||
+ | </ | ||
+ | |||
+ | Properties are the same with [[#arc object]], except that arrowheads are drawn on the both ends. | ||
+ | |||
+ | ===== Rect object ===== | ||
+ | |||
+ | A rectangle frame. | ||
+ | |||
+ | <code yaml> | ||
+ | - type: rect | ||
+ | points: ' | ||
+ | color: blue | ||
+ | width: 2 | ||
+ | </ | ||
+ | |||
+ | Properties are common with [[#line object]], except that the two points define the diagonal of the rectangle | ||
+ | instead of line ends. | ||
+ | |||
+ | ===== Ellipse object ===== | ||
+ | |||
+ | An elliptical shape. | ||
+ | |||
+ | <code yaml> | ||
+ | - type: ellipse | ||
+ | points: ' | ||
+ | color: blue | ||
+ | width: 2 | ||
+ | </ | ||
+ | |||
+ | Properties are common with [[#line object]], except that the two points define the diagonal of the bounding | ||
+ | rectangle of the ellipse. | ||
+ | |||
+ | ===== Rectfill object ===== | ||
+ | |||
+ | A filled rectangle. | ||
+ | |||
+ | <code yaml> | ||
+ | - type: rectfill | ||
+ | points: ' | ||
+ | color: blue | ||
+ | width: 2 | ||
+ | </ | ||
+ | |||
+ | Properties are the same with [[#rect object]], except that the inside of the rectangle is filled with color. | ||
+ | |||
+ | ===== Ellipsefill object ===== | ||
+ | |||
+ | A filled ellipse. | ||
+ | |||
+ | <code yaml> | ||
+ | - type: ellipsefill | ||
+ | points: ' | ||
+ | color: blue | ||
+ | width: 2 | ||
+ | </ | ||
+ | |||
+ | Properties are the same with [[#ellipse object]], except that the inside of the ellipse is filled with color. | ||
+ | |||
+ | ===== Star object ===== | ||
+ | |||
+ | A pentagram star. | ||
+ | |||
+ | <code yaml> | ||
+ | - type: star | ||
+ | points: ' | ||
+ | color: blue | ||
+ | width: 2 | ||
+ | </ | ||
+ | |||
+ | Properties are the same with [[#ellipse object]], except that " | ||
+ | which defines the position of the star. | ||
+ | |||
+ | ===== Check object ===== | ||
+ | |||
+ | A check mark. | ||
+ | |||
+ | <code yaml> | ||
+ | - type: check | ||
+ | points: ' | ||
+ | color: blue | ||
+ | width: 2 | ||
+ | </ | ||
+ | |||
+ | Properties are the same with [[#star object]], except that the shape is a check mark instead of a star. | ||
+ | |||
+ | ===== Text object ===== | ||
+ | |||
+ | A text string. | ||
+ | |||
+ | <code yaml> | ||
+ | - type: text | ||
+ | points: ' | ||
+ | text: hello | ||
+ | link: ' | ||
+ | </ | ||
+ | |||
+ | The " | ||
+ | The color and size of the text can be modified with " | ||
+ | |||
+ | The " | ||
+ | When the user clicks on this text, the browser jumps to the URL's page. | ||
+ | A text object with a link is designated by a blue underline. | ||
+ | ((Hyperlinked text itself is not automatically colored to blue. Setting color property manually | ||
+ | is needed if you want to make it look blue.)) | ||
+ | |||
+ | Currently, multiple lines are not allowed in a text object. | ||
+ | |||
+ | ===== Path object ===== | ||
+ | |||
+ | A polyline or curve with arbitrary number of vertices. | ||
+ | |||
+ | <code yaml> | ||
+ | - type: path | ||
+ | color: blue | ||
+ | width: 3 | ||
+ | d: ' | ||
+ | arrow: [head, tail] | ||
+ | </ | ||
+ | |||
+ | Path object is very different from other object types. | ||
+ | |||
+ | A path object has the " | ||
+ | from " | ||
+ | It's a subset of [[http:// | ||
+ | [[http:// | ||
+ | |||
+ | A path can contain cubic Bezier spline curves, which enables flexible curve layout. | ||
+ | |||
+ | The " | ||
+ | This is very different from [[#line object]]s or [[#arc object]]s who has arrowhead | ||
+ | presense in their type name. |
plugin/sketchcanvas/syntax.1439814567.txt.gz · Last modified: by msakuta