@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.
- package/dist/index.js +4 -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.
|
|
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) =>
|
|
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);
|