The default configurations for various StageXL features.
The system environment in which the application is running:
StageXL.environment.devicePixelRatio
StageXL.environment.isMobileDevice
StageXL.environment.isLittleEndianSystem
StageXL.environment.isTouchEventSupported
The default StageOptions used by the Stage constructor:
StageXL.stageOptions.renderEngine = RenderEngine.WebGL;
StageXL.stageOptions.inputEventMode = InputEventMode.MouseOnly;
StageXL.stageOptions.stageRenderMode = StageRenderMode.AUTO;
StageXL.stageOptions.stageScaleMode = StageScaleMode.SHOW_ALL;
StageXL.stageOptions.stageAlign = StageAlign.NONE;
StageXL.stageOptions.backgroundColor = Color.White;
StageXL.stageOptions.transparent = false;
StageXL.stageOptions.antialias = false;
StageXL.stageOptions.maxPixelRatio = 5.0;
StageXL.stageOptions.preventDefaultOnTouch = true;
StageXL.stageOptions.preventDefaultOnMouse = true;
StageXL.stageOptions.preventDefaultOnWheel = false;
StageXL.stageOptions.preventDefaultOnKeyboard = false;
The default BitmapDataLoadOptions used by BitmapData.load
:
StageXL.bitmapDataLoadOptions.jpg = true;
StageXL.bitmapDataLoadOptions.png = true;
StageXL.bitmapDataLoadOptions.webp = false;
StageXL.bitmapDataLoadOptions.maxPixelRatio = 2;
StageXL.bitmapDataLoadOptions.corsEnabled = false;
The default SoundLoadOptions used by Sound.load
:
StageXL.soundLoadOptions.mp3 = true;
StageXL.soundLoadOptions.mp4 = true;
StageXL.soundLoadOptions.ogg = true;
StageXL.soundLoadOptions.ac3 = true;
StageXL.soundLoadOptions.wav = true;
StageXL.soundLoadOptions.opus = false;
StageXL.soundLoadOptions.alternativeUrls = null;
StageXL.soundLoadOptions.ignoreErrors = true;
StageXL.soundLoadOptions.corsEnabled = false;
StageXL.soundLoadOptions.engine = null;
The default VideoLoadOptions used by Video.load
:
StageXL.videoLoadOptions.mp4 = true;
StageXL.videoLoadOptions.webm = true;
StageXL.videoLoadOptions.ogg = true;
StageXL.videoLoadOptions.alternativeUrls = null;
StageXL.videoLoadOptions.loadData = false;
StageXL.videoLoadOptions.corsEnabled = false;
Static Properties
- bitmapDataLoadOptions → BitmapDataLoadOptions
-
The default
BitmapDataLoadOptions
used byBitmapData.load
.read / write - environment → Environment
-
The system environment in which the application is running.
read-only - soundLoadOptions → SoundLoadOptions
-
The default
SoundLoadOptions
used bySound.load
.read / write - stageOptions → StageOptions
-
The default
StageOptions
used by theStage
constructor.read / write - videoLoadOptions → VideoLoadOptions
-
The default
VideoLoadOptions
used byVideo.load
.read / write
Constructors
- StageXL()
Properties
- hashCode → int
-
Get a hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited