Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
release: v2.0.0-alpha.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepbox8646 committed Jul 1, 2024
1 parent 5770a48 commit 6c56238
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion mods/mod-geometry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@newcar/mod-geometry",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "",
"author": "BugDuck Team",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion mods/mod-markdown/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@newcar/mod-markdown",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "",
"author": "BugDuck Team",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion mods/mod-math/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@newcar/mod-math",
"type": "module",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "",
"author": "BugDuck Team",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"preversion": "pnpm clean && pnpm build",
"build": "pnpm run --filter=* build",
"build": "pnpm run --filter=./packages/** build",
"dev": "pnpm run --parallel --filter=* dev",
"test": "pnpm run --filter=* test",
"serve": "vite ./examples/",
Expand Down
2 changes: 1 addition & 1 deletion packages/basic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@newcar/basic",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "The basic objects, animations and interpolators of newcar.",
"author": "BugDuck Team",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@newcar/core",
"type": "module",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "The core of newcar.",
"author": "BugDuck Team",
"license": "Apache-2.0",
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export class App {
if (plugin.onCheckout)
plugin.onCheckout(this, this.scene)
}
this.scene.root.processEvents(this.element)
// if (!scene.root.hasSet)
return this
}
Expand Down
6 changes: 6 additions & 0 deletions packages/core/src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ export class Widget {
return this
}

processEvents(element: HTMLCanvasElement) {
for (const instance of this.eventInstances)
instance.event.operation(this, instance.effect, element)
for (const child of this.children) child.processEvents(element)
}

// Run an animation with respect to `elapsed`, which is maintained by `App` class
runAnimation(elapsed: number, ck: CanvasKit) {
if (this.animationInstances.length === 0)
Expand Down
2 changes: 1 addition & 1 deletion packages/newcar/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "newcar",
"type": "module",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "A Highly configurable universal advanced engine, Born for creating animation rapidly.",
"author": "BugDuck Team",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/recorder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@newcar/recorder",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "The utils of newcar",
"author": "BugDuck Team",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@newcar/utils",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "The utils of newcar",
"author": "BugDuck Team",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin-debug/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@newcar/plugin-debug",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "",
"author": "BugDuck Team",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin-timeview/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@newcar/plugin-timeview",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "",
"author": "BugDuck Team",
"license": "Apache-2.0",
Expand Down

0 comments on commit 6c56238

Please sign in to comment.