Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Remove deleted files leftover from upstream merge #7

Closed
Changes from 1 commit
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
e6c3c06
feat: support pen erasing (#7496)
dwelle Jan 1, 2024
a8064ba
build: Welcome ESM and Bye Bye UMD (#7441)
ad1992 Jan 1, 2024
49f15c7
chore: remove unused files (#7509)
ad1992 Jan 3, 2024
4249b7d
chore: add version for excalidraw-app workspace (#7514)
ad1992 Jan 4, 2024
43ccc87
feat: support multi-embed pasting & x.com domain (#7516)
dwelle Jan 4, 2024
1cb350b
feat: update X brand logo & tweak labels (#7518)
dwelle Jan 4, 2024
8b993d4
feat: render embeds lazily (#7519)
dwelle Jan 4, 2024
65047cc
fix: decouple react and react-dom imports from utils and make it tree…
ad1992 Jan 8, 2024
1aaa400
docs: fix extra space in UIOptions/tools (#7537)
mikecat Jan 11, 2024
3ecf72a
docs: add changelog for ESM build (#7542)
ad1992 Jan 11, 2024
872973f
fix: do not modify elements while erasing (#7531)
dwelle Jan 11, 2024
86cfeb7
feat: add eraser tool trail (#7511)
are Jan 11, 2024
0c24a70
feat: remove `ExcalidrawEmbeddableElement.validated` flag (#7539)
dwelle Jan 11, 2024
5245276
feat: erase groups atomically (#7545)
dwelle Jan 11, 2024
8ead855
feat: redirect font requests to cdn (#7549)
dwelle Jan 11, 2024
41cc746
fix: host font assets from root (#7548)
dwelle Jan 11, 2024
0fa5f5d
fix: translating frames containing grouped text containers (#7557)
dwelle Jan 13, 2024
a4e5e46
fix: move default to last so its compatible with nextjs (#7561)
ad1992 Jan 15, 2024
dd53073
docs: fix "canvas actions" link in Props page (#7536)
mikecat Jan 17, 2024
3b0593b
fix: Prevent the library label from being collapsed (#7579)
mikecat Jan 19, 2024
46da032
fix: exporting frame-overlapping elements belonging to other frames (…
dwelle Jan 19, 2024
1e7df58
feat: add pasted elements to frame under cursor (#7590)
dwelle Jan 21, 2024
b66daae
fix: Truncate collaborator name in dropdown. (#7576)
barnabasmolnar Jan 21, 2024
4997624
fix: frame name editing inconvenience (#7437)
ryan-di Jan 21, 2024
740a165
fix: filter out elements not overlapping frame on paste (#7591)
dwelle Jan 21, 2024
0415c61
refactor: decoupling global Scene state part-1 (#7577)
dwelle Jan 21, 2024
c6fdac1
ci: add the workspace ignore check to install actions as dependency f…
ad1992 Jan 22, 2024
89bd618
fix: revert `mapElementIds` flag removal (#7594)
dwelle Jan 22, 2024
f3f8217
docs: toggleSidebar api fix (#7575)
halocean96 Jan 23, 2024
4f0a2a9
docs: add next js with app router example (#7552)
ad1992 Jan 24, 2024
966f9ae
build(deps-dev): bump vite from 5.0.6 to 5.0.12 in /examples/excalidr…
dependabot[bot] Jan 24, 2024
678bb2b
build(deps-dev): bump vite from 5.0.6 to 5.0.12 (#7586)
dependabot[bot] Jan 24, 2024
2789d08
docs: update the docs for next js integration (#7605)
ad1992 Jan 25, 2024
10bd08e
fix: make getBoundTextElement and related helpers pure (#7601)
ad1992 Jan 26, 2024
626fe25
fix: frame name field (#7457)
Andran1k Jan 29, 2024
2409c09
feat: support roundness for images (#7558)
aashirisrar Jan 29, 2024
d426cc9
refactor: remove portal as it is no longer needed (#7623)
maielo Jan 29, 2024
e0fefa8
fix: don't bundle react-dom when importing from element (#7635)
ad1992 Jan 31, 2024
63b50b3
fix: don't bundle react-dom when importing from transformHandles (#7634)
ad1992 Jan 31, 2024
1741c23
fix: decouple container cache logic to containerCache. (#7637)
ad1992 Jan 31, 2024
90ad885
feat: support onPointerUp prop (#7638)
ad1992 Feb 1, 2024
1c39bd5
fix: don't bundle react and jotai when importing from scene (#7640)
ad1992 Feb 1, 2024
4888d9d
chore: change default port of collab server (#7641)
dwelle Feb 1, 2024
0e0f34e
fix: follow mode border for hosts apps (#7642)
maielo Feb 1, 2024
0c3dffb
fix: make getEmbedLink independent of t function (#7643)
ad1992 Feb 1, 2024
d67eaa8
fix: file save timing out with big file sizes (#7649)
dwelle Feb 3, 2024
a289c42
feat: add loading state to FilledButton (#7650)
dwelle Feb 3, 2024
0513b64
feat: change collab trigger & add share dialog (#7647)
dwelle Feb 3, 2024
def1df2
fix: keep customData when converting to ExcalidrawElement (#7656)
yubinTW Feb 8, 2024
adc4c9f
fix: prevent panning to trigger history on macos chrome (#7671)
dwelle Feb 8, 2024
48c3465
docs: release patch v0.17.3 (#7673)
ad1992 Feb 9, 2024
73bf50e
fix: remove t from getDefaultAppState and allow name to be nullable (…
ad1992 Feb 15, 2024
47f87f4
fix: remove scene from getElementAbsoluteCoords and dependent functio…
ad1992 Feb 16, 2024
9013c84
fix: make LinearElementEditor independent of scene (#7670)
ad1992 Feb 19, 2024
79d9dc2
fix: make bounds independent of scene (#7679)
ad1992 Feb 19, 2024
2e719ff
fix: decouple pure functions from hyperlink to prevent mermaid bundli…
ad1992 Feb 20, 2024
361a944
fix: remove scene hack from export.ts & remove pass elementsMap to ge…
ad1992 Feb 21, 2024
f5ab3e4
fix: remove dependency of t from clipboard and image (#7712)
ad1992 Feb 21, 2024
f639d44
fix: remove dependency of t in blob.ts (#7717)
ad1992 Feb 23, 2024
dd85297
docs: type mistake in integration of excalidraw (#7723)
aashmanVerma Feb 26, 2024
b09b5cb
fix: split renderScene so that locales aren't imported unnecessarily …
ad1992 Feb 27, 2024
36e5626
docs: add missing closing angle bracket in integration.mdx (#7729)
WabweniBrian Feb 27, 2024
af1a3d5
fix: export utils from excalidraw package in excalidraw library (#7731)
ad1992 Feb 28, 2024
99601ba
build: create ESM build for utils package 🥳 (#7500)
ad1992 Feb 28, 2024
f207bd0
build: export types for @excalidraw/utils (#7736)
ad1992 Feb 29, 2024
160440b
feat: improve collab error notification (#7741)
ryan-di Mar 4, 2024
7e471b5
feat: text measurements based on font metrics (#7693)
Mrazator Mar 5, 2024
a07f6e9
feat: show ai badge for discovery (#7749)
dwelle Mar 5, 2024
a38e82f
feat: close dropdown on escape (#7750)
dwelle Mar 5, 2024
68b1fdb
fix: add missing font metrics for Assistant (#7752)
dwelle Mar 6, 2024
480572f
fix: correcting Assistant metrics (#7758)
Mrazator Mar 7, 2024
2382fad
feat: store library to IndexedDB & support storage adapters (#7655)
dwelle Mar 8, 2024
6a385d6
feat: change LibraryPersistenceAdapter `load()` `source` -> `priority`
dwelle Mar 11, 2024
b7babe5
feat: load old library if migration fails
dwelle Mar 11, 2024
068895d
feat: expose more collaborator status icons (#7777)
dwelle Mar 18, 2024
15bfa62
feat: support to not render remote cursor & username (#7130)
dwelle Mar 18, 2024
7949aa1
feat: upgrade mermaid-to-excalidraw to 0.3.0 (#7819)
ad1992 Mar 28, 2024
65bc500
fix: `excalidrawAPI.toggleSidebar` not switching between tabs correct…
dwelle Mar 28, 2024
6b52356
fix: ejs support in html files (#7822)
dwelle Mar 28, 2024
550a388
feat: command palette (#7804)
ryan-di Mar 28, 2024
1d71f84
fix: stop using lookbehind for backwards compat (#7824)
dwelle Mar 28, 2024
3e334a6
feat: show firefox-compatible command palette shortcut alias (#7825)
dwelle Mar 28, 2024
bbdcd30
refactor: update collision from ga to vector geometry (#7636)
ryan-di Apr 4, 2024
32df550
feat: fractional indexing (#7359)
ryan-di Apr 4, 2024
92bc082
fix: remove incorrect check from index.html (#7867)
dwelle Apr 8, 2024
cd50aa7
feat: add system mode to the theme selector (#7853)
arnostpleskot Apr 8, 2024
c6a045d
fix: theme toggle shortcut `event.code` (#7868)
dwelle Apr 8, 2024
8a162a4
fix: import (#7869)
dwelle Apr 8, 2024
a33a400
fix: add safe check for arrow points length in tranformToExcalidrawEl…
ad1992 Apr 9, 2024
d917db4
fix: external link not opening (#7859)
therealrinku Apr 9, 2024
4987cc5
fix: include borders when testing insides of a shape (#7865)
ryan-di Apr 9, 2024
f597bd3
fix: command palette tweaks and fixes (#7876)
dwelle Apr 11, 2024
0ae9b38
fix: Gist embed allowing unsafe html (#7883)
dwelle Apr 12, 2024
4689a6b
fix: hit test for closed sharp curves (#7881)
ryan-di Apr 12, 2024
afcde54
fix: parse embeddable srcdoc urls strictly (#7884)
dwelle Apr 12, 2024
f59b4f6
fix: always make sure we render bound text above containers (#7880)
dwelle Apr 12, 2024
da2e507
fix: allow same origin for all necessary domains (#7889)
dwelle Apr 13, 2024
890ed9f
feat: add "toggle grid" to command palette (#7887)
dwelle Apr 13, 2024
f92f04c
fix: Correct unit from 'eg' to 'deg' (#7891)
johnd99 Apr 15, 2024
bbcca06
fix: collision regressions from vector geometry rewrite (#7902)
ryan-di Apr 17, 2024
5211b00
fix: double text rendering on edit (#7904)
dwelle Apr 17, 2024
530617b
feat: multiplayer undo / redo (#7348)
Mrazator Apr 17, 2024
015b46a
feat: expose `StoreAction` in relation to multiplayer history (#7898)
Mrazator Apr 22, 2024
1bd2b1f
feat: export reconciliation (#7917)
Mrazator Apr 22, 2024
c851aaa
fix: z-index for laser pointer to be able to draw on embeds and such …
maielo Apr 22, 2024
a04676d
fix: CTRL/CMD & arrow point drag unbinds both sides (#6459) (#7877)
mtolmacs Apr 22, 2024
4d83d1c
fix: use Reflect API instead of Object.hasOwn (#7958)
Mrazator Apr 25, 2024
6e5aeb1
feat: record freedraw tool selection to history (#7949)
Mrazator Apr 25, 2024
88812e0
feat: resize elements from the sides (#7855)
ryan-di Apr 30, 2024
275f6fb
fix: typo in doc api (#7466)
mritunjayz Apr 30, 2024
f79fb9a
chore: Bump vitest to 1.5.3 to support VSCode vitest Extension (#7968)
mtolmacs May 1, 2024
d9bbf1e
feat: Allow binding only via linear element ends (#7946)
mtolmacs May 2, 2024
f0d25e3
chore: Add lcov coverage output to vitest (#7987)
mtolmacs May 6, 2024
d1f37cc
feat: tweak a few icons & add line editor button to side panel (#7990)
dwelle May 7, 2024
6539029
fix: docker build of Excalidraw app (#7430)
agebhar1 May 7, 2024
c1926f3
fix: remove unused param from drawImagePlaceholder (#7991)
ad1992 May 7, 2024
1ed53b1
build: enable consistent type imports eslint rule (#7992)
ad1992 May 8, 2024
ed5ce8d
fix: command palette filter (#7981)
dwelle May 8, 2024
301e838
feat: add install-PWA to command palette (#7935)
dwelle May 8, 2024
273ba80
fix: font not rendered correctly on init (#8002)
dwelle May 10, 2024
dc66261
fix: re-introduce wysiwyg width offset (#8014)
Mrazator May 13, 2024
79257a1
fix: correctly resolve the package version (#8016)
ggrossetie May 14, 2024
cc4c519
build: specify `packageManager` field (#8010)
dwelle May 14, 2024
971b4d4
feat: text wrapping (#7999)
ryan-di May 15, 2024
7d8b7fc
fix: compatible safari layers button svg (#8020)
Shaocang May 15, 2024
ff0b439
feat: add missing `type="button"` (#8030)
nishanthkarthik May 18, 2024
be4e127
fix: Two finger panning is slow (#7849)
zsviczian May 19, 2024
afe52c8
fix: undo/redo when exiting view mode (#8024)
Vatsalsoni13 May 19, 2024
1b6e3fe
feat: rerender canvas on focus (#8035)
dwelle May 19, 2024
2f9526d
feat: upgrade to mermaid-to-excalidraw v1 🚀 (#8022)
ad1992 May 20, 2024
eddbe55
fix: always re-generate index of defined moved elements (#8040)
Mrazator May 20, 2024
c540bd6
feat: wrap long text when pasting (#8026)
ryan-di May 21, 2024
defd349
docs: fix `updateScene` `storeAction` default tsdoc & document types …
dwelle May 22, 2024
661d6a4
fix: flaky snapshot tests with floating point precision issues (#8049)
Mrazator May 23, 2024
a71bb63
fix: fix twitter og image (#8050)
dwelle May 23, 2024
1ed98f9
fix: lp plus url (#8056)
dwelle May 24, 2024
6ed6131
build: run tests on master branch (#8072)
ad1992 May 27, 2024
4eb9463
fix: restore linear dimensions from points (#8062)
dwelle May 27, 2024
860308e
feat: create new text with width (#8038)
ryan-di May 28, 2024
69f4cc7
feat: stop autoselecting text on text edit on mobile (#8076)
dwelle May 28, 2024
08b13f9
fix: wysiwyg blur-submit on mobile (#8075)
dwelle May 28, 2024
63dee03
docs: remove extra braces in callback JSX (#8087)
sunil-sharma-999 May 31, 2024
22b3927
feat: paste as mermaid if applicable (#8116)
dwelle Jun 11, 2024
d2f67e6
feat: editable element stats (#6382)
ryan-di Jun 12, 2024
4dc4590
fix: repair invalid binding on restore & fix type check (#8133)
dwelle Jun 13, 2024
a1ffa06
fix: only bind arrow (#8152)
zsviczian Jun 19, 2024
6ba9bd6
feat: allow props.initialData to be a function (#8135)
es-romo Jun 24, 2024
744b3e5
fix: stats state leaking & race conds (#8177)
dwelle Jun 26, 2024
ba8c09d
fix: Incorrect point offsetting in LinearElementEditor.movePoints() (…
mtolmacs Jun 28, 2024
abbeed3
feat: support Stats bound text `fontSize` editing (#8187)
dwelle Jun 28, 2024
04668d8
fix: Binding after duplicating is now applied for both the old and du…
mtolmacs Jun 28, 2024
66a2f24
fix: Add binding update to manual stat changes (#8183)
mtolmacs Jul 1, 2024
1d5b41d
fix: stop updating text versions on init (#8191)
dwelle Jul 1, 2024
2e1f08c
fix: memory leak - scene.destroy() and window.launchQueue (#8198)
zsviczian Jul 2, 2024
d9258a7
chore: Consolidate i18n import in LanguageList component (#8201)
DDDDD12138 Jul 4, 2024
148b895
feat: smarter preferred lang detection (#8205)
dwelle Jul 4, 2024
db2c235
Fix : exportToCanvas() doc example (#8127)
AlexandreLemoine40 Jul 8, 2024
f5221d5
ci: upgrade gh actions checkout and setup-node to v4 (#8168)
hamirmahal Jul 8, 2024
96eeec5
feat: bump max file size (#8220)
dwelle Jul 8, 2024
e52c2cd
fix: log allowed events (#8224)
dwelle Jul 9, 2024
d25a7d3
feat: upgrade mermaid-to-excalidraw to v1.1.0 (#8226)
ad1992 Jul 10, 2024
6fbc44f
fix: messed up env variable (#8231)
dwelle Jul 11, 2024
df8875a
fix: freedraw jittering (#8238)
BlueGreenMagick Jul 14, 2024
43b2476
fix: revert default element canvas padding change (#8266)
dwelle Jul 22, 2024
bd7b778
perf: cache the temp canvas created for labeled arrows (#8267)
ad1992 Jul 23, 2024
4c54082
chore: Correct Typos in Code Comments (#8268)
DDDDD12138 Jul 23, 2024
62228e0
feat: introduce font picker (#8012)
Mrazator Jul 25, 2024
2427e62
feat: improve mermaid detection on paste (#8287)
dwelle Jul 27, 2024
7b36de0
fix: linear elements not selected on pointer up from hitting its boun…
ryan-di Jul 27, 2024
d0a3807
feat: ability to debug the state of fractional indices (#8235)
Mrazator Jul 30, 2024
230d0ed
feat: multiple fonts fallbacks (#8286)
Mrazator Jul 30, 2024
adcdbe2
fix: re-add Cascadia Code with ligatures (#8291)
Mrazator Jul 30, 2024
5a0771a
fix: load fonts for `exportToCanvas` (#8298)
Mrazator Jul 30, 2024
e844580
feat: remove automatic frame naming (#8302)
dwelle Jul 31, 2024
80ea7ca
fix: skip registering font faces for local fonts (#8303)
Mrazator Aug 1, 2024
a133a70
build: update release script to build esm (#8308)
ad1992 Aug 1, 2024
15e0197
feat: Orthogonal (elbow) arrows for diagramming (#8299)
mtolmacs Aug 1, 2024
e63dd02
fix: allow binding elbow arrows to frame children (#8309)
dwelle Aug 1, 2024
84d89b9
fix: throttle fractional indices validation (#8306)
Mrazator Aug 2, 2024
c641860
fix: CVE-2023-45133 (#7988)
mtolmacs Aug 2, 2024
c67815f
fix: Duplicating arrow without bound elements throws error (#8316)
zsviczian Aug 3, 2024
2907fbe
build(deps): bump @excalidraw/excalidraw from 0.17.0 to 0.17.6 in /de…
dependabot[bot] Aug 5, 2024
b427617
build: add `rm:build`, `rm:node_modules` & `clean-install` scripts (#…
dwelle Aug 5, 2024
a6684b0
docs: fix typos in props.mdx (#8325)
b1sar Aug 5, 2024
b87925d
build: add example apps `public` and vite `dev-dist` to eslintignore …
dwelle Aug 5, 2024
8d530cf
fix: Docker build in CI (#8312)
mtolmacs Aug 6, 2024
3cf14c7
refactor: rename `draggingElement` -> `newElement` (#8294)
ryan-di Aug 6, 2024
f19ce30
chore: bump `@testing-library/react` `12.1.5` -> `16.0.0` (#8322)
dwelle Aug 6, 2024
232242d
test: skip test.yml in PRs (#8330)
dwelle Aug 6, 2024
72d6ee4
fix: Do not allow resizing unbound elbow arrows either (#8333)
mtolmacs Aug 6, 2024
dd13703
chore: Refactor and remove scene from elbow arrow generation (#8342)
mtolmacs Aug 8, 2024
54491d1
feat: create flowcharts from a generic element using elbow arrows (#8…
ryan-di Aug 8, 2024
84398a7
fix: Point duplication in LEE on ALT+click (#8347)
mtolmacs Aug 9, 2024
261304c
fix: Patch over intersection calculation issue (#8350)
mtolmacs Aug 9, 2024
d5f4ee7
fix: z-index change by one causes app to freeze (#8314)
clarencechaan Aug 9, 2024
1ea5b26
fix: missing `act()` in flowchart tests (#8354)
dwelle Aug 9, 2024
99b91c4
fix: Yet more patching of intersect code (#8352)
mtolmacs Aug 9, 2024
87a9430
fix: disable flowchart keybindings inside inputs (#8353)
dwelle Aug 9, 2024
88014ac
fix: drawing from 0-dimension canvas (#8356)
dwelle Aug 9, 2024
7b2bee9
chore: remove unused parameter (#8355)
DDDDD12138 Aug 9, 2024
f7b3bef
fix: text content with tab characters act different in view/edit (#8336)
clarencechaan Aug 9, 2024
9798180
feat: Stats popup style tweaks (#8361)
dwelle Aug 11, 2024
5daf1a1
fix: Round coordinates and sizes for rectangle intersection (#8366)
mtolmacs Aug 12, 2024
8420e1a
fix: Reimplement rectangle intersection (#8367)
mtolmacs Aug 12, 2024
4320a3c
feat: improve zoom-to-content when creating flowchart (#8368)
dwelle Aug 12, 2024
3cfcc7b
feat: split `gridSize` from enabled state & support custom `gridStep`…
dwelle Aug 14, 2024
fb4bb29
fix: object snapping not working (#8381)
dwelle Aug 15, 2024
b5d7f5b
feat: rewrite d2c to not require token (#8269)
dwelle Aug 20, 2024
5e1ff7c
perf: improve new element drawing (#8340)
ryan-di Aug 23, 2024
824ad60
docs: Update function call in @excalidraw/mermaid-to-excalidraw (#8420)
ptuls Aug 26, 2024
5facc0d
fix: perf regression in `getCommonBounds` (#8429)
dwelle Aug 26, 2024
b459e5c
fix: context menu does not work after after dragging on StatsDragInpu…
zsviczian Aug 26, 2024
afb68a6
feat: improve elbow arrow keyboard move (#8392)
zsviczian Aug 26, 2024
26d2296
fix: fixed copy to clipboard button (#8426)
spc-28 Aug 26, 2024
ea7c702
feat: Visual debugger (#8344)
mtolmacs Aug 27, 2024
00af35c
feat: enable panning/zoom while in wysiwyg (#8437)
dwelle Aug 28, 2024
576bc0d
feat: tweak copy button success animation (#8441)
dwelle Aug 28, 2024
16cae4f
feat: reset copyStatus on export dialog settings change (#8443)
dwelle Aug 29, 2024
7e9763f
removed: extra files
sorenjohanson Aug 29, 2024
0567417
Merge remote-tracking branch 'upstream/master' into 6-remove-deleted-…
sorenjohanson Aug 30, 2024
fa7f595
fix: app
sorenjohanson Aug 30, 2024
6b52a87
fix: lint
sorenjohanson Aug 30, 2024
7ce7d1f
fix history snapshot
sorenjohanson Aug 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: drawing from 0-dimension canvas (excalidraw#8356)
  • Loading branch information
dwelle authored Aug 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 88014ace4a9bf9c5c3189f4496695431e789faaf
18 changes: 17 additions & 1 deletion packages/excalidraw/renderer/renderElement.ts
Original file line number Diff line number Diff line change
@@ -199,7 +199,7 @@ const generateElementCanvas = (
zoom: Zoom,
renderConfig: StaticCanvasRenderConfig,
appState: StaticCanvasAppState,
): ExcalidrawElementWithCanvas => {
): ExcalidrawElementWithCanvas | null => {
const canvas = document.createElement("canvas");
const context = canvas.getContext("2d")!;
const padding = getCanvasPadding(element);
@@ -210,6 +210,10 @@ const generateElementCanvas = (
zoom,
);

if (!width || !height) {
return null;
}

canvas.width = width;
canvas.height = height;

@@ -540,6 +544,10 @@ const generateElementWithCanvas = (
appState,
);

if (!elementWithCanvas) {
return null;
}

elementWithCanvasCache.set(element, elementWithCanvas);

return elementWithCanvas;
@@ -742,6 +750,10 @@ export const renderElement = (
renderConfig,
appState,
);
if (!elementWithCanvas) {
return;
}

drawElementFromCanvas(
elementWithCanvas,
context,
@@ -881,6 +893,10 @@ export const renderElement = (
appState,
);

if (!elementWithCanvas) {
return;
}

const currentImageSmoothingStatus = context.imageSmoothingEnabled;

if (