SmartCanvas

Constructor

@:value({ even : true, smallDeviceQuality : SmallDeviceQuality.ideal })new(?size:Point<Int>, ?parentDom:Element, smallDeviceQuality:SmallDeviceQuality = SmallDeviceQuality.ideal, even:Bool = true)

Variables

read onlycanvas:CanvasElement

read onlydynStage:Rect<Float>

@:value(false)noScale:Bool = false

read onlyonDynStageResize:Signal1<Rect<Float>>

read onlyonStageResize:Signal2<Float, Rect<Float>>

read onlyratio:Float

rect:Rect<Float>

read onlyscale:Float

@:value(0)read onlystageHeight:Int = 0

read onlystageInitSize:Point<Int>

@:value(0)read onlystageWidth:Int = 0

Methods

fullscreen():Void

dynamicratioMod(value:Float):Float

setSize(w:Int, h:Int):Void

inlineupdateSize():Void

Inherited Variables

Defined by ElementResizeControl

read onlychangeElement:Signal2<Element, Element>

@:bindableelement:Element

read onlyheight:Int

read onlyonResize:Signal2<Int, Int>

read onlywidth:Int

Inherited Methods

Defined by ElementResizeControl

inlineset_element(v:Element):Element