Fabric gotchas
kangax edited this page Feb 13, 2012
·
30 revisions
-
Left/Top values of all objects (including groups) correspond to an object's center, and are relative to top/left corner of a canvas. Left/Top values of objects in groups are relative to groups' centers.
-
SVG parsing doesn't work with node 0.6.8. This is due to one of fabric dependencies — o3-xml.
-
new fabric.Canvas('foo')
wraps<canvas id="foo">
element with a<div>
one, and adds another (absolutely positioned) canvas element on top of existing canvas (the one with id="foo"). This only happens for dynamic canvases (fabric.Canvas
), not static ones (fabric.StaticCanvas
).