- override
Renders this display object with the given renderState
.
The display object is rendered without its filters.
Source
@override void render(RenderState renderState) { var globalMatrix = renderState.globalMatrix; var globalAlpha = renderState.globalAlpha; var visibility = this.visible && this.off == false; var stage = this.stage; var pixelRatio = stage != null ? stage.pixelRatio : 1.0; var ma = (globalMatrix.a / pixelRatio).toStringAsFixed(4); var mb = (globalMatrix.b / pixelRatio).toStringAsFixed(4); var mc = (globalMatrix.c / pixelRatio).toStringAsFixed(4); var md = (globalMatrix.d / pixelRatio).toStringAsFixed(4); var mtx = (globalMatrix.tx / pixelRatio).toStringAsFixed(4); var mty = (globalMatrix.ty / pixelRatio).toStringAsFixed(4); var styleOpacity = globalAlpha.toStringAsFixed(4); var styleTransform = "matrix($ma,$mb,$mc,$md,$mtx,$mty)"; var styleVisibility = visibility ? "visible" : "hidden"; if (_styleVisibility != styleVisibility) { _style.visibility = _styleVisibility = styleVisibility; } if (_styleOpacity != styleOpacity) { _style.opacity = _styleOpacity = styleOpacity; } if (_styleTransform != styleTransform) { _style.transform = _styleTransform = styleTransform; } }