@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.js CHANGED
@@ -1929,12 +1929,14 @@ function loadImages(elements) {
1929
1929
  };
1930
1930
  for (const el of imageElements) {
1931
1931
  const img = new Image();
1932
+ img.crossOrigin = "anonymous";
1932
1933
  img.onload = () => {
1933
1934
  cache.set(el.id, img);
1934
1935
  done();
1935
1936
  };
1936
1937
  img.onerror = done;
1937
- img.src = el.src;
1938
+ const sep = el.src.includes("?") ? "&" : "?";
1939
+ img.src = `${el.src}${sep}_cors=1`;
1938
1940
  }
1939
1941
  });
1940
1942
  }
@@ -3843,7 +3845,7 @@ var UpdateLayerCommand = class {
3843
3845
  };
3844
3846
 
3845
3847
  // src/index.ts
3846
- var VERSION = "0.8.0";
3848
+ var VERSION = "0.8.2";
3847
3849
  export {
3848
3850
  AddElementCommand,
3849
3851
  ArrowTool,