mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Added transformOnly
flag
This commit is contained in:
parent
d849031195
commit
a26a420f23
2 changed files with 10 additions and 5 deletions
|
@ -66,6 +66,8 @@ var DOMElement = new Class({
|
|||
|
||||
this.node;
|
||||
|
||||
this.transformOnly = false;
|
||||
|
||||
this.skewX = 0;
|
||||
this.skewY = 0;
|
||||
|
||||
|
|
|
@ -49,11 +49,14 @@ var DOMElementCSSRenderer = function (renderer, src, interpolationPercentage, ca
|
|||
|
||||
camMatrix.multiply(spriteMatrix, calcMatrix);
|
||||
|
||||
style.display = 'block';
|
||||
style.opacity = src.alpha;
|
||||
style.zIndex = src._depth;
|
||||
style.pointerEvents = 'auto';
|
||||
style.mixBlendMode = CSSBlendModes[src._blendMode];
|
||||
if (!src.transformOnly)
|
||||
{
|
||||
style.display = 'block';
|
||||
style.opacity = src.alpha;
|
||||
style.zIndex = src._depth;
|
||||
style.pointerEvents = 'auto';
|
||||
style.mixBlendMode = CSSBlendModes[src._blendMode];
|
||||
}
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/CSS/transform
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue