From 68277c552c206aac91428a5719c52f5e4c75c21d Mon Sep 17 00:00:00 2001 From: Acbox liu <850625057@qq.com> Date: Thu, 8 Aug 2024 19:00:47 +0800 Subject: [PATCH] release: v2.0.0-beta.4 --- examples/scene1.ts | 33 ++++- mods/mod-geometry/package.json | 2 +- mods/mod-layout/package.json | 2 +- mods/mod-markdown/package.json | 2 +- mods/mod-math/package.json | 2 +- mods/mod-skottie/package.json | 2 +- packages/basic/package.json | 2 +- packages/core/package.json | 2 +- packages/core/src/index.ts | 1 + packages/json/.npmignore | 1 + packages/json/LICENSE | 201 ++++++++++++++++++++++++++ packages/json/package.json | 44 ++++++ packages/json/schema.json | 26 ++++ packages/json/src/format.ts | 18 +++ packages/json/src/import-scene.ts | 16 ++ packages/json/src/import-widget.ts | 25 ++++ packages/json/src/index.ts | 4 + packages/json/src/transform-widget.ts | 5 + packages/json/test/index.json | 15 ++ packages/json/tsup.config.ts | 1 + packages/json/typedoc.json | 4 + packages/newcar/package.json | 3 +- packages/newcar/src/index.ts | 1 + packages/recorder/package.json | 2 +- packages/utils/package.json | 2 +- plugins/plugin-debug/package.json | 2 +- plugins/plugin-timeview/package.json | 2 +- pnpm-lock.yaml | 84 +++++++---- 28 files changed, 459 insertions(+), 45 deletions(-) diff --git a/examples/scene1.ts b/examples/scene1.ts index 2f1ed3ce6..1e038ff43 100644 --- a/examples/scene1.ts +++ b/examples/scene1.ts @@ -1,11 +1,36 @@ import {Circle, Color, createScene, move, Rect, Widget, useFont} from 'newcar' import TextEditor from "@newcar/mod-text-editor" import { Table } from "@newcar/mod-table"; +import {importScene} from "newcar"; +import * as nc from 'newcar' await useFont('./default.ttf') -export default createScene( - new Table(4, 4) - .setItem(new Rect(100, 100), 2, 2) - // new Widget() +export default importScene( + + `{ + "$schema": "../schema.json", + "root": { + "type": "Circle", + "arguments": [100], + "options": { + "style": { + "fill": false, + "border": true + }, + "x": 100, + "y": 100 + }, + "animations": [ + { + "type": "create", + "parameters": { + "duration": 1 + } + } + ] + } +}`, + nc as any, + nc as any, ) \ No newline at end of file diff --git a/mods/mod-geometry/package.json b/mods/mod-geometry/package.json index 02c7aa4ce..6c79911e7 100644 --- a/mods/mod-geometry/package.json +++ b/mods/mod-geometry/package.json @@ -1,6 +1,6 @@ { "name": "@newcar/mod-geometry", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "description": "", "author": "BugDuck Team", "license": "Apache-2.0", diff --git a/mods/mod-layout/package.json b/mods/mod-layout/package.json index da0fb20ef..e75766d15 100644 --- a/mods/mod-layout/package.json +++ b/mods/mod-layout/package.json @@ -1,6 +1,6 @@ { "name": "@newcar/mod-layout", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "description": "", "author": "BugDuck Team", "license": "Apache-2.0", diff --git a/mods/mod-markdown/package.json b/mods/mod-markdown/package.json index 1a3579171..c96a65533 100644 --- a/mods/mod-markdown/package.json +++ b/mods/mod-markdown/package.json @@ -1,6 +1,6 @@ { "name": "@newcar/mod-markdown", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "description": "", "author": "BugDuck Team", "license": "Apache-2.0", diff --git a/mods/mod-math/package.json b/mods/mod-math/package.json index c7c79a0e9..0f96030ea 100644 --- a/mods/mod-math/package.json +++ b/mods/mod-math/package.json @@ -1,7 +1,7 @@ { "name": "@newcar/mod-math", "type": "module", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "description": "", "author": "BugDuck Team", "license": "Apache-2.0", diff --git a/mods/mod-skottie/package.json b/mods/mod-skottie/package.json index 930a98d3c..26961eab4 100644 --- a/mods/mod-skottie/package.json +++ b/mods/mod-skottie/package.json @@ -1,7 +1,7 @@ { "name": "@newcar/mod-skottie", "type": "module", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "description": "", "author": "BugDuck Team", "license": "Apache-2.0", diff --git a/packages/basic/package.json b/packages/basic/package.json index 1535e549a..afa3f9b96 100644 --- a/packages/basic/package.json +++ b/packages/basic/package.json @@ -1,6 +1,6 @@ { "name": "@newcar/basic", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "description": "The basic objects, animations and interpolators of newcar.", "author": "BugDuck Team", "license": "Apache-2.0", diff --git a/packages/core/package.json b/packages/core/package.json index 274f961fb..89bbbfa9b 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@newcar/core", "type": "module", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "description": "The core of newcar.", "author": "BugDuck Team", "license": "Apache-2.0", diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 94799fa88..3a011b64e 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -8,6 +8,7 @@ export * from './async-widget' export * from './global' export * from './local-app' export * from './event' +export * from './config' export * from './apis/physical' export * from './apis/use-font' diff --git a/packages/json/.npmignore b/packages/json/.npmignore index e69de29bb..dbc869080 100644 --- a/packages/json/.npmignore +++ b/packages/json/.npmignore @@ -0,0 +1 @@ +/src \ No newline at end of file diff --git a/packages/json/LICENSE b/packages/json/LICENSE index e69de29bb..261eeb9e9 100644 --- a/packages/json/LICENSE +++ b/packages/json/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/json/package.json b/packages/json/package.json index e69de29bb..982c0e182 100644 --- a/packages/json/package.json +++ b/packages/json/package.json @@ -0,0 +1,44 @@ +{ + "name": "@newcar/json", + "type": "module", + "version": "2.0.0-beta.4", + "description": "The core of newcar.", + "author": "BugDuck Team", + "license": "Apache-2.0", + "keywords": [ + "animation" + ], + "exports": { + ".": { + "dev": "./src/index.ts", + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "types": "./dist/index.d.ts", + "files": [ + "dist" + ], + "scripts": { + "publish": "npm publish", + "build": "tsup", + "dev": "tsup --watch", + "test": "vitest" + }, + "peerDependencies": { + "canvaskit-wasm": ">=0.39.1" + }, + "dependencies": { + "@newcar/core": "workspace:*", + "@newcar/utils": "workspace:*", + "mitt": "^3.0.1" + }, + "devDependencies": { + "acorn": "8.11.3", + "canvaskit-wasm": "0.39.1" + }, + "publishConfig": { + "access": "public" + } +} diff --git a/packages/json/schema.json b/packages/json/schema.json index e69de29bb..167f0661b 100644 --- a/packages/json/schema.json +++ b/packages/json/schema.json @@ -0,0 +1,26 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "root": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "arguments": { + "type": "array" + }, + "options": { + "type": "object" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/properties/root" + } + } + } + } + }, + "required": ["root"] +} diff --git a/packages/json/src/format.ts b/packages/json/src/format.ts index e69de29bb..b15aa8da0 100644 --- a/packages/json/src/format.ts +++ b/packages/json/src/format.ts @@ -0,0 +1,18 @@ +import type { WidgetOptions } from '@newcar/core' + +export interface WidgetFormat { + type: string + arguments: unknown[] + options: WidgetOptions + children: WidgetFormat[] + animations: AnimFormat[] +} + +export interface SceneFormat { + root: WidgetFormat +} + +export interface AnimFormat { + type: string + parameters: Record +} diff --git a/packages/json/src/import-scene.ts b/packages/json/src/import-scene.ts index e69de29bb..6c7ce1f33 100644 --- a/packages/json/src/import-scene.ts +++ b/packages/json/src/import-scene.ts @@ -0,0 +1,16 @@ +import type { Widget } from '@newcar/core' +import { createScene } from '@newcar/core' +import type { SceneFormat } from './format.ts' +import { importWidget } from './import-widget.ts' + +export function importScene( + sceneData: SceneFormat | string, + widgets: Record, + anims: Record any>, +) { + if (typeof sceneData === 'string') + sceneData = JSON.parse(sceneData) as SceneFormat + return createScene( + importWidget(sceneData.root, widgets, anims), + ) +} diff --git a/packages/json/src/import-widget.ts b/packages/json/src/import-widget.ts index e69de29bb..288b78d8e 100644 --- a/packages/json/src/import-widget.ts +++ b/packages/json/src/import-widget.ts @@ -0,0 +1,25 @@ +import type { Widget } from '@newcar/core' +import type { WidgetFormat } from './format.ts' + +export function importWidget( + widgetData: WidgetFormat | string, + widgets: Record, + anims: Record any>, +) { + if (typeof widgetData === 'string') { + widgetData = JSON.parse(widgetData) as WidgetFormat + } + const widget = new widgets[widgetData.type](...widgetData.arguments, widgetData.options) + if (widgetData.children) { + widget.add(...widgetData.children.map((child) => { + return importWidget(child, widgets, anims) + })) + } + if (widgetData.animations) { + widgetData.animations.forEach((animation) => { + widget.animate(anims[animation.type]().withAttr(animation.parameters)) + }) + } + + return widget +} diff --git a/packages/json/src/index.ts b/packages/json/src/index.ts index e69de29bb..2d73834c9 100644 --- a/packages/json/src/index.ts +++ b/packages/json/src/index.ts @@ -0,0 +1,4 @@ +export * from './format' +export * from './import-scene' +export * from './import-widget' +export * from './transform-widget' diff --git a/packages/json/src/transform-widget.ts b/packages/json/src/transform-widget.ts index e69de29bb..cb205b9d4 100644 --- a/packages/json/src/transform-widget.ts +++ b/packages/json/src/transform-widget.ts @@ -0,0 +1,5 @@ +import type { Widget } from '@newcar/core' + +export function transformWidget(_widget: T) { + +} diff --git a/packages/json/test/index.json b/packages/json/test/index.json index e69de29bb..6a5410a6a 100644 --- a/packages/json/test/index.json +++ b/packages/json/test/index.json @@ -0,0 +1,15 @@ +{ + "$schema": "../schema.json", + "root": { + "type": "Circle", + "arguments": [100], + "options": { + "style": { + "fill": false, + "border": true + }, + "x": 100, + "y": 100 + } + } +} diff --git a/packages/json/tsup.config.ts b/packages/json/tsup.config.ts index e69de29bb..010d3727b 100644 --- a/packages/json/tsup.config.ts +++ b/packages/json/tsup.config.ts @@ -0,0 +1 @@ +export { default } from '../../tsup.config' diff --git a/packages/json/typedoc.json b/packages/json/typedoc.json index e69de29bb..f593f276c 100644 --- a/packages/json/typedoc.json +++ b/packages/json/typedoc.json @@ -0,0 +1,4 @@ +{ + "extends": ["../../typedoc.base.json"], + "entryPoints": ["src/index.ts"] +} diff --git a/packages/newcar/package.json b/packages/newcar/package.json index d85389091..1047d1e77 100644 --- a/packages/newcar/package.json +++ b/packages/newcar/package.json @@ -1,7 +1,7 @@ { "name": "newcar", "type": "module", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "description": "A Highly configurable universal advanced engine, Born for creating animation rapidly.", "author": "BugDuck Team", "license": "Apache-2.0", @@ -32,6 +32,7 @@ "dependencies": { "@newcar/basic": "workspace:*", "@newcar/core": "workspace:*", + "@newcar/json": "workspace:*", "@newcar/recorder": "workspace:*", "@newcar/utils": "workspace:*" }, diff --git a/packages/newcar/src/index.ts b/packages/newcar/src/index.ts index 51a951839..2708875b2 100644 --- a/packages/newcar/src/index.ts +++ b/packages/newcar/src/index.ts @@ -2,3 +2,4 @@ export * from '@newcar/core' export * from '@newcar/basic' export * from '@newcar/utils' export * from '@newcar/recorder' +export * from '@newcar/json' diff --git a/packages/recorder/package.json b/packages/recorder/package.json index 4feb57027..330ab0361 100644 --- a/packages/recorder/package.json +++ b/packages/recorder/package.json @@ -1,6 +1,6 @@ { "name": "@newcar/recorder", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "description": "The utils of newcar", "author": "BugDuck Team", "license": "Apache-2.0", diff --git a/packages/utils/package.json b/packages/utils/package.json index ece995117..da17fe31d 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@newcar/utils", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "description": "The utils of newcar", "author": "BugDuck Team", "license": "Apache-2.0", diff --git a/plugins/plugin-debug/package.json b/plugins/plugin-debug/package.json index 270d7f083..c0dbfb6b5 100644 --- a/plugins/plugin-debug/package.json +++ b/plugins/plugin-debug/package.json @@ -1,6 +1,6 @@ { "name": "@newcar/plugin-debug", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "description": "", "author": "BugDuck Team", "license": "Apache-2.0", diff --git a/plugins/plugin-timeview/package.json b/plugins/plugin-timeview/package.json index 41035a54f..db2bb509f 100644 --- a/plugins/plugin-timeview/package.json +++ b/plugins/plugin-timeview/package.json @@ -1,6 +1,6 @@ { "name": "@newcar/plugin-timeview", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "description": "", "author": "BugDuck Team", "license": "Apache-2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bba502521..653ced2c3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -93,13 +93,13 @@ importers: dependencies: '@newcar/mod-math': specifier: latest - version: 2.0.0-beta.3(canvaskit-wasm@0.39.1) + version: 2.0.0-beta.4(canvaskit-wasm@0.39.1) canvaskit-wasm: specifier: 0.39.1 version: 0.39.1 newcar: specifier: latest - version: 2.0.0-beta.3(canvaskit-wasm@0.39.1) + version: 2.0.0-beta.4(canvaskit-wasm@0.39.1) unplugin-vue-components: specifier: ^0.26.0 version: 0.26.0(@babel/parser@7.25.0)(rollup@4.19.1)(vue@3.4.34(typescript@5.5.4)) @@ -362,6 +362,25 @@ importers: specifier: 0.39.1 version: 0.39.1 + packages/json: + dependencies: + '@newcar/core': + specifier: workspace:* + version: link:../core + '@newcar/utils': + specifier: workspace:* + version: link:../utils + mitt: + specifier: ^3.0.1 + version: 3.0.1 + devDependencies: + acorn: + specifier: 8.11.3 + version: 8.11.3 + canvaskit-wasm: + specifier: 0.39.1 + version: 0.39.1 + packages/newcar: dependencies: '@newcar/basic': @@ -370,6 +389,9 @@ importers: '@newcar/core': specifier: workspace:* version: link:../core + '@newcar/json': + specifier: workspace:* + version: link:../json '@newcar/recorder': specifier: workspace:* version: link:../recorder @@ -1384,25 +1406,25 @@ packages: '@manypkg/get-packages@1.1.3': resolution: {integrity: sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A==} - '@newcar/basic@2.0.0-beta.3': + '@newcar/basic@2.0.0-beta.4': resolution: {integrity: sha512-2jgSbFBMqZjk71EXuuCuXYUTm4k5VJJlNrC9vZqHv+6AgHJ35hntE6E9weQV1zmZvZL3BqYPpB+oVcAOe6X32Q==} peerDependencies: canvaskit-wasm: '>=0.39.1' - '@newcar/core@2.0.0-beta.3': + '@newcar/core@2.0.0-beta.4': resolution: {integrity: sha512-hPJibcKhnVaiMVmivetveeA862XgWoFSxiTBIYQ15d6I/MEEofZ8EN1dSjZb5VYY/rzrj983Wo23hgmG46cj9g==} peerDependencies: canvaskit-wasm: '>=0.39.1' - '@newcar/mod-math@2.0.0-beta.3': + '@newcar/mod-math@2.0.0-beta.4': resolution: {integrity: sha512-0IQm2yXD/ADvvNW5t2LbA8WojFMfhH5CXu/mrHZgkLQ3L2oglg62E03nYUN59SxCdToxVNQNZqj6tF8dwrSJVQ==} peerDependencies: canvaskit-wasm: '>=0.39.1' - '@newcar/recorder@2.0.0-beta.3': + '@newcar/recorder@2.0.0-beta.4': resolution: {integrity: sha512-fUOvr9hCcii2yE/DUalBK+gejUyEkSC6kf/CQKz1e5fxnUyNegU6nH4C+yOCKu23wmkxoWt6Qt+47nx/BG8zEg==} - '@newcar/utils@2.0.0-beta.3': + '@newcar/utils@2.0.0-beta.4': resolution: {integrity: sha512-nptmvWWX5qPDDWl90GWb/dDwHHSNTQQBEQywlZM78LStgXlEDXnf8tbRbK/gaIfwD37lfqSAWstAhZ9TEgOpeQ==} peerDependencies: canvaskit-wasm: '>=0.39.1' @@ -3651,7 +3673,7 @@ packages: natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - newcar@2.0.0-beta.3: + newcar@2.0.0-beta.4: resolution: {integrity: sha512-00y+6+AANLWdnmhiiwMQF8uZdEilB8eH2lmkzZtyVmTZuroFksIJpLjmnhl0H8/ltwJTEGcAQ4w8Yrp0frfKxw==} peerDependencies: canvaskit-wasm: '>=0.39.1' @@ -5946,31 +5968,31 @@ snapshots: globby: 11.1.0 read-yaml-file: 1.1.0 - '@newcar/basic@2.0.0-beta.3(canvaskit-wasm@0.39.1)': + '@newcar/basic@2.0.0-beta.4(canvaskit-wasm@0.39.1)': dependencies: - '@newcar/core': 2.0.0-beta.3(canvaskit-wasm@0.39.1) - '@newcar/utils': 2.0.0-beta.3(canvaskit-wasm@0.39.1) + '@newcar/core': 2.0.0-beta.4(canvaskit-wasm@0.39.1) + '@newcar/utils': 2.0.0-beta.4(canvaskit-wasm@0.39.1) canvaskit-wasm: 0.39.1 - '@newcar/core@2.0.0-beta.3(canvaskit-wasm@0.39.1)': + '@newcar/core@2.0.0-beta.4(canvaskit-wasm@0.39.1)': dependencies: - '@newcar/utils': 2.0.0-beta.3(canvaskit-wasm@0.39.1) + '@newcar/utils': 2.0.0-beta.4(canvaskit-wasm@0.39.1) canvaskit-wasm: 0.39.1 mitt: 3.0.1 - '@newcar/mod-math@2.0.0-beta.3(canvaskit-wasm@0.39.1)': + '@newcar/mod-math@2.0.0-beta.4(canvaskit-wasm@0.39.1)': dependencies: - '@newcar/basic': 2.0.0-beta.3(canvaskit-wasm@0.39.1) - '@newcar/core': 2.0.0-beta.3(canvaskit-wasm@0.39.1) - '@newcar/utils': 2.0.0-beta.3(canvaskit-wasm@0.39.1) + '@newcar/basic': 2.0.0-beta.4(canvaskit-wasm@0.39.1) + '@newcar/core': 2.0.0-beta.4(canvaskit-wasm@0.39.1) + '@newcar/utils': 2.0.0-beta.4(canvaskit-wasm@0.39.1) canvaskit-wasm: 0.39.1 gl-matrix: 3.4.3 svg-path: 0.2.1 tex-to-svg: 0.2.0 - '@newcar/recorder@2.0.0-beta.3': {} + '@newcar/recorder@2.0.0-beta.4': {} - '@newcar/utils@2.0.0-beta.3(canvaskit-wasm@0.39.1)': + '@newcar/utils@2.0.0-beta.4(canvaskit-wasm@0.39.1)': dependencies: canvaskit-wasm: 0.39.1 colorparsley: 0.1.8 @@ -6696,13 +6718,17 @@ snapshots: transitivePeerDependencies: - supports-color + acorn-jsx@5.3.2(acorn@8.11.3): + dependencies: + acorn: 8.11.3 + acorn-jsx@5.3.2(acorn@8.12.1): dependencies: acorn: 8.12.1 acorn-walk@8.3.3: dependencies: - acorn: 8.12.1 + acorn: 8.11.3 acorn@8.11.3: {} @@ -7715,8 +7741,8 @@ snapshots: espree@9.6.1: dependencies: - acorn: 8.12.1 - acorn-jsx: 5.3.2(acorn@8.12.1) + acorn: 8.11.3 + acorn-jsx: 5.3.2(acorn@8.11.3) eslint-visitor-keys: 3.4.3 esprima@4.0.1: {} @@ -8281,7 +8307,7 @@ snapshots: jsonc-eslint-parser@2.4.0: dependencies: - acorn: 8.12.1 + acorn: 8.11.3 eslint-visitor-keys: 3.4.3 espree: 9.6.1 semver: 7.6.3 @@ -8519,7 +8545,7 @@ snapshots: mlly@1.7.1: dependencies: - acorn: 8.12.1 + acorn: 8.11.3 pathe: 1.1.2 pkg-types: 1.1.3 ufo: 1.5.4 @@ -8554,12 +8580,12 @@ snapshots: natural-compare@1.4.0: {} - newcar@2.0.0-beta.3(canvaskit-wasm@0.39.1): + newcar@2.0.0-beta.4(canvaskit-wasm@0.39.1): dependencies: - '@newcar/basic': 2.0.0-beta.3(canvaskit-wasm@0.39.1) - '@newcar/core': 2.0.0-beta.3(canvaskit-wasm@0.39.1) - '@newcar/recorder': 2.0.0-beta.3 - '@newcar/utils': 2.0.0-beta.3(canvaskit-wasm@0.39.1) + '@newcar/basic': 2.0.0-beta.4(canvaskit-wasm@0.39.1) + '@newcar/core': 2.0.0-beta.4(canvaskit-wasm@0.39.1) + '@newcar/recorder': 2.0.0-beta.4 + '@newcar/utils': 2.0.0-beta.4(canvaskit-wasm@0.39.1) canvaskit-wasm: 0.39.1 node-fetch-native@1.6.4: {}