@@ -8,7 +8,7 @@ import LA from '../../js/math/LinearAlgebra.js';
88 * the effects
99 * @abstract
1010 */
11- export default class cardAbstract {
11+ export default class CardAbstract {
1212 /**
1313 * @param {String } [modifier = ''] Modifier of the card block.
1414 * Default '' means mo modifier.
@@ -21,8 +21,8 @@ export default class cardAbstract {
2121 modifier = '' ,
2222 postTransformFunction ,
2323 postShadowFunction ,
24- transformationFunction = cardAbstract . _transformationFunction ,
25- shadowFunction = cardAbstract . _shadowFunction
24+ transformationFunction = CardAbstract . _transformationFunction ,
25+ shadowFunction = CardAbstract . _shadowFunction
2626 ) {
2727
2828 this . _throwIfAbstractClass ( ) ;
@@ -40,6 +40,11 @@ export default class cardAbstract {
4040 ) ;
4141 }
4242
43+ flushRectCaches ( ) {
44+ this . _ct . flushRectCaches ( ) ;
45+ this . _cm . flushRectCaches ( ) ;
46+ }
47+
4348 /**
4449 * function which returns the correct transformation for a standard
4550 * card block depending on the absolute position on screen and the
@@ -84,7 +89,7 @@ export default class cardAbstract {
8489 */
8590 static _shadowFunction ( args ) {
8691 const
87- rect = args . eventControlElement . domElement . getBoundingClientRect ( ) ,
92+ rect = args . eventControlElement . rect ,
8893 hover = [
8994 args . event . clientX - rect . left ,
9095 args . event . clientY - rect . top
0 commit comments