|
@@ -86,10 +86,17 @@ DOM.prototype.onRemove = function()
|
|
|
|
|
|
DOM.prototype.transform = function(context, viewport, canvas)
|
|
|
{
|
|
|
- // CSS trasnformation matrix
|
|
|
- var projection = viewport.matrix.clone();
|
|
|
- projection.multiply(this.globalMatrix);
|
|
|
- this.element.style.transform = projection.cssTransform();
|
|
|
+ // CSS transformation matrix
|
|
|
+ if(this.ignoreViewport)
|
|
|
+ {
|
|
|
+ this.element.style.transform = this.globalMatrix.cssTransform();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ var projection = viewport.matrix.clone();
|
|
|
+ projection.multiply(this.globalMatrix);
|
|
|
+ this.element.style.transform = projection.cssTransform();
|
|
|
+ }
|
|
|
|
|
|
// Size of the element
|
|
|
this.element.style.width = this.size.x + "px";
|
|
@@ -115,7 +122,7 @@ export {DOM};</code></pre>
|
|
|
<br class="clear">
|
|
|
|
|
|
<footer>
|
|
|
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a> on Wed Jun 19 2019 12:10:13 GMT+0100 (Western European Summer Time)
|
|
|
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a> on Tue Jun 25 2019 14:27:21 GMT+0100 (Western European Summer Time)
|
|
|
</footer>
|
|
|
|
|
|
<script> prettyPrint(); </script>
|