@colijnit/configurator 12.0.9 → 12.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/colijnit-configurator.umd.js +7 -0
- package/bundles/colijnit-configurator.umd.js.map +1 -1
- package/esm2015/helper/variation-helper.js +3 -1
- package/esm2015/utils/image.utils.js +7 -1
- package/fesm2015/colijnit-configurator.js +7 -0
- package/fesm2015/colijnit-configurator.js.map +1 -1
- package/package.json +1 -1
- package/utils/image.utils.d.ts +1 -0
|
@@ -1002,6 +1002,12 @@
|
|
|
1002
1002
|
ImageUtils.getFixedImageFilepathUrl = function (imageFilepathUrl) {
|
|
1003
1003
|
return imageFilepathUrl.replace("/content/", "/content43/");
|
|
1004
1004
|
};
|
|
1005
|
+
ImageUtils.ClearCache = function () {
|
|
1006
|
+
ImageUtils.textures.forEach(function (value) {
|
|
1007
|
+
value.dispose();
|
|
1008
|
+
});
|
|
1009
|
+
ImageUtils.textures.clear();
|
|
1010
|
+
};
|
|
1005
1011
|
return ImageUtils;
|
|
1006
1012
|
}());
|
|
1007
1013
|
ImageUtils.textures = new Map();
|
|
@@ -1664,6 +1670,7 @@
|
|
|
1664
1670
|
});
|
|
1665
1671
|
});
|
|
1666
1672
|
VariationUtils.ClearCache();
|
|
1673
|
+
ImageUtils.ClearCache();
|
|
1667
1674
|
};
|
|
1668
1675
|
VariationHelper.prototype.loadPart = function (obj, parts, usePbr) {
|
|
1669
1676
|
if (usePbr === void 0) { usePbr = false; }
|