Visualize Your Ideas With Code
build: fix verification workflow (#314)
Jacobf950d66e89b9
diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.ymlindex 251ba6e5..686acd00 100644--- a/.github/workflows/verify.yml+++ b/.github/workflows/verify.yml@@ -31,7 +31,7 @@ jobs:node-version: 18cache: npm- run: npm ci- - run: npx lerna run lint+ - run: npm run eslintprettier:name: Code styleruns-on: ubuntu-latest@@ -42,7 +42,7 @@ jobs:node-version: 18cache: npm- run: npm ci- - run: npx lerna run prettier+ - run: npm run prettiertests:name: Testsruns-on: ubuntu-latestdiff --git a/.prettierignore b/.prettierignoreindex e25a1024..e38b6d85 100644--- a/.prettierignore+++ b/.prettierignore@@ -5,6 +5,8 @@ static.git.docusaurus.github+packages/docs/build+packages/docs/src/generatedpackage.jsonpackage-lock.jsonCHANGELOG.mddiff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.mdindex 21026b95..0dba6499 100644--- a/CODE_OF_CONDUCT.md+++ b/CODE_OF_CONDUCT.md@@ -118,8 +118,8 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage],version 2.1, available at[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].-Community Impact Guidelines were inspired by-[Mozilla's code of conduct enforcement ladder][mozilla coc].+Community Impact Guidelines were inspired by [Mozilla's code of conduct+enforcement ladder][mozilla coc].For answers to common questions about this code of conduct, see the FAQ at[https://www.contributor-covenant.org/faq][faq]. Translations are available atdiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 1fd5bc9b..6bdca181 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -20,11 +20,11 @@ out the necessary information.## Proposing a ChangeIf you intend to change the public API, make any non-trivial changes to the-implementation, or create brand new guides in the documentation, make sure to+implementation, or create brand-new guides in the documentation, make sure to[create an issue][new-feature] first. This will let us discuss a proposal beforeyou put significant effort into it. After a proposal has been discussed it may-receive the [accepted][label-accepted] label indicating that it's ready to be-implemented.+receive the [`c-accepted`][label-accepted] label indicating that it's ready to+be implemented.If you're only fixing a bug or a typo, it's fine to submit a pull request rightaway without creating an issue, but make sure it contains a clear and concise@@ -32,11 +32,12 @@ description of the bug.## Working on Issues-Before you start working on an issue make sure that no one has claimed it yet.-Otherwise, you may duplicate other people's efforts. If somebody claims an issue-but doesn't follow up for more than two weeks, it’s fine to take it over, but-you should still leave a comment. You should also leave a comment on any issue-you're working on, to let others know.+Before you start working on an issue make sure that it has been accepted+(indicated by a [`c-accepted`][label-accepted] label) and that no one has+claimed it yet. Otherwise, you may duplicate other people's efforts. If somebody+claims an issue but doesn't follow up for more than two weeks, it’s fine to take+it over, but you should still leave a comment. You should also leave a comment+on any issue you're working on, to let others know.## Semantic Versioning@@ -57,8 +58,8 @@ Motion Canvas follows [semantic versioning][semver].```When committing the changes, our git hooks should automatically run Prettierand ESLint for you. If, for some reason, hooks are not supported in your- working environement, you can run these tools using `npm run prettier` and- `npm run eslint` respectively.+ working environement, you can run these tools using `npm run prettier:fix`+ and `npm run eslint:fix` respectively.5. Push your branch to GitHub:```shellgit push origin my-fix-branch@@ -111,4 +112,5 @@ This Contribution Guide was partially inspired by [React][react] andhttps://github.com/angular/angular/blob/main/CONTRIBUTING.md#commit[angular]: https://github.com/angular/angular/blob/main/CONTRIBUTING.md[react]: https://reactjs.org/docs/how-to-contribute.html-[label-accepted]: https://github.com/motion-canvas/motion-canvas/labels/accepted+[label-accepted]:+ https://github.com/motion-canvas/motion-canvas/labels/c-accepteddiff --git a/lerna.json b/lerna.jsonindex 20188982..4bac9fae 100644--- a/lerna.json+++ b/lerna.json@@ -4,10 +4,7 @@"useWorkspaces": true,"private": false,"version": "2.2.0",- "ignoreChanges": [- "**/*.test.ts",- "**/*.md"- ],+ "ignoreChanges": ["**/*.test.ts", "**/*.md"],"message": "ci(release): %v [skip ci]","conventionalCommits": true,"createRelease": "github"diff --git a/package-lock.json b/package-lock.jsonindex 43a896e4..0a4d9695 100644--- a/package-lock.json+++ b/package-lock.json@@ -11,10 +11,10 @@"devDependencies": {"@commitlint/cli": "^17.0.3","@commitlint/config-conventional": "^17.0.3",- "@typescript-eslint/eslint-plugin": "^5.32.0",- "@typescript-eslint/parser": "^5.32.0",- "eslint": "^8.21.0",- "eslint-plugin-tsdoc": "^0.2.16",+ "@typescript-eslint/eslint-plugin": "^5.51.0",+ "@typescript-eslint/parser": "^5.51.0",+ "eslint": "^8.34.0",+ "eslint-plugin-tsdoc": "^0.2.17","husky": "^8.0.0","lerna": "^5.3.0","lint-staged": "^13.0.3",@@ -2703,14 +2703,15 @@}},"node_modules/@eslint/eslintrc": {- "version": "1.3.0",+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz",+ "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==","devOptional": true,- "license": "MIT","dependencies": {"ajv": "^6.12.4","debug": "^4.3.2",- "espree": "^9.3.2",- "globals": "^13.15.0",+ "espree": "^9.4.0",+ "globals": "^13.19.0","ignore": "^5.2.0","import-fresh": "^3.2.1","js-yaml": "^4.1.0",@@ -2719,12 +2720,16 @@},"engines": {"node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"}},"node_modules/@eslint/eslintrc/node_modules/ajv": {"version": "6.12.6",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==","devOptional": true,- "license": "MIT","dependencies": {"fast-deep-equal": "^3.1.1","fast-json-stable-stringify": "^2.0.0",@@ -2738,8 +2743,9 @@},"node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": {"version": "0.4.1",- "devOptional": true,- "license": "MIT"+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",+ "devOptional": true},"node_modules/@gar/promisify": {"version": "1.1.3",@@ -2758,22 +2764,27 @@}},"node_modules/@humanwhocodes/config-array": {- "version": "0.10.4",+ "version": "0.11.8",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz",+ "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==","devOptional": true,- "license": "Apache-2.0","dependencies": {"@humanwhocodes/object-schema": "^1.2.1","debug": "^4.1.1",- "minimatch": "^3.0.4"+ "minimatch": "^3.0.5"},"engines": {"node": ">=10.10.0"}},- "node_modules/@humanwhocodes/gitignore-to-minimatch": {- "version": "1.0.2",+ "node_modules/@humanwhocodes/module-importer": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==","devOptional": true,- "license": "Apache-2.0",+ "engines": {+ "node": ">=12.22"+ },"funding": {"type": "github","url": "https://github.com/sponsors/nzakas"@@ -2781,8 +2792,9 @@},"node_modules/@humanwhocodes/object-schema": {"version": "1.2.1",- "devOptional": true,- "license": "BSD-3-Clause"+ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",+ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",+ "devOptional": true},"node_modules/@hutson/parse-repository-url": {"version": "3.0.2",@@ -4549,16 +4561,18 @@}},"node_modules/@microsoft/tsdoc": {- "version": "0.14.1",- "dev": true,- "license": "MIT"+ "version": "0.14.2",+ "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz",+ "integrity": "sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==",+ "dev": true},"node_modules/@microsoft/tsdoc-config": {- "version": "0.16.1",+ "version": "0.16.2",+ "resolved": "https://registry.npmjs.org/@microsoft/tsdoc-config/-/tsdoc-config-0.16.2.tgz",+ "integrity": "sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==","dev": true,- "license": "MIT","dependencies": {- "@microsoft/tsdoc": "0.14.1",+ "@microsoft/tsdoc": "0.14.2","ajv": "~6.12.6","jju": "~1.4.0","resolve": "~1.19.0"@@ -4566,8 +4580,9 @@},"node_modules/@microsoft/tsdoc-config/node_modules/ajv": {"version": "6.12.6",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==","dev": true,- "license": "MIT","dependencies": {"fast-deep-equal": "^3.1.1","fast-json-stable-stringify": "^2.0.0",@@ -4581,13 +4596,15 @@},"node_modules/@microsoft/tsdoc-config/node_modules/json-schema-traverse": {"version": "0.4.1",- "dev": true,- "license": "MIT"+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",+ "dev": true},"node_modules/@microsoft/tsdoc-config/node_modules/resolve": {"version": "1.19.0",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz",+ "integrity": "sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==","dev": true,- "license": "MIT","dependencies": {"is-core-module": "^2.1.0","path-parse": "^1.0.6"@@ -5814,6 +5831,12 @@"version": "0.16.2","license": "MIT"},+ "node_modules/@types/semver": {+ "version": "7.3.13",+ "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz",+ "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==",+ "dev": true+ },"node_modules/@types/serve-index": {"version": "1.9.1","license": "MIT",@@ -5874,16 +5897,18 @@}},"node_modules/@typescript-eslint/eslint-plugin": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.51.0.tgz",+ "integrity": "sha512-wcAwhEWm1RgNd7dxD/o+nnLW8oH+6RK1OGnmbmkj/GGoDPV1WWMVP0FXYQBivKHdwM1pwii3bt//RC62EriIUQ==","dev": true,- "license": "MIT","dependencies": {- "@typescript-eslint/scope-manager": "5.32.0",- "@typescript-eslint/type-utils": "5.32.0",- "@typescript-eslint/utils": "5.32.0",+ "@typescript-eslint/scope-manager": "5.51.0",+ "@typescript-eslint/type-utils": "5.51.0",+ "@typescript-eslint/utils": "5.51.0","debug": "^4.3.4",- "functional-red-black-tree": "^1.0.1",+ "grapheme-splitter": "^1.0.4","ignore": "^5.2.0",+ "natural-compare-lite": "^1.4.0","regexpp": "^3.2.0","semver": "^7.3.7","tsutils": "^3.21.0"@@ -5906,13 +5931,14 @@}},"node_modules/@typescript-eslint/parser": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.51.0.tgz",+ "integrity": "sha512-fEV0R9gGmfpDeRzJXn+fGQKcl0inIeYobmmUWijZh9zA7bxJ8clPhV9up2ZQzATxAiFAECqPQyMDB4o4B81AaA==","dev": true,- "license": "BSD-2-Clause","dependencies": {- "@typescript-eslint/scope-manager": "5.32.0",- "@typescript-eslint/types": "5.32.0",- "@typescript-eslint/typescript-estree": "5.32.0",+ "@typescript-eslint/scope-manager": "5.51.0",+ "@typescript-eslint/types": "5.51.0",+ "@typescript-eslint/typescript-estree": "5.51.0","debug": "^4.3.4"},"engines": {@@ -5932,12 +5958,13 @@}},"node_modules/@typescript-eslint/scope-manager": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.51.0.tgz",+ "integrity": "sha512-gNpxRdlx5qw3yaHA0SFuTjW4rxeYhpHxt491PEcKF8Z6zpq0kMhe0Tolxt0qjlojS+/wArSDlj/LtE69xUJphQ==","dev": true,- "license": "MIT","dependencies": {- "@typescript-eslint/types": "5.32.0",- "@typescript-eslint/visitor-keys": "5.32.0"+ "@typescript-eslint/types": "5.51.0",+ "@typescript-eslint/visitor-keys": "5.51.0"},"engines": {"node": "^12.22.0 || ^14.17.0 || >=16.0.0"@@ -5948,11 +5975,13 @@}},"node_modules/@typescript-eslint/type-utils": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.51.0.tgz",+ "integrity": "sha512-QHC5KKyfV8sNSyHqfNa0UbTbJ6caB8uhcx2hYcWVvJAZYJRBo5HyyZfzMdRx8nvS+GyMg56fugMzzWnojREuQQ==","dev": true,- "license": "MIT","dependencies": {- "@typescript-eslint/utils": "5.32.0",+ "@typescript-eslint/typescript-estree": "5.51.0",+ "@typescript-eslint/utils": "5.51.0","debug": "^4.3.4","tsutils": "^3.21.0"},@@ -5973,9 +6002,10 @@}},"node_modules/@typescript-eslint/types": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.51.0.tgz",+ "integrity": "sha512-SqOn0ANn/v6hFn0kjvLwiDi4AzR++CBZz0NV5AnusT2/3y32jdc0G4woXPWHCumWtUXZKPAS27/9vziSsC9jnw==","dev": true,- "license": "MIT","engines": {"node": "^12.22.0 || ^14.17.0 || >=16.0.0"},@@ -5985,12 +6015,13 @@}},"node_modules/@typescript-eslint/typescript-estree": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.51.0.tgz",+ "integrity": "sha512-TSkNupHvNRkoH9FMA3w7TazVFcBPveAAmb7Sz+kArY6sLT86PA5Vx80cKlYmd8m3Ha2SwofM1KwraF24lM9FvA==","dev": true,- "license": "BSD-2-Clause","dependencies": {- "@typescript-eslint/types": "5.32.0",- "@typescript-eslint/visitor-keys": "5.32.0",+ "@typescript-eslint/types": "5.51.0",+ "@typescript-eslint/visitor-keys": "5.51.0","debug": "^4.3.4","globby": "^11.1.0","is-glob": "^4.0.3",@@ -6011,16 +6042,19 @@}},"node_modules/@typescript-eslint/utils": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.51.0.tgz",+ "integrity": "sha512-76qs+5KWcaatmwtwsDJvBk4H76RJQBFe+Gext0EfJdC3Vd2kpY2Pf//OHHzHp84Ciw0/rYoGTDnIAr3uWhhJYw==","dev": true,- "license": "MIT","dependencies": {"@types/json-schema": "^7.0.9",- "@typescript-eslint/scope-manager": "5.32.0",- "@typescript-eslint/types": "5.32.0",- "@typescript-eslint/typescript-estree": "5.32.0",+ "@types/semver": "^7.3.12",+ "@typescript-eslint/scope-manager": "5.51.0",+ "@typescript-eslint/types": "5.51.0",+ "@typescript-eslint/typescript-estree": "5.51.0","eslint-scope": "^5.1.1",- "eslint-utils": "^3.0.0"+ "eslint-utils": "^3.0.0",+ "semver": "^7.3.7"},"engines": {"node": "^12.22.0 || ^14.17.0 || >=16.0.0"@@ -6034,11 +6068,12 @@}},"node_modules/@typescript-eslint/visitor-keys": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.51.0.tgz",+ "integrity": "sha512-Oh2+eTdjHjOFjKA27sxESlA87YPSOJafGCR0md5oeMdh1ZcCfAGCIOL216uTBAkAIptvLIfKQhl7lHxMJet4GQ==","dev": true,- "license": "MIT","dependencies": {- "@typescript-eslint/types": "5.32.0",+ "@typescript-eslint/types": "5.51.0","eslint-visitor-keys": "^3.3.0"},"engines": {@@ -6240,8 +6275,9 @@},"node_modules/acorn-jsx": {"version": "5.3.2",+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==","devOptional": true,- "license": "MIT","peerDependencies": {"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"}@@ -9885,13 +9921,15 @@}},"node_modules/eslint": {- "version": "8.21.0",+ "version": "8.34.0",+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.34.0.tgz",+ "integrity": "sha512-1Z8iFsucw+7kSqXNZVslXS8Ioa4u2KM7GPwuKtkTFAqZ/cHMcEaR+1+Br0wLlot49cNxIiZk5wp8EAbPcYZxTg==","devOptional": true,- "license": "MIT","dependencies": {- "@eslint/eslintrc": "^1.3.0",- "@humanwhocodes/config-array": "^0.10.4",- "@humanwhocodes/gitignore-to-minimatch": "^1.0.2",+ "@eslint/eslintrc": "^1.4.1",+ "@humanwhocodes/config-array": "^0.11.8",+ "@humanwhocodes/module-importer": "^1.0.1",+ "@nodelib/fs.walk": "^1.2.8","ajv": "^6.10.0","chalk": "^4.0.0","cross-spawn": "^7.0.2",@@ -9901,21 +9939,21 @@"eslint-scope": "^7.1.1","eslint-utils": "^3.0.0","eslint-visitor-keys": "^3.3.0",- "espree": "^9.3.3",+ "espree": "^9.4.0","esquery": "^1.4.0","esutils": "^2.0.2","fast-deep-equal": "^3.1.3","file-entry-cache": "^6.0.1","find-up": "^5.0.0",- "functional-red-black-tree": "^1.0.1",- "glob-parent": "^6.0.1",- "globals": "^13.15.0",- "globby": "^11.1.0",+ "glob-parent": "^6.0.2",+ "globals": "^13.19.0","grapheme-splitter": "^1.0.4","ignore": "^5.2.0","import-fresh": "^3.0.0","imurmurhash": "^0.1.4","is-glob": "^4.0.0",+ "is-path-inside": "^3.0.3",+ "js-sdsl": "^4.1.4","js-yaml": "^4.1.0","json-stable-stringify-without-jsonify": "^1.0.1","levn": "^0.4.1",@@ -9926,8 +9964,7 @@"regexpp": "^3.2.0","strip-ansi": "^6.0.1","strip-json-comments": "^3.1.0",- "text-table": "^0.2.0",- "v8-compile-cache": "^2.0.3"+ "text-table": "^0.2.0"},"bin": {"eslint": "bin/eslint.js"@@ -9940,12 +9977,13 @@}},"node_modules/eslint-plugin-tsdoc": {- "version": "0.2.16",+ "version": "0.2.17",+ "resolved": "https://registry.npmjs.org/eslint-plugin-tsdoc/-/eslint-plugin-tsdoc-0.2.17.tgz",+ "integrity": "sha512-xRmVi7Zx44lOBuYqG8vzTXuL6IdGOeF9nHX17bjJ8+VE6fsxpdGem0/SBTmAwgYMKYB1WBkqRJVQ+n8GK041pA==","dev": true,- "license": "MIT","dependencies": {- "@microsoft/tsdoc": "0.14.1",- "@microsoft/tsdoc-config": "0.16.1"+ "@microsoft/tsdoc": "0.14.2",+ "@microsoft/tsdoc-config": "0.16.2"}},"node_modules/eslint-scope": {@@ -9986,8 +10024,9 @@},"node_modules/eslint-visitor-keys": {"version": "3.3.0",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz",+ "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==","devOptional": true,- "license": "Apache-2.0","engines": {"node": "^12.22.0 || ^14.17.0 || >=16.0.0"}@@ -10041,9 +10080,10 @@}},"node_modules/espree": {- "version": "9.3.3",+ "version": "9.4.1",+ "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz",+ "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==","devOptional": true,- "license": "BSD-2-Clause","dependencies": {"acorn": "^8.8.0","acorn-jsx": "^5.3.2",@@ -10822,11 +10862,6 @@"version": "1.1.1","license": "MIT"},- "node_modules/functional-red-black-tree": {- "version": "1.0.1",- "devOptional": true,- "license": "MIT"- },"node_modules/gauge": {"version": "4.0.4","dev": true,@@ -11149,9 +11184,10 @@}},"node_modules/globals": {- "version": "13.17.0",+ "version": "13.20.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz",+ "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==","devOptional": true,- "license": "MIT","dependencies": {"type-fest": "^0.20.2"},@@ -13045,8 +13081,9 @@},"node_modules/jju": {"version": "1.4.0",- "dev": true,- "license": "MIT"+ "resolved": "https://registry.npmjs.org/jju/-/jju-1.4.0.tgz",+ "integrity": "sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==",+ "dev": true},"node_modules/joi": {"version": "17.6.0",@@ -13059,6 +13096,16 @@"@sideway/pinpoint": "^2.0.0"}},+ "node_modules/js-sdsl": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz",+ "integrity": "sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==",+ "devOptional": true,+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/js-sdsl"+ }+ },"node_modules/js-tokens": {"version": "4.0.0","license": "MIT"@@ -14593,6 +14640,12 @@"version": "1.4.0","license": "MIT"},+ "node_modules/natural-compare-lite": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz",+ "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==",+ "dev": true+ },"node_modules/negotiator": {"version": "0.6.3","license": "MIT",@@ -19950,7 +20003,7 @@},"node_modules/v8-compile-cache": {"version": "2.3.0",- "devOptional": true,+ "dev": true,"license": "MIT"},"node_modules/v8-compile-cache-lib": {@@ -22778,13 +22831,15 @@}},"@eslint/eslintrc": {- "version": "1.3.0",+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz",+ "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==","devOptional": true,"requires": {"ajv": "^6.12.4","debug": "^4.3.2",- "espree": "^9.3.2",- "globals": "^13.15.0",+ "espree": "^9.4.0",+ "globals": "^13.19.0","ignore": "^5.2.0","import-fresh": "^3.2.1","js-yaml": "^4.1.0",@@ -22794,6 +22849,8 @@"dependencies": {"ajv": {"version": "6.12.6",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==","devOptional": true,"requires": {"fast-deep-equal": "^3.1.1",@@ -22804,6 +22861,8 @@},"json-schema-traverse": {"version": "0.4.1",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==","devOptional": true}}@@ -22822,20 +22881,26 @@}},"@humanwhocodes/config-array": {- "version": "0.10.4",+ "version": "0.11.8",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz",+ "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==","devOptional": true,"requires": {"@humanwhocodes/object-schema": "^1.2.1","debug": "^4.1.1",- "minimatch": "^3.0.4"+ "minimatch": "^3.0.5"}},- "@humanwhocodes/gitignore-to-minimatch": {- "version": "1.0.2",+ "@humanwhocodes/module-importer": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==","devOptional": true},"@humanwhocodes/object-schema": {"version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",+ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==","devOptional": true},"@hutson/parse-repository-url": {@@ -24139,14 +24204,18 @@"version": "1.6.22"},"@microsoft/tsdoc": {- "version": "0.14.1",+ "version": "0.14.2",+ "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz",+ "integrity": "sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==","dev": true},"@microsoft/tsdoc-config": {- "version": "0.16.1",+ "version": "0.16.2",+ "resolved": "https://registry.npmjs.org/@microsoft/tsdoc-config/-/tsdoc-config-0.16.2.tgz",+ "integrity": "sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==","dev": true,"requires": {- "@microsoft/tsdoc": "0.14.1",+ "@microsoft/tsdoc": "0.14.2","ajv": "~6.12.6","jju": "~1.4.0","resolve": "~1.19.0"@@ -24154,6 +24223,8 @@"dependencies": {"ajv": {"version": "6.12.6",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==","dev": true,"requires": {"fast-deep-equal": "^3.1.1",@@ -24164,10 +24235,14 @@},"json-schema-traverse": {"version": "0.4.1",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==","dev": true},"resolve": {"version": "1.19.0",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz",+ "integrity": "sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==","dev": true,"requires": {"is-core-module": "^2.1.0",@@ -24182,7 +24257,7 @@"@motion-canvas/core": "^2.2.0","@motion-canvas/internal": "0.0.0","code-fns": "^0.8.2",- "mathjax-full": "*"+ "mathjax-full": "^3.2.2"}},"@motion-canvas/core": {@@ -25087,6 +25162,12 @@"@types/scheduler": {"version": "0.16.2"},+ "@types/semver": {+ "version": "7.3.13",+ "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz",+ "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==",+ "dev": true+ },"@types/serve-index": {"version": "1.9.1","requires": {@@ -25138,57 +25219,71 @@}},"@typescript-eslint/eslint-plugin": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.51.0.tgz",+ "integrity": "sha512-wcAwhEWm1RgNd7dxD/o+nnLW8oH+6RK1OGnmbmkj/GGoDPV1WWMVP0FXYQBivKHdwM1pwii3bt//RC62EriIUQ==","dev": true,"requires": {- "@typescript-eslint/scope-manager": "5.32.0",- "@typescript-eslint/type-utils": "5.32.0",- "@typescript-eslint/utils": "5.32.0",+ "@typescript-eslint/scope-manager": "5.51.0",+ "@typescript-eslint/type-utils": "5.51.0",+ "@typescript-eslint/utils": "5.51.0","debug": "^4.3.4",- "functional-red-black-tree": "^1.0.1",+ "grapheme-splitter": "^1.0.4","ignore": "^5.2.0",+ "natural-compare-lite": "^1.4.0","regexpp": "^3.2.0","semver": "^7.3.7","tsutils": "^3.21.0"}},"@typescript-eslint/parser": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.51.0.tgz",+ "integrity": "sha512-fEV0R9gGmfpDeRzJXn+fGQKcl0inIeYobmmUWijZh9zA7bxJ8clPhV9up2ZQzATxAiFAECqPQyMDB4o4B81AaA==","dev": true,"requires": {- "@typescript-eslint/scope-manager": "5.32.0",- "@typescript-eslint/types": "5.32.0",- "@typescript-eslint/typescript-estree": "5.32.0",+ "@typescript-eslint/scope-manager": "5.51.0",+ "@typescript-eslint/types": "5.51.0",+ "@typescript-eslint/typescript-estree": "5.51.0","debug": "^4.3.4"}},"@typescript-eslint/scope-manager": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.51.0.tgz",+ "integrity": "sha512-gNpxRdlx5qw3yaHA0SFuTjW4rxeYhpHxt491PEcKF8Z6zpq0kMhe0Tolxt0qjlojS+/wArSDlj/LtE69xUJphQ==","dev": true,"requires": {- "@typescript-eslint/types": "5.32.0",- "@typescript-eslint/visitor-keys": "5.32.0"+ "@typescript-eslint/types": "5.51.0",+ "@typescript-eslint/visitor-keys": "5.51.0"}},"@typescript-eslint/type-utils": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.51.0.tgz",+ "integrity": "sha512-QHC5KKyfV8sNSyHqfNa0UbTbJ6caB8uhcx2hYcWVvJAZYJRBo5HyyZfzMdRx8nvS+GyMg56fugMzzWnojREuQQ==","dev": true,"requires": {- "@typescript-eslint/utils": "5.32.0",+ "@typescript-eslint/typescript-estree": "5.51.0",+ "@typescript-eslint/utils": "5.51.0","debug": "^4.3.4","tsutils": "^3.21.0"}},"@typescript-eslint/types": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.51.0.tgz",+ "integrity": "sha512-SqOn0ANn/v6hFn0kjvLwiDi4AzR++CBZz0NV5AnusT2/3y32jdc0G4woXPWHCumWtUXZKPAS27/9vziSsC9jnw==","dev": true},"@typescript-eslint/typescript-estree": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.51.0.tgz",+ "integrity": "sha512-TSkNupHvNRkoH9FMA3w7TazVFcBPveAAmb7Sz+kArY6sLT86PA5Vx80cKlYmd8m3Ha2SwofM1KwraF24lM9FvA==","dev": true,"requires": {- "@typescript-eslint/types": "5.32.0",- "@typescript-eslint/visitor-keys": "5.32.0",+ "@typescript-eslint/types": "5.51.0",+ "@typescript-eslint/visitor-keys": "5.51.0","debug": "^4.3.4","globby": "^11.1.0","is-glob": "^4.0.3",@@ -25197,22 +25292,28 @@}},"@typescript-eslint/utils": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.51.0.tgz",+ "integrity": "sha512-76qs+5KWcaatmwtwsDJvBk4H76RJQBFe+Gext0EfJdC3Vd2kpY2Pf//OHHzHp84Ciw0/rYoGTDnIAr3uWhhJYw==","dev": true,"requires": {"@types/json-schema": "^7.0.9",- "@typescript-eslint/scope-manager": "5.32.0",- "@typescript-eslint/types": "5.32.0",- "@typescript-eslint/typescript-estree": "5.32.0",+ "@types/semver": "^7.3.12",+ "@typescript-eslint/scope-manager": "5.51.0",+ "@typescript-eslint/types": "5.51.0",+ "@typescript-eslint/typescript-estree": "5.51.0","eslint-scope": "^5.1.1",- "eslint-utils": "^3.0.0"+ "eslint-utils": "^3.0.0",+ "semver": "^7.3.7"}},"@typescript-eslint/visitor-keys": {- "version": "5.32.0",+ "version": "5.51.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.51.0.tgz",+ "integrity": "sha512-Oh2+eTdjHjOFjKA27sxESlA87YPSOJafGCR0md5oeMdh1ZcCfAGCIOL216uTBAkAIptvLIfKQhl7lHxMJet4GQ==","dev": true,"requires": {- "@typescript-eslint/types": "5.32.0",+ "@typescript-eslint/types": "5.51.0","eslint-visitor-keys": "^3.3.0"}},@@ -25369,6 +25470,8 @@},"acorn-jsx": {"version": "5.3.2",+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==","devOptional": true,"requires": {}},@@ -27558,12 +27661,15 @@}},"eslint": {- "version": "8.21.0",+ "version": "8.34.0",+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.34.0.tgz",+ "integrity": "sha512-1Z8iFsucw+7kSqXNZVslXS8Ioa4u2KM7GPwuKtkTFAqZ/cHMcEaR+1+Br0wLlot49cNxIiZk5wp8EAbPcYZxTg==","devOptional": true,"requires": {- "@eslint/eslintrc": "^1.3.0",- "@humanwhocodes/config-array": "^0.10.4",- "@humanwhocodes/gitignore-to-minimatch": "^1.0.2",+ "@eslint/eslintrc": "^1.4.1",+ "@humanwhocodes/config-array": "^0.11.8",+ "@humanwhocodes/module-importer": "^1.0.1",+ "@nodelib/fs.walk": "^1.2.8","ajv": "^6.10.0","chalk": "^4.0.0","cross-spawn": "^7.0.2",@@ -27573,21 +27679,21 @@"eslint-scope": "^7.1.1","eslint-utils": "^3.0.0","eslint-visitor-keys": "^3.3.0",- "espree": "^9.3.3",+ "espree": "^9.4.0","esquery": "^1.4.0","esutils": "^2.0.2","fast-deep-equal": "^3.1.3","file-entry-cache": "^6.0.1","find-up": "^5.0.0",- "functional-red-black-tree": "^1.0.1",- "glob-parent": "^6.0.1",- "globals": "^13.15.0",- "globby": "^11.1.0",+ "glob-parent": "^6.0.2",+ "globals": "^13.19.0","grapheme-splitter": "^1.0.4","ignore": "^5.2.0","import-fresh": "^3.0.0","imurmurhash": "^0.1.4","is-glob": "^4.0.0",+ "is-path-inside": "^3.0.3",+ "js-sdsl": "^4.1.4","js-yaml": "^4.1.0","json-stable-stringify-without-jsonify": "^1.0.1","levn": "^0.4.1",@@ -27598,8 +27704,7 @@"regexpp": "^3.2.0","strip-ansi": "^6.0.1","strip-json-comments": "^3.1.0",- "text-table": "^0.2.0",- "v8-compile-cache": "^2.0.3"+ "text-table": "^0.2.0"},"dependencies": {"ajv": {@@ -27631,11 +27736,13 @@}},"eslint-plugin-tsdoc": {- "version": "0.2.16",+ "version": "0.2.17",+ "resolved": "https://registry.npmjs.org/eslint-plugin-tsdoc/-/eslint-plugin-tsdoc-0.2.17.tgz",+ "integrity": "sha512-xRmVi7Zx44lOBuYqG8vzTXuL6IdGOeF9nHX17bjJ8+VE6fsxpdGem0/SBTmAwgYMKYB1WBkqRJVQ+n8GK041pA==","dev": true,"requires": {- "@microsoft/tsdoc": "0.14.1",- "@microsoft/tsdoc-config": "0.16.1"+ "@microsoft/tsdoc": "0.14.2",+ "@microsoft/tsdoc-config": "0.16.2"}},"eslint-scope": {@@ -27660,6 +27767,8 @@},"eslint-visitor-keys": {"version": "3.3.0",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz",+ "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==","devOptional": true},"esm": {@@ -27668,7 +27777,9 @@"integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA=="},"espree": {- "version": "9.3.3",+ "version": "9.4.1",+ "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz",+ "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==","devOptional": true,"requires": {"acorn": "^8.8.0",@@ -28154,10 +28265,6 @@"function-bind": {"version": "1.1.1"},- "functional-red-black-tree": {- "version": "1.0.1",- "devOptional": true- },"gauge": {"version": "4.0.4","dev": true,@@ -28373,7 +28480,9 @@}},"globals": {- "version": "13.17.0",+ "version": "13.20.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz",+ "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==","devOptional": true,"requires": {"type-fest": "^0.20.2"@@ -29559,6 +29668,8 @@},"jju": {"version": "1.4.0",+ "resolved": "https://registry.npmjs.org/jju/-/jju-1.4.0.tgz",+ "integrity": "sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==","dev": true},"joi": {@@ -29571,6 +29682,12 @@"@sideway/pinpoint": "^2.0.0"}},+ "js-sdsl": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz",+ "integrity": "sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==",+ "devOptional": true+ },"js-tokens": {"version": "4.0.0"},@@ -30528,6 +30645,12 @@"natural-compare": {"version": "1.4.0"},+ "natural-compare-lite": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz",+ "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==",+ "dev": true+ },"negotiator": {"version": "0.6.3"},@@ -33794,7 +33917,7 @@},"v8-compile-cache": {"version": "2.3.0",- "devOptional": true+ "dev": true},"v8-compile-cache-lib": {"version": "3.0.1",diff --git a/package.json b/package.jsonindex 68e79007..95dc3025 100644--- a/package.json+++ b/package.json@@ -25,16 +25,18 @@"vite-plugin:build": "npm run build -w packages/vite-plugin","vite-plugin:watch": "npm run watch -w packages/vite-plugin","e2e:test": "npm run test -w packages/e2e",- "eslint": "eslint --fix \"**/*.ts?(x)\"",- "prettier": "prettier --write ."+ "eslint": "eslint \"**/*.ts?(x)\"",+ "eslint:fix": "eslint --fix \"**/*.ts?(x)\"",+ "prettier": "prettier --check .",+ "prettier:fix": "prettier --write ."},"devDependencies": {"@commitlint/cli": "^17.0.3","@commitlint/config-conventional": "^17.0.3",- "@typescript-eslint/eslint-plugin": "^5.32.0",- "@typescript-eslint/parser": "^5.32.0",- "eslint": "^8.21.0",- "eslint-plugin-tsdoc": "^0.2.16",+ "@typescript-eslint/eslint-plugin": "^5.51.0",+ "@typescript-eslint/parser": "^5.51.0",+ "eslint": "^8.34.0",+ "eslint-plugin-tsdoc": "^0.2.17","husky": "^8.0.0","lerna": "^5.3.0","lint-staged": "^13.0.3",diff --git a/packages/2d/src/components/Node.ts b/packages/2d/src/components/Node.tsindex 3bf757cd..4881a439 100644--- a/packages/2d/src/components/Node.ts+++ b/packages/2d/src/components/Node.ts@@ -33,12 +33,10 @@ import {Filter} from '../partials';import {filtersSignal, FiltersSignal} from '../decorators/filtersSignal';import {createSignal,- Signal,DependencyContext,SignalValue,SimpleSignal,isReactive,- Computed,} from '@motion-canvas/core/lib/signals';export interface NodeProps {diff --git a/packages/core/src/utils/debug.test.ts b/packages/core/src/utils/debug.test.tsindex bc64504b..4a4d4f56 100644--- a/packages/core/src/utils/debug.test.ts+++ b/packages/core/src/utils/debug.test.ts@@ -1,8 +1,7 @@import {describe, test, beforeEach, expect, vi} from 'vitest';import {setProject, useLogger, debug} from '../utils';-import {Project, ProjectMetadata} from '../Project';-import {Meta} from '../Meta';-import {LogLevel, LogPayload} from '../Logger';+import {Project} from '../Project';+import {LogLevel} from '../Logger';import {Rect, Vector2} from '../types';describe('debug()', () => {diff --git a/packages/docs/docs/advanced/_category_.yml b/packages/docs/docs/advanced/_category_.ymlindex 2d10cae2..b03b99cc 100644--- a/packages/docs/docs/advanced/_category_.yml+++ b/packages/docs/docs/advanced/_category_.yml@@ -1,4 +1,4 @@label: Advancedposition: 3link:- type: generated-index\ No newline at end of file+ type: generated-indexdiff --git a/packages/docs/docs/advanced/custom-font.mdx b/packages/docs/docs/advanced/custom-font.mdxindex 38df9e46..5c252e96 100644--- a/packages/docs/docs/advanced/custom-font.mdx+++ b/packages/docs/docs/advanced/custom-font.mdx@@ -1,4 +1,5 @@# Custom font+## Loading fonts from the webTo use a font from hosters like Google Fonts. First make a css file under `src`@@ -26,19 +27,18 @@ import {makeProject} from '@motion-canvas/core/lib';import example from './scenes/example?scene';-import "./global.css"; // <- import the css+import './global.css'; // <- import the cssexport default makeProject({scenes: [example],background: '#141414',});-```Now you can reference the fonts in the `fontFamily` property in this project.```tsx-<Text fontFamily={"Fira Code"}>Fira Code</Text>+<Text fontFamily={'Fira Code'}>Fira Code</Text>```## Loading fonts from local@@ -57,17 +57,19 @@ Inside `global.css`, import the font using `@font-face`.```css@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap');-@font-face{- font-family: 'Cascadia Code';- src: local('Cascadia Code'), url(public/fonts/CASCADIACODE.TTF) format('truetype');+@font-face {+ font-family: 'Cascadia Code';+ src: local('Cascadia Code'),+ url(public/fonts/CASCADIACODE.TTF) format('truetype');}```-Notice the name of the font will match the string in `@font-face/font-family` from the css.+Notice the name of the font will match the string in `@font-face/font-family`+from the css.```tsx-<Layout direction={"column"} alignItems={"center"} layout>- <Text fontFamily={"Fira Code"}>Fira Code</Text>- <Text fontFamily={"Cascadia Code"}>Cascadia Code</Text>+<Layout direction={'column'} alignItems={'center'} layout>+ <Text fontFamily={'Fira Code'}>Fira Code</Text>+ <Text fontFamily={'Cascadia Code'}>Cascadia Code</Text></Layout>```diff --git a/packages/docs/docs/advanced/random.mdx b/packages/docs/docs/advanced/random.mdxindex c0375c4d..b74f7e22 100644--- a/packages/docs/docs/advanced/random.mdx+++ b/packages/docs/docs/advanced/random.mdx@@ -12,8 +12,8 @@ import source from '!!raw-loader!@motion-canvas/examples/src/scenes/random';Randomly generated values can be used to create a sense of variety andunpredictability in your animation. In Motion Canvas, it's achieved using the-[`useRandom()`](/api/core/utils#useRandom) function.-It returns a random number generator (RNG) for the current scene:+[`useRandom()`](/api/core/utils#useRandom) function. It returns a random number+generator (RNG) for the current scene:```tsimport {useRandom} from '@motion-canvas/core/lib/utils';@@ -22,9 +22,9 @@ const random = useRandom();const integer = random.nextInt(0, 10);```-In this case, calling `nextInt()` will return an integer in the range from-0 to 10 (exclusive). Check the [`Random` api](/api/core/scenes/Random) to see-all available methods.+In this case, calling `nextInt()` will return an integer in the range from 0 to+10 (exclusive). Check the [`Random` api](/api/core/scenes/Random) to see all+available methods.Unlike `Math.random()`, `useRandom()` is completely reproducible - each time theanimation is played the generated values will be exactly the same. The seed used@@ -37,7 +37,7 @@ your needs:const random = useRandom(123);```-The animation at the top of this page uses a random number generator to vary-the height of rectangles and make them look like a sound-wave:+The animation at the top of this page uses a random number generator to vary the+height of rectangles and make them look like a sound-wave:-<CodeBlock language="tsx">{source}</CodeBlock>\ No newline at end of file+<CodeBlock language="tsx">{source}</CodeBlock>diff --git a/packages/docs/docs/advanced/spawners.mdx b/packages/docs/docs/advanced/spawners.mdxindex 1e217dcb..c65c743e 100644--- a/packages/docs/docs/advanced/spawners.mdx+++ b/packages/docs/docs/advanced/spawners.mdx@@ -66,19 +66,23 @@ const layout = createRef<Layout>();view.add(<Layout layout ref={layout} spawner={() => pool.slice(0, count())} />);```-Apart from the spawner function, the pool should never be accessed directly.-Use the `children()` signal of the parent object to get references to the spawned objects:+Apart from the spawner function, the pool should never be accessed directly. Use+the `children()` signal of the parent object to get references to the spawned+objects:```tsx// ... continuing from above ...let spawnedCircles = layout().children() as Circle[];-yield* all(...spawnedCircles.map(function* (circle) {- yield* circle.scale(1.5, 1).to(1, 1);-}));+yield *+ all(+ ...spawnedCircles.map(function* (circle) {+ yield* circle.scale(1.5, 1).to(1, 1);+ }),+ );```-Be aware that the references returned by a call to `children()` may be invalidated-when the number of spawned objects changes, and accessing the invalidated objects-may cause undefined behavior. Try not to save references to spawned objects for too long,-and use `children()` wherever possible to get the updated list of spawned objects.-+Be aware that the references returned by a call to `children()` may be+invalidated when the number of spawned objects changes, and accessing the+invalidated objects may cause undefined behavior. Try not to save references to+spawned objects for too long, and use `children()` wherever possible to get the+updated list of spawned objects.diff --git a/packages/docs/docs/getting-started/_category_.yml b/packages/docs/docs/getting-started/_category_.ymlindex 56e9ecb0..a9ec993a 100644--- a/packages/docs/docs/getting-started/_category_.yml+++ b/packages/docs/docs/getting-started/_category_.yml@@ -2,4 +2,4 @@ label: Getting Startedposition: 2collapsed: falselink:- type: generated-index\ No newline at end of file+ type: generated-indexdiff --git a/packages/docs/docs/getting-started/media.mdx b/packages/docs/docs/getting-started/media.mdxindex b814d5b8..7d77345c 100644--- a/packages/docs/docs/getting-started/media.mdx+++ b/packages/docs/docs/getting-started/media.mdx@@ -90,8 +90,8 @@ export default makeScene2D(function* (view) {```Images can also be animated like every other component in Motion Canvas. For-this, we need to create a [`Reference`](/docs/references) and pass that to-the [`Image`](/api/2d/components/Image):+this, we need to create a [`Reference`](/docs/references) and pass that to the+[`Image`](/api/2d/components/Image):```tsx// ...diff --git a/packages/docs/docs/getting-started/nodes.mdx b/packages/docs/docs/getting-started/nodes.mdxindex e7fde0d8..f2343ca1 100644--- a/packages/docs/docs/getting-started/nodes.mdx+++ b/packages/docs/docs/getting-started/nodes.mdx@@ -2,6 +2,7 @@sidebar_position: 10slug: /nodes---+import AnimationPlayer from '@site/src/components/AnimationPlayer';import CodeBlock from '@theme/CodeBlock';import texSource from '!!raw-loader!@motion-canvas/examples/src/scenes/tex';@@ -15,10 +16,11 @@ import texSource from '!!raw-loader!@motion-canvas/examples/src/scenes/tex';<AnimationPlayer small name="tex" />### A note on tweening LaTeX+Because we use a canvas renderer, we're rendering the LaTeX to an image instead-using a full graphics backend to render the TeX. This means that for all-intents and purposes, LaTeX should be treated as if it were an image rather-than more flexible TeX rendering like you may see in other software.+using a full graphics backend to render the TeX. This means that for all intents+and purposes, LaTeX should be treated as if it were an image rather than more+flexible TeX rendering like you may see in other software.-In other words, opacity, position, size, etc. should be fine to tween, but we-do not recommend tweening the `tex` signal.\ No newline at end of file+In other words, opacity, position, size, etc. should be fine to tween, but we do+not recommend tweening the `tex` signal.diff --git a/packages/docs/docs/getting-started/quickstart.mdx b/packages/docs/docs/getting-started/quickstart.mdxindex 1dfb40d9..78941bd1 100644--- a/packages/docs/docs/getting-started/quickstart.mdx+++ b/packages/docs/docs/getting-started/quickstart.mdx@@ -75,22 +75,25 @@ file with the following snippet.</CodeBlock>Now save the file. Any changes you make are automatically picked up and-reflected in the preview.+reflected in the preview.:::caution Vite on Windows Subsystem for Linux (WSL) 2-When running Vite on WSL2, file system watching does not work if a file is edited by Windows applications.+When running Vite on WSL2, file system watching does not work if a file is+edited by Windows applications.-To fix this, move the project folder into the WSL2 file system and use WSL2 applications to edit files.-Accessing the Windows file system from WSL2 is slow, so this will improve performance.+To fix this, move the project folder into the WSL2 file system and use WSL2+applications to edit files.+Accessing the Windows file system from WSL2 is slow, so this will improve+performance.-For more information view the [**Vite Docs**](https://vitejs.dev/config/server-options.html#server-watch).+For more information view the+[**Vite Docs**](https://vitejs.dev/config/server-options.html#server-watch).:::-You should see a gray circle in the preview pane at-the top right of the web application. Press the play button to see the circle-animate across the screen.+You should see a gray circle in the preview pane at the top right of the web+application. Press the play button to see the circle animate across the screen.<AnimationPlayer small name="quickstart" />diff --git a/packages/docs/docs/getting-started/signals.mdx b/packages/docs/docs/getting-started/signals.mdxindex 99ea1483..d40a862f 100644--- a/packages/docs/docs/getting-started/signals.mdx+++ b/packages/docs/docs/getting-started/signals.mdx@@ -9,13 +9,15 @@ import signalSource from '!!raw-loader!@motion-canvas/examples/src/scenes/node-s# Signals-Signals represent a value that may change over time.-They can be used to define dependencies between the state of the animation.-This way, when a value changes, all other values that depend on it get automatically updated.+Signals represent a value that may change over time. They can be used to define+dependencies between the state of the animation. This way, when a value changes,+all other values that depend on it get automatically updated.## Overview-Signals for primitive types are created using the [`createSignal()`](/api/core/signals#createSignal) function, where the first argument specifies their initial value:+Signals for primitive types are created using the+[`createSignal()`](/api/core/signals#createSignal) function, where the first+argument specifies their initial value:```tsimport {createSignal} from '@motion-canvas/core/lib/signals';@@ -23,7 +25,8 @@ import {createSignal} from '@motion-canvas/core/lib/signals';const signal = createSignal(0);```-Additionally, each complex type has a static `createSignal()` method that can be used to create a signal for said type:+Additionally, each complex type has a static `createSignal()` method that can be+used to create a signal for said type:```tsimport {Vector2} from '@motion-canvas/core/lib/types';@@ -39,8 +42,8 @@ const circle = <Circle />;const signal = circle.fill;```-Once created, signals can be invoked to perform one of the three possible actions-(The action is chosen based on the number of arguments):+Once created, signals can be invoked to perform one of the three possible+actions (The action is chosen based on the number of arguments):1. retrieve the value:```ts@@ -55,7 +58,8 @@ Once created, signals can be invoked to perform one of the three possible actionyield * signal(2, 0.3);```-Instead of the actual value, a signal can be provided with a function that computes the value dynamically. Consider the following example:+Instead of the actual value, a signal can be provided with a function that+computes the value dynamically. Consider the following example:```tsconst radius = createSignal(1);@@ -70,7 +74,8 @@ Here, the `area` signal uses the `radius` signal to compute its value.## Explanation-To better understand how signals work, let's modify the example from before to see when exactly the area is calculated:+To better understand how signals work, let's modify the example from before to+see when exactly the area is calculated:```tsconst radius = createSignal(1);@@ -92,27 +97,41 @@ This demonstrates three important aspects of signals:### Laziness-Signals are only calculated when their value is requested. The first `"area recalculated!"` message is logged to console only after `area()` is called.+Signals are only calculated when their value is requested. The first+`"area recalculated!"` message is logged to console only after `area()` is+called.### Caching-Once the signal is calculated, its value is saved and then returned during subsequent calls to `area()`. That's why nothing is logged to the console during the second call. This aspect of signals makes them perfect for caching computationally heavy operations. In fact, Motion Canvas uses signals internally to cache things such as matrices.+Once the signal is calculated, its value is saved and then returned during+subsequent calls to `area()`. That's why nothing is logged to the console during+the second call. This aspect of signals makes them perfect for caching+computationally heavy operations. In fact, Motion Canvas uses signals internally+to cache things such as matrices.### Dependency tracking-The `area` signal keeps track of other signals it depends on. When we change the `radius` signal, the `area` signal is notified about that. But it doesn't get recalculated immediately - laziness is still at play. We can modify the radius however many times we want, but the `area` will be recalculated only once its value is requested again by calling `area()`.+The `area` signal keeps track of other signals it depends on. When we change the+`radius` signal, the `area` signal is notified about that. But it doesn't get+recalculated immediately - laziness is still at play. We can modify the radius+however many times we want, but the `area` will be recalculated only once its+value is requested again by calling `area()`.## Complex example-We can use the fact that properties of nodes are represented by signals to construct scenes that automatically update when the data changes. Following the previous example, let's create a visualisation for the area of the circle:+We can use the fact that properties of nodes are represented by signals to+construct scenes that automatically update when the data changes. Following the+previous example, let's create a visualisation for the area of the circle:<AnimationPlayer small name="node-signal" />-Below you'll find the code used to create this animation. We highlighted all the places where signals are used:+Below you'll find the code used to create this animation. We highlighted all the+places where signals are used:<CodeBlock language="tsx">{signalSource}</CodeBlock>-With this setup, all we need to do is animate the `radius` signal, and the rest of the scene will adjust accordingly:+With this setup, all we need to do is animate the `radius` signal, and the rest+of the scene will adjust accordingly:```tsyield * radius(4, 2).to(3, 2);diff --git a/packages/docs/docs/getting-started/time-events.mdx b/packages/docs/docs/getting-started/time-events.mdxindex f2c98d29..e53cf3f7 100644--- a/packages/docs/docs/getting-started/time-events.mdx+++ b/packages/docs/docs/getting-started/time-events.mdx@@ -51,11 +51,11 @@ happening.## Controlling animation duration-Aside from specifying _when_ something should happen, Time Events can also be used to-control _how long_ something should last. You can use the-[`useDuration`](/api/core/utils#useDuration) function to retrieve the duration of an event-and use it in your animation:+Aside from specifying _when_ something should happen, Time Events can also be+used to control _how long_ something should last. You can use the+[`useDuration`](/api/core/utils#useDuration) function to retrieve the duration+of an event and use it in your animation:```ts-yield* circle().scale(2, useDuration('event'));-```\ No newline at end of file+yield * circle().scale(2, useDuration('event'));+```diff --git a/packages/docs/docs/getting-started/tweening.mdx b/packages/docs/docs/getting-started/tweening.mdxindex 5f5506a2..cb1c1ebe 100644--- a/packages/docs/docs/getting-started/tweening.mdx+++ b/packages/docs/docs/getting-started/tweening.mdx@@ -9,9 +9,8 @@ import linearSource from '!!raw-loader!@motion-canvas/examples/src/scenes/tweeni# Tweening-Tweens are one of the fundamental building blocks of animation.-They are a special type of generators that animate between two values-over given time.+Tweens are one of the fundamental building blocks of animation. They are a+special type of generators that animate between two values over given time.## `tween` function@@ -20,61 +19,60 @@ The simplest way to create a tween is via the<CodeBlock language="tsx">{linearSource}</CodeBlock>-In the example above, we animate the x coordinate of our circle-from `-300` to `300` over a span of `2` second.+In the example above, we animate the x coordinate of our circle from `-300` to+`300` over a span of `2` second.-The [`tween`](/api/core/tweening#tween) function takes two parameters.-The first one specifies the tween duration in seconds. The second is-a callback function that will be called each frame the tween takes-place. The `value` parameter it recieves is a number ranging from `0`-to `1`, informing us about the progress of the tween. We can use it to-calculate the values that our tween animates. In the case of our circle,-we use the `map` function to map the `value` range from `[0, 1]` to-`[-300, 300]` and set it as the `x` coordinate:+The [`tween`](/api/core/tweening#tween) function takes two parameters. The first+one specifies the tween duration in seconds. The second is a callback function+that will be called each frame the tween takes place. The `value` parameter it+recieves is a number ranging from `0` to `1`, informing us about the progress of+the tween. We can use it to calculate the values that our tween animates. In the+case of our circle, we use the `map` function to map the `value` range from+`[0, 1]` to `[-300, 300]` and set it as the `x` coordinate:<AnimationPlayer small name="tweening-linear" />## Timing functions-At the moment, our animation feels a bit unnatural. The speed with which-the `value` parameter changes is constant, which in turn makes the circle-move with constant speed. In real life, however, objects have inertia --they take time to speed up and slow down. We can simulate this behavior-with [timing functions](/api/core/tweening).+At the moment, our animation feels a bit unnatural. The speed with which the+`value` parameter changes is constant, which in turn makes the circle move with+constant speed. In real life, however, objects have inertia - they take time to+speed up and slow down. We can simulate this behavior with+[timing functions](/api/core/tweening).A timing function takes a number in the range `[0, 1]` and returns another-number in the same range but with a modified rate of change.-Motion Canvas provides all-[the most popular timing functions](https://easings.net/) (sometimes called-easing functions) but since it's a normal JavaScript function you can create-your own.+number in the same range but with a modified rate of change. Motion Canvas+provides all [the most popular timing functions](https://easings.net/)+(sometimes called easing functions) but since it's a normal JavaScript function+you can create your own.-Let's use the [`easeInOutCubic`](/api/core/tweening#easeInOutCubic) function-to fix our animation:+Let's use the [`easeInOutCubic`](/api/core/tweening#easeInOutCubic) function to+fix our animation:```ts-yield* tween(2, value => {- circle().position.x(map(-300, 300, easeInOutCubic(value)));-});+yield *+ tween(2, value => {+ circle().position.x(map(-300, 300, easeInOutCubic(value)));+ });```<AnimationPlayer small name="tweening-cubic" />`easeInOut` means that the object will speed up at the start (`in`) and slow-down at the end (`Out`). `Cubic` denotes the mathematical function used --in this case it's a cubic equation. Knowing that, a function called-`easeOutQuad` would make the object start with full speed and then slow down-at the end using a quadratic equation.+down at the end (`Out`). `Cubic` denotes the mathematical function used - in+this case it's a cubic equation. Knowing that, a function called `easeOutQuad`+would make the object start with full speed and then slow down at the end using+a quadratic equation.-The effects of a particular easing function can be visualised by animating the `y`-coordinate of an object as time changes with a constant rate, such as bouncing-it in and out.+The effects of a particular easing function can be visualised by animating the+`y` coordinate of an object as time changes with a constant rate, such as+bouncing it in and out.<AnimationPlayer small name="tweening-visualiser" />Because using timing functions to map a range of values is a really common-pattern, it's possible to skip `map` entirely and pass the range to the-timing function itself:+pattern, it's possible to skip `map` entirely and pass the range to the timing+function itself:```ts// This:@@ -85,22 +83,23 @@ easeInOutCubic(value, -300, 300);## Interpolation functions-So far, we've only animated a single, numeric value.-The [`map`](/api/core/tweening#map) function can be used to interpolate between-two numbers but to animate more complex types we'll need to use interpolation+So far, we've only animated a single, numeric value. The+[`map`](/api/core/tweening#map) function can be used to interpolate between two+numbers but to animate more complex types we'll need to use interpolationfunctions. Consider the following example:```ts// import { Color } from "@motion-canvas/core/lib/types";-yield* tween(2, value => {- circle().fill(- Color.lerp(- new Color('#e6a700'),- new Color('#e13238'),- easeInOutCubic(value),- ),- );-});+yield *+ tween(2, value => {+ circle().fill(+ Color.lerp(+ new Color('#e6a700'),+ new Color('#e13238'),+ easeInOutCubic(value),+ ),+ );+ });```[`Color.lerp`](/api/core/types/Color#lerp) is a static function that@@ -116,20 +115,21 @@ called `lerp` that interpolates between two instances of said type.:::Aside from the default linear interpolation, some types offer more advanced-functions such as the [`Vector2.arcLerp`](/api/core/types/Vector2#arcLerp).-It makes the object follow a curved path from point a to b:+functions such as the [`Vector2.arcLerp`](/api/core/types/Vector2#arcLerp). It+makes the object follow a curved path from point a to b:```ts-yield* tween(2, value => {- circle().position(- // highlight-next-line- Vector2.arcLerp(- new Vector2(-300, 200),- new Vector2(300, -200),- easeInOutCubic(value),- ),- );-});+yield *+ tween(2, value => {+ circle().position(+ // highlight-next-line+ Vector2.arcLerp(+ new Vector2(-300, 200),+ new Vector2(300, -200),+ easeInOutCubic(value),+ ),+ );+ });```<AnimationPlayer small name="tweening-vector" />@@ -138,59 +138,62 @@ yield* tween(2, value => {The [`tween`](/api/core/tweening#tween) function is useful when we need toorchestrate complex animations. However, there's a better way of tweening-individual properties. You may recall from the-[quickstart](/docs/quickstart) section that the following-tween:+individual properties. You may recall from the [quickstart](/docs/quickstart)+section that the following tween:```ts-yield* tween(2, value => {- circle().color(- Color.lerp(- new Color('#e6a700'),- new Color('#e13238'),- easeInOutCubic(value),- ),- );-});+yield *+ tween(2, value => {+ circle().color(+ Color.lerp(+ new Color('#e6a700'),+ new Color('#e13238'),+ easeInOutCubic(value),+ ),+ );+ });```Can be written as:```ts-yield* circle().color('#e13238', 2);+yield * circle().color('#e13238', 2);```Here, we use a [`SignalTween`](/api/core/signals/SignalTween) signature thatlooks similar to a setter, except it accepts the transition duration as its-second argument. Under the hood, this will also create a tween - one that-starts with the current value and ends with the newly provided one.+second argument. Under the hood, this will also create a tween - one that starts+with the current value and ends with the newly provided one.++We can chain multiple tweens together by calling the `to()` method on the+returned object:-We can chain multiple tweens together by calling the-`to()` method on the returned object:```ts-yield* circle().color('#e13238', 2).to('#e6a700', 2);+yield * circle().color('#e13238', 2).to('#e6a700', 2);```-By default, property tweens use `easeInOutCubic` as the timing function.-We can override that by providing a third argument:+By default, property tweens use `easeInOutCubic` as the timing function. We can+override that by providing a third argument:```ts-yield* circle().color(- '#e13238',- 2,- // highlight-next-line- easeOutQuad-);+yield *+ circle().color(+ '#e13238',+ 2,+ // highlight-next-line+ easeOutQuad,+ );```Similarly, we can pass a custom interpolation function as the forth argument:```ts-yield* circle().position(- new Vector2(300, -200),- 2,- easeInOutCubic,- // highlight-next-line- Vector2.arcLerp-);+yield *+ circle().position(+ new Vector2(300, -200),+ 2,+ easeInOutCubic,+ // highlight-next-line+ Vector2.arcLerp,+ );```diff --git a/packages/docs/src/components/Api/Code/styles.module.css b/packages/docs/src/components/Api/Code/styles.module.cssindex ed5e977b..745b4985 100644--- a/packages/docs/src/components/Api/Code/styles.module.css+++ b/packages/docs/src/components/Api/Code/styles.module.css@@ -10,7 +10,7 @@content: attr(data-separator) '\a';}.elements.wrap.left > .element::before {- content: '\a' attr(data-separator);+ content: '\a'attr(data-separator);}.elements.wrap:not(.left)::before {@@ -109,4 +109,4 @@.codeBlockContainer {position: relative;scroll-margin-top: calc(var(--ifm-navbar-height) + var(--ifm-leading));-}\ No newline at end of file+}diff --git a/packages/docs/src/components/Api/Parameters/index.tsx b/packages/docs/src/components/Api/Parameters/index.tsxindex 2042fc00..07720055 100644--- a/packages/docs/src/components/Api/Parameters/index.tsx+++ b/packages/docs/src/components/Api/Parameters/index.tsx@@ -2,7 +2,7 @@ import React, {useMemo} from 'react';import type {JSONOutput} from 'typedoc';import Summary from '@site/src/components/Api/Comment/Summary';import ParameterPreview from '@site/src/components/Api/Preview/ParameterPreview';-import {useApiFinder, useApiLookup} from '@site/src/contexts/api';+import {useApiFinder} from '@site/src/contexts/api';export default function Parameters({parameters}: {parameters: number[]}) {const find = useApiFinder();diff --git a/packages/docs/src/components/Api/Preview/SignaturePreview.tsx b/packages/docs/src/components/Api/Preview/SignaturePreview.tsxindex 9db91a40..dc42adb8 100644--- a/packages/docs/src/components/Api/Preview/SignaturePreview.tsx+++ b/packages/docs/src/components/Api/Preview/SignaturePreview.tsx@@ -7,7 +7,7 @@ import Type from '@site/src/components/Api/Type';import Token from '@site/src/components/Api/Code/Token';import TokenList, {ListType} from '@site/src/components/Api/Code/TokenList';import TypeParameterPreview from '@site/src/components/Api/Preview/TypeParameterPreview';-import {getUrl, useApiFinder, useApiLookup} from '@site/src/contexts/api';+import {getUrl, useApiFinder} from '@site/src/contexts/api';import FlagsPreview from '@site/src/components/Api/Preview/FlagsPreview';export default function SignaturePreview({diff --git a/packages/docs/src/components/Api/Signatures/index.tsx b/packages/docs/src/components/Api/Signatures/index.tsxindex d10bffa4..a9ab37e3 100644--- a/packages/docs/src/components/Api/Signatures/index.tsx+++ b/packages/docs/src/components/Api/Signatures/index.tsx@@ -8,7 +8,7 @@ import Comment from '@site/src/components/Api/Comment';import TypeParameters from '@site/src/components/Api/TypeParameters';import type {JSONOutput} from 'typedoc';import Parameters from '@site/src/components/Api/Parameters';-import {useApiFinder, useApiLookup} from '@site/src/contexts/api';+import {useApiFinder} from '@site/src/contexts/api';export default function Signatures({signatures,diff --git a/packages/docs/src/components/Tooltip/styles.module.css b/packages/docs/src/components/Tooltip/styles.module.cssindex 16c3698c..04b2b6f7 100644--- a/packages/docs/src/components/Tooltip/styles.module.css+++ b/packages/docs/src/components/Tooltip/styles.module.css@@ -36,4 +36,4 @@.tooltip p:last-child {margin-bottom: 0;-}\ No newline at end of file+}diff --git a/packages/docs/src/contexts/api.tsx b/packages/docs/src/contexts/api.tsxindex ba6ad2a8..0a1a6928 100644--- a/packages/docs/src/contexts/api.tsx+++ b/packages/docs/src/contexts/api.tsx@@ -1,4 +1,4 @@-import React, {FunctionComponent, ReactNode, useContext} from 'react';+import React, {ReactNode, useContext} from 'react';import type {JSONOutput} from 'typedoc';declare module 'typedoc' {diff --git a/packages/ui/src/utils/sourceMaps.ts b/packages/ui/src/utils/sourceMaps.tsindex ba7f7bb1..a852476c 100644--- a/packages/ui/src/utils/sourceMaps.ts+++ b/packages/ui/src/utils/sourceMaps.ts@@ -8,7 +8,10 @@ const stackTraceRegex = navigator.userAgent.toLowerCase().includes('chrome'): /@(.*):([0-9]+):([0-9]+)/;const cache = new Map<string, SourceMapConsumer>();-async function getSourceMap(file: string, search = ''): Promise<SourceMapConsumer> {+async function getSourceMap(+ file: string,+ search = '',+): Promise<SourceMapConsumer> {const key = `${file}.map${search}`;if (cache.has(key)) {return cache.get(key);