FYI I accidentally checked this one in :(. It seems safe, everything runs as
before, and a whole lot more new stuff now works.
Change 20100222-maxcarlson-R by maxcarl...@bank on 2010-02-22 14:40:25 PST
in /Users/maxcarlson/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Update save/restore() to be compatible with html5, add scale()
rotate() and translate() support across runtimes
Bugs Fixed: LPP-8779 - Add save() and restore() to drawview, LPP-7712 -
Components: Drawview transforms (rotate, scale, translate)
Technical Reviewer: [email protected]
QA Reviewer: hminsky
Details: Correct default values for lineCap, lineJoin and miterLimit. Unify
context value defaults (lineWidth, etc.) in DrawviewShared mixin. Add
__contextstates array to track drawview state defaults when save/restore() are
applied. Track __drawcontext in addition to .context because they are two
different things in as3 - Graphics vs MovieClip. Add support for scale(),
rotate() and translate() across runtimes. swf stroke() processes lineCap value
to match AS3 values. Add shared __saveToBitmap() routine that moves the
current drawing state to tbe background bitmap. Add shared __sizelimit
attribute that contains the maximum pixel size a BitmapData can contain,
depending on the version of Flash. rebuildBitmap() warns about oversized
drawviews using __sizelimit. createContainer() ensures the bitmap data is
created behind the drawing context. __updateSize() now adjusts scaling for
swf9. save() stores the current drawview context state variables and the
current display!
object, and generates a new context width a fresh state. restore() restores
the previously saved context state, saving the current drawing state to the
bitmap. Avoid calling rebuildBitmap() to create a bitmap until we really need
to. fillRect() ignores calls with invalid height and width, and copyBitmap()
no longer requires a matrix argument.
Tests: See test/drawing/drawing.lzx across runtimes and testcase from LPP-8641
in swf8-10.
Files:
M lps/components/extensions/drawview.lzx
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20100222-maxcarlson-R.tar
_______________________________________________
Laszlo-reviews mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews