@fieldnotes/core 0.8.0 → 0.8.2
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/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/index.d.cts +0 -875
- package/dist/index.d.ts +0 -875
package/dist/index.cjs
CHANGED
|
@@ -2012,12 +2012,14 @@ function loadImages(elements) {
|
|
|
2012
2012
|
};
|
|
2013
2013
|
for (const el of imageElements) {
|
|
2014
2014
|
const img = new Image();
|
|
2015
|
+
img.crossOrigin = "anonymous";
|
|
2015
2016
|
img.onload = () => {
|
|
2016
2017
|
cache.set(el.id, img);
|
|
2017
2018
|
done();
|
|
2018
2019
|
};
|
|
2019
2020
|
img.onerror = done;
|
|
2020
|
-
|
|
2021
|
+
const sep = el.src.includes("?") ? "&" : "?";
|
|
2022
|
+
img.src = `${el.src}${sep}_cors=1`;
|
|
2021
2023
|
}
|
|
2022
2024
|
});
|
|
2023
2025
|
}
|
|
@@ -3926,7 +3928,7 @@ var UpdateLayerCommand = class {
|
|
|
3926
3928
|
};
|
|
3927
3929
|
|
|
3928
3930
|
// src/index.ts
|
|
3929
|
-
var VERSION = "0.8.
|
|
3931
|
+
var VERSION = "0.8.2";
|
|
3930
3932
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3931
3933
|
0 && (module.exports = {
|
|
3932
3934
|
AddElementCommand,
|