Start implementation of a layered renderer, splitting HTML/SVG to separate layers and creating new DisplayGroups (Stacks of DOM containers and/or SVGs) for bonsai Groups
Add new renderer [should have been in last commit]
have global defs in svgRoot instead of defs in each SVG layer. Also implement fix for groups.
Fix small bugs and make sure that DisplayGroups are added at {0,0}. Only translate the position of sub-layers (i.e. either SVG or DOM Layers). This is to avoid the problem of having a bonsai group with items added at positions further to the top/left than {0,0} (these should still be displayed, but previously they would be hidden because the SVG element would not exist beyond those bounds). To get around this, for SVG elements, we create a SVG layers at {0,0} and have all children appended to a root <g> element, which has the appropriate transform applied. This is closer to expected behaviour.
Merge branch 'master' of github.com:uxebu/bonsai into layered_renderer
Fix issue where an SVG element could not be inserted successfully before a DOM element, or vice versa. Now DisplayLayers are implemented too. When the issue arises, the target layer is split accordingly to make way for the insertion of the different-type layer. E.g. an SVG layer may be split in two to make way for a DOM layer+element in the middle. SVGLayer and DOMLayer have also been implemented to simplify architecture
Working more on layered renderer architecture. Split up some of the required classes. Fixed some issues with SVG/DOM element insertion midway through a layer, and some grouping issues with the questionnaire example movie.
Implement DisplayElement, which has sub-classes DOMElement and SVGElement (i.e. items that can be appended to DisplayLayers [SVGLayer, DOMLayer]).
Make sure any SVGElements created in draw methods are wrapped in SVGElement instances. Also fix Movie rendering so they're treated as Groups
Make sure that getDOMLayer/getSVGLayer methods take DisplayGroup insertions into account when determining the top-most layer-type.
Fix transform bugs with DisplayGroups (+Movie instances). Also add correct transform origin.
Apply transformOrigin cross-browser
Merge branch 'master' of github.com:uxebu/bonsai into layered-renderer
Add initial layered-renderer structure tests and apply a couple of according fixes
Commit old fix to layered-renderer structure tests
More tests
Applying new technique for positioning SVG layers so that the SVG viewport is expanded to the full width/height of the stage instead of being limited to its parentDisplatGroup's dimensions/position. Also add new positioning tests and refine DisplayGroup/SVGLayer implementations a bit
Fix bitmap and single-object clipping
Merge from master and fix conflicts
Some code fixes/changes to make it run (in iframe context) and removal of redundant code