-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
1,530 additions
and
833 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"description":"__MSG_extDesc__","version":"3.1.2","manifest_version":3,"name":"__MSG_extName__","default_locale":"en","background":{"service_worker":"background.bundle.js"},"action":{"default_icon":"assets/img/icon-34.png"},"icons":{"128":"assets/img/icon-128.png"},"host_permissions":["<all_urls>"],"content_scripts":[{"matches":["<all_urls>"],"js":["contentScript.bundle.js"],"css":["assets/fonts/fonts.css"]}],"web_accessible_resources":[{"resources":["content.styles.css","blank.mp4","playground.html","editor.html","assets/*","setup.html","worker.js","vendor/*","recorder.html","recorderoffscreen.html","sandbox.html","wrapper.html","camera.html","permissions.html","region.html","waveform.html","playground.html","editorfallback.html","download.html","*"],"matches":["<all_urls>"]}],"oauth2":{"client_id":"560517327251-m7n1k3kddknu7s9s4ejvrs1bj91gutd7.apps.googleusercontent.com","scopes":["https://www.googleapis.com/auth/drive.file"]},"cross_origin_embedder_policy":{"value":"require-corp"},"cross_origin_opener_policy":{"value":"same-origin"},"content_security_policy":{"sandbox":"sandbox allow-scripts allow-modals allow-popups; script-src 'self' 'unsafe-inline' 'unsafe-eval' blob:; object-src 'self';worker-src 'self' blob: ;","extension_pages":"script-src 'self' 'wasm-unsafe-eval'; object-src 'self'; media-src 'self' data: blob: *;"},"sandbox":{"pages":["editor.html"]},"commands":{"start-recording":{"suggested_key":{"default":"Alt+Shift+G"},"description":"Start recording"},"cancel-recording":{"suggested_key":{"default":"Alt+Shift+X"},"description":"Cancel recording"},"pause-recording":{"suggested_key":{"default":"Alt+Shift+M"},"description":"Pause/Resume recording"}},"permissions":["identity","activeTab","storage","unlimitedStorage","downloads","tabs","tabCapture","scripting"],"optional_permissions":["offscreen","desktopCapture","alarms"]} | ||
{"description":"__MSG_extDesc__","version":"3.1.3","manifest_version":3,"name":"__MSG_extName__","default_locale":"en","background":{"service_worker":"background.bundle.js"},"action":{"default_icon":"assets/img/icon-34.png"},"icons":{"128":"assets/img/icon-128.png"},"host_permissions":["<all_urls>"],"content_scripts":[{"matches":["<all_urls>"],"js":["contentScript.bundle.js"],"css":["assets/fonts/fonts.css"]}],"web_accessible_resources":[{"resources":["content.styles.css","blank.mp4","playground.html","editor.html","assets/*","setup.html","worker.js","vendor/*","recorder.html","recorderoffscreen.html","sandbox.html","wrapper.html","camera.html","permissions.html","region.html","waveform.html","playground.html","editorfallback.html","download.html","*"],"matches":["<all_urls>"]}],"oauth2":{"client_id":"560517327251-m7n1k3kddknu7s9s4ejvrs1bj91gutd7.apps.googleusercontent.com","scopes":["https://www.googleapis.com/auth/drive.file"]},"cross_origin_embedder_policy":{"value":"require-corp"},"cross_origin_opener_policy":{"value":"same-origin"},"content_security_policy":{"sandbox":"sandbox allow-scripts allow-modals allow-popups; script-src 'self' 'unsafe-inline' 'unsafe-eval' blob:; object-src 'self';worker-src 'self' blob: ;","extension_pages":"script-src 'self' 'wasm-unsafe-eval'; object-src 'self'; media-src 'self' data: blob: *;"},"sandbox":{"pages":["editor.html"]},"commands":{"start-recording":{"suggested_key":{"default":"Alt+Shift+G"},"description":"Start recording"},"cancel-recording":{"suggested_key":{"default":"Alt+Shift+X"},"description":"Cancel recording"},"pause-recording":{"suggested_key":{"default":"Alt+Shift+M"},"description":"Pause/Resume recording"}},"permissions":["identity","activeTab","storage","unlimitedStorage","downloads","tabs","tabCapture","scripting"],"optional_permissions":["offscreen","desktopCapture","alarms"]} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
diff --git a/node_modules/@radix-ui/react-use-callback-ref/dist/index.js b/node_modules/@radix-ui/react-use-callback-ref/dist/index.js | ||
index 1a31eaf..79315a4 100644 | ||
--- a/node_modules/@radix-ui/react-use-callback-ref/dist/index.js | ||
+++ b/node_modules/@radix-ui/react-use-callback-ref/dist/index.js | ||
@@ -9,16 +9,18 @@ $parcel$export(module.exports, "useCallbackRef", () => $28e03942f763e819$export$ | ||
/** | ||
* A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a | ||
* prop or avoid re-executing effects when passed as a dependency | ||
- */ function $28e03942f763e819$export$25bec8c6f54ee79a(callback) { | ||
- const callbackRef = $92muK$react.useRef(callback); | ||
- $92muK$react.useEffect(()=>{ | ||
- callbackRef.current = callback; | ||
- }); // https://github.com/facebook/react/issues/19240 | ||
- return $92muK$react.useMemo(()=>(...args)=>{ | ||
- var _callbackRef$current; | ||
- return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args); | ||
- } | ||
- , []); | ||
+ */ | ||
+function $28e03942f763e819$export$25bec8c6f54ee79a(callback) { | ||
+ const callbackRef = $92muK$react.useRef(callback); | ||
+ $92muK$react.useEffect(() => { | ||
+ callbackRef.current = callback; | ||
+ }); // https://github.com/facebook/react/issues/19240 | ||
+ return $92muK$react.useMemo(() => (...args) => { | ||
+ var _callbackRef$current; | ||
+ if (typeof (_callbackRef$current = callbackRef.current) === 'function') { | ||
+ return _callbackRef$current.call(callbackRef, ...args); | ||
+ } | ||
+ }, []); | ||
} | ||
|
||
|
||
diff --git a/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs b/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs | ||
index 451f620..3a98d1f 100644 | ||
--- a/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs | ||
+++ b/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs | ||
@@ -11,7 +11,9 @@ import {useRef as $lwiWj$useRef, useEffect as $lwiWj$useEffect, useMemo as $lwiW | ||
}); // https://github.com/facebook/react/issues/19240 | ||
return $lwiWj$useMemo(()=>(...args)=>{ | ||
var _callbackRef$current; | ||
+ if (typeof (_callbackRef$current = callbackRef.current) === 'function') { | ||
return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args); | ||
+ } | ||
} | ||
, []); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/node_modules/fabric/dist/fabric.js b/node_modules/fabric/dist/fabric.js | ||
index faee7fc..02e5ae3 100644 | ||
--- a/node_modules/fabric/dist/fabric.js | ||
+++ b/node_modules/fabric/dist/fabric.js | ||
@@ -12591,7 +12591,7 @@ fabric.PatternBrush = fabric.util.createClass(fabric.PencilBrush, /** @lends fab | ||
this.cacheCanvasEl = this._createCanvasElement(); | ||
this.cacheCanvasEl.setAttribute('width', this.width); | ||
this.cacheCanvasEl.setAttribute('height', this.height); | ||
- this.contextCache = this.cacheCanvasEl.getContext('2d'); | ||
+ this.contextCache = this.cacheCanvasEl.getContext('2d', {willReadFrequently: true}); | ||
}, | ||
|
||
/** | ||
@@ -15103,7 +15103,7 @@ fabric.util.object.extend(fabric.StaticCanvas.prototype, /** @lends fabric.Stati | ||
_createCacheCanvas: function() { | ||
this._cacheProperties = {}; | ||
this._cacheCanvas = fabric.util.createCanvasElement(); | ||
- this._cacheContext = this._cacheCanvas.getContext('2d'); | ||
+ this._cacheContext = this._cacheCanvas.getContext('2d', {willReadFrequently: true}); | ||
this._updateCacheCanvas(); | ||
// if canvas gets created, is empty, so dirty. | ||
this.dirty = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.