I think this changeset needs to updated to ToT because of the latest 
changes concerning drawview.

Thanks,
André


On 2/23/2010 12:23 AM, Max Carlson wrote:
> 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
>
> Bugs Fixed: LPP-8779 - Add save() and restore() to drawview
>
> Technical Reviewer: ptw
> QA Reviewer: [email protected]
>
> Details: Unify context value default context state management (lineWidth, 
> etc.) in the 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 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.  save() stores the current drawview 
> context state variables and the current display object, and generates a new 
> context width a fresth state.   restore() restores the previously saved 
> context state, saving the current drawing state to the bitmap.
>
> Tests: See test/drawing/drawing.lzx across runtimes.  The nested blue and 
> black boxes should match 
> https://developer.mozilla.org/en/Canvas_tutorial/Transformations#A_save_and_restore_canvas_state_example
>  - except the white area which depends on LPP-8778.
>
> 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

Reply via email to