diff --git a/src/shapes/image.class.js b/src/shapes/image.class.js index 9509fc3d38b..13b50811472 100644 --- a/src/shapes/image.class.js +++ b/src/shapes/image.class.js @@ -92,6 +92,15 @@ */ stateProperties: fabric.Object.prototype.stateProperties.concat('cropX', 'cropY'), + /** + * List of properties to consider when checking if cache needs refresh + * Those properties are checked by statefullCache ON ( or lazy mode if we want ) or from single + * calls to Object.set(key, value). If the key is in this list, the object is marked as dirty + * and refreshed at the next render + * @type Array + */ + cacheProperties: fabric.Object.prototype.cacheProperties.concat('cropX', 'cropY'), + /** * key used to retrieve the texture representing this image * @since 2.0.0