3.1.0 on May 2021
- Styles
(fs|ls|lw|lc|lj|ld|ldoff|ml|sh|lsh|font|thal|tval)
can be numbered now from0-9
as in{ls2:'red'}
. This helps to hand over multiple fill styles (for example) to sub- structures (beg
,use
).
- Handles
hdl
now have new default fill colorfs:'limegreen'
for better recognition.
3.0.0 on December 2020
g2.mixin
is replaced withg2.mix
.
- Symbols like
nod
,origin
etc. are moved fromg2.mec
tog2.ext
. - Commands
vec
,avec
,dim
,adim
are also moved. label
is no command anymore, but a property on respectiveg2
commands.mark
is no command anymore, but a property on respectiveg2
commands.
- A new custom HTML element used for easy rendering of
g2.chart
commands.
2.6.0 on May 2020
- additional support of
{p}
property as alternative to{x,y}
properties for referencing shared points/vectors. - unknown symbol name with
use
results in drawing unknown symbol instead of runtime error. {ldoff}
as linedash offset style property for line dash animation added. `- Implicite element selecting and dragging capability removed.
- Boolean
{draggable}
property added, for explicitly indicating draggable elements.
- code cleanup.
label
element deprecated.mark
element deprecated.label
property for most element types introduced.- Handle element
hdl
with default{draggable:true}
property added. nod, nodfix, nodflt, pol, gnd, vec, dim, adim, origin
elements moved/ported fromg2.mec.js
.
- works again.
interactor.on('pan')
,interactor.on('drag')
andinteractor.on('wheel')
handling is moved out of the library and is now in the responsibility of the application (s.g2.drag.html
).hdl
elements can be used elegantly to interactively modify geometry.