チェンジセット 3812
- コミット日時:
- 2010/04/18 09:43:42 (3 年前)
- ファイル:
-
- as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/CanvasModule.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/CircleModule.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/DropperModule.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/EllipseModule.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/FloodFillModule.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/FreeHandModule.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/LineModule.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/PixelModule.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/RectModule.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/RoundRectModule.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/TransparentLineModule.as (更新) (5 diffs)
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/CanvasModule.as
r3796 r3812 25 25 public class CanvasModule 26 26 { 27 internal static const PREFIX:String = "org.libspark.gunyarapaint.framework.modules."; 28 27 29 public function CanvasModule(recorder:Recorder) 28 30 { as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/CircleModule.as
r3569 r3812 10 10 public final class CircleModule extends CanvasModule implements ICanvasModule 11 11 { 12 public static const CIRCLE:String = "circle";12 public static const CIRCLE:String = PREFIX + "circle"; 13 13 14 14 public function CircleModule(recorder:Recorder) as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/DropperModule.as
r3604 r3812 6 6 public final class DropperModule extends CanvasModule implements ICanvasModule 7 7 { 8 public static const DROPPER:String = "dropper";8 public static const DROPPER:String = PREFIX + "dropper"; 9 9 10 10 public function DropperModule(recorder:Recorder) as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/EllipseModule.as
r3542 r3812 5 5 public final class EllipseModule extends CanvasModule implements ICanvasModule 6 6 { 7 public static const ELLIPSE:String = "ellipse";7 public static const ELLIPSE:String = PREFIX + "ellipse"; 8 8 9 9 public function EllipseModule(recorder:Recorder) as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/FloodFillModule.as
r3542 r3812 7 7 public final class FloodFillModule extends CanvasModule implements ICanvasModule 8 8 { 9 public static const FLOOD_FILL:String = "floodFill";9 public static const FLOOD_FILL:String = PREFIX + "floodFill"; 10 10 11 11 public function FloodFillModule(recorder:Recorder) as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/FreeHandModule.as
r3542 r3812 13 13 public final class FreeHandModule extends CanvasModule implements ICanvasModule 14 14 { 15 public static const FREE_HAND:String = "freeHand";15 public static const FREE_HAND:String = PREFIX + "freeHand"; 16 16 17 17 public function FreeHandModule(recorder:Recorder) as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/LineModule.as
r3542 r3812 8 8 public final class LineModule extends CanvasModule implements ICanvasModule 9 9 { 10 public static const LINE:String = "line";10 public static const LINE:String = PREFIX + "line"; 11 11 12 12 public function LineModule(recorder:Recorder) as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/PixelModule.as
r3542 r3812 6 6 public final class PixelModule extends CanvasModule implements ICanvasModule 7 7 { 8 public static const PIXEL:String = "pixel";8 public static const PIXEL:String = PREFIX + "pixel"; 9 9 10 10 public function PixelModule(recorder:Recorder) as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/RectModule.as
r3542 r3812 5 5 public final class RectModule extends CanvasModule implements ICanvasModule 6 6 { 7 public static const RECT:String = "rect";7 public static const RECT:String = PREFIX + "rect"; 8 8 9 9 public function RectModule(recorder:Recorder) as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/RoundRectModule.as
r3542 r3812 5 5 public final class RoundRectModule extends CanvasModule implements ICanvasModule 6 6 { 7 public static const ROUND_RECT:String = "roundRect";7 public static const ROUND_RECT:String = PREFIX + "roundRect"; 8 8 9 9 public function RoundRectModule(recorder:Recorder) as3/gunyarapaint/branches/gunyarapaint/framework/src/org/libspark/gunyarapaint/framework/modules/TransparentLineModule.as
r3804 r3812 11 11 public final class TransparentLineModule extends CanvasModule implements ICanvasModule 12 12 { 13 public static const TRANSPARENT_LINE:String = "transparentLine";13 public static const TRANSPARENT_LINE:String = PREFIX + "transparentLine"; 14 14 15 15 public function TransparentLineModule(recorder:Recorder) … … 22 22 validateLayerState(); 23 23 setCoordinate(x, y); 24 m_blendMode = m_recorder.pen.blendMode;25 24 m_recorder.startDrawingSession(); 26 25 } … … 40 39 public function stop(x:Number, y:Number):void 41 40 { 41 var pen:Pen = m_recorder.pen; 42 var currentBlendMode:String = pen.blendMode; 42 43 m_recorder.stopDrawingSession(); 43 44 if (!equalsCoordinate(x, y)) { … … 48 49 m_recorder.commitCommand(LineToCommand.ID, to); 49 50 m_recorder.commitCommand(CompositeCommand.ID, {}); 50 blendMode = m_blendMode;51 blendMode = currentBlendMode; 51 52 } 52 m_recorder.pen.blendMode = m_blendMode;53 pen.blendMode = currentBlendMode; 53 54 saveCoordinate(x, y); 54 55 } … … 63 64 return TRANSPARENT_LINE; 64 65 } 65 66 private var m_blendMode:String;67 66 } 68 67 }

