@mce/gif 0.18.3 → 0.18.4

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 +3 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { Encoder } from "modern-gif";
4
4
  //#region src/plugin.ts
5
5
  function plugin() {
6
6
  return definePlugin((editor, options) => {
7
- const { assets, fonts, to } = editor;
7
+ const { assets, fonts, to, runExclusiveRender } = editor;
8
8
  const gifWorkerUrl = options.gifWorkerUrl;
9
9
  assets.gifWorkerUrl = gifWorkerUrl;
10
10
  return {
@@ -23,7 +23,7 @@ function plugin() {
23
23
  height,
24
24
  workerUrl: gifWorkerUrl
25
25
  });
26
- await render({
26
+ await runExclusiveRender(() => render({
27
27
  data,
28
28
  width,
29
29
  height,
@@ -36,7 +36,7 @@ function plugin() {
36
36
  });
37
37
  onProgress?.(progress);
38
38
  }
39
- });
39
+ }));
40
40
  return await encoder.flush("blob");
41
41
  }
42
42
  }]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mce/gif",
3
3
  "type": "module",
4
- "version": "0.18.3",
4
+ "version": "0.18.4",
5
5
  "description": "GIF plugin for mce",
6
6
  "author": "wxm",
7
7
  "license": "MIT",
@@ -49,7 +49,7 @@
49
49
  "modern-gif": "^2.1.0"
50
50
  },
51
51
  "devDependencies": {
52
- "mce": "0.18.3"
52
+ "mce": "0.18.4"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "mce": "^0"