Open hgiesel opened 5 years ago
I don't need to mark pictures. They mark themselves with an image tag.
This way, having something equivalent to $s()
and equivalent to $a()
both for svg elements should be enough. $template()
should be $s()
, and $yank()
should be $a()
$yank([imageid], yankgroup, x:y:width:height[:radius], [text])
-> text refers to another field like second and third argument in $c
, $m
, etc., e.g. +0
. Value numbers x:y:...
mean something else depending on type
style attribute.
and
$template(style, yankgroup)
and
$style(stylename, ...styleattributes)
-> $template
shares them with $apply
and $rule
type:rect
, type:ellipse
(high radius), type:arrow
or type:darrow
, for they the values mean x1:y1:x2:y2[:stroke-width]
and text is written along the same angle along the arrow.
Another attribute is color
, which turns into fill
, or stroke
accordingly.
Specific highlights are only:
[[$t(i1, color:red, display:true)]]
or [[$t(*, dp:none)::$t(i1, color:red, display:true)]]
there should also be a way to rotate en element
EDIT: No way to rotate an element. Instead use a polygon.
type
can be:
rect:x:y:width:[height:rx:ry]
// square, if only three values providedellipse:cx:cy:rx:[ry]
// circle, if only three values providedpolygon:x1:y1:x2:y2:[x1:y2:...]
line:x1:y1:x2:y2:[x1:y2:...]
// actually polyline (fill should be forced transparent)arrow:x1:y1:x2:y2:[x1:y2:...]
// actually polyline with marker (fill should be forced transparent)darrow:x1:y1:x2:y2:[x1:y2:...]
// actually polyline with marker (fill should be forced transparent)Style attributes include:
Having occlusion features would be really neat
Syntax ideas:
and then draw images on it: