@servantcdh/ez-planet-labeling 0.5.29 → 0.5.30

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3589,7 +3589,7 @@ const LIB_AUTHOR = "최동호";
3589
3589
  const LIB_CONTACT = "servantcdh@naver.com";
3590
3590
  const __EZ_PLANET_META__ = Object.freeze({
3591
3591
  name: LIB_NAME,
3592
- version: "0.5.29",
3592
+ version: "0.5.30",
3593
3593
  author: LIB_AUTHOR,
3594
3594
  contact: LIB_CONTACT,
3595
3595
  license: "Proprietary — See LICENSE"
@@ -8041,7 +8041,9 @@ const superpixelTool = () => {
8041
8041
  annotationLayer.canvas.height = imgH;
8042
8042
  ctx.drawImage(img, 0, 0, imgW, imgH);
8043
8043
  const imageData = ctx.getImageData(0, 0, imgW, imgH);
8044
- await new Promise((resolve) => setTimeout(resolve, 0));
8044
+ await new Promise((resolve) => {
8045
+ requestAnimationFrame(() => requestAnimationFrame(() => resolve()));
8046
+ });
8045
8047
  const slic = new SLIC(imageData, config);
8046
8048
  const maskImageData = slic.result;
8047
8049
  slic.createPixelIndex(maskImageData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servantcdh/ez-planet-labeling",
3
- "version": "0.5.29",
3
+ "version": "0.5.30",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",