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

Commit

Permalink
release: v1.0.0-alpha.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepbox8646 committed May 1, 2024
1 parent 6e7bc5d commit 01936ab
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@newcar/mod-markdown": "workspace:0.3.0",
"@newcar/mod-math": "workspace:*",
"canvaskit-wasm": "0.39.1",
"newcar": "workspace:0.15.1",
"newcar": "workspace:1.0.0-alpha.0",
"vite-plugin-node-polyfills": "^0.21.0"
}
}
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": "0.15.1",
"version": "1.0.0-alpha.0",
"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,6 +1,6 @@
{
"name": "@newcar/core",
"version": "0.15.1",
"version": "1.0.0-alpha.0",
"description": "The core of newcar.",
"author": "BugDuck Team",
"license": "Apache-2.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/core/src/localApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Canvas, CanvasKit, Surface } from 'canvaskit-wasm'
import type { Scene } from './scene'
import { initial } from './initial'
import type { Widget } from './widget'
import type { CarPlugin } from './plugin'
import type { GlobalPlugin } from './plugin'

export class LocalApp {
scene: Scene
Expand All @@ -16,7 +16,7 @@ export class LocalApp {
public width: number,
public height: number,
private ck: CanvasKit,
private plugins: CarPlugin[],
private plugins: GlobalPlugin[],
) {
for (const plugin of this.plugins) plugin.beforeSurfaceLoaded(this)

Expand Down Expand Up @@ -53,7 +53,7 @@ export class LocalApp {
plugin.beforePatch(app, app.scene.elapsed, app.last, app.scene.root)

for (const plugin of app.plugins)
plugin.afterPatch(app, app.scene.elapsed, app.last, app.scene.root)
plugin.onPatch(app, app.scene.elapsed, app.last, app.scene.root)
;(function draw(widget: Widget) {
widget.init(app.ck)
app.canvas.save()
Expand All @@ -66,7 +66,7 @@ export class LocalApp {
// Animating.
app.scene.root.runAnimation(app.scene.elapsed)

for (const plugin of app.plugins) plugin.afterUpdate(app, app.scene.elapsed)
for (const plugin of app.plugins) plugin.onUpdate(app, app.scene.elapsed)

app.scene.elapsed += 1
}
Expand All @@ -79,7 +79,7 @@ export class LocalApp {
this.updates.push(updateFunc)
}

use(plugin: CarPlugin) {
use(plugin: GlobalPlugin) {
this.plugins.push(plugin)
}

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": "0.15.1",
"version": "1.0.0-alpha.0",
"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": "0.15.1",
"version": "1.0.0-alpha.0",
"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": "0.15.1",
"version": "1.0.0-alpha.0",
"description": "The utils of newcar",
"author": "BugDuck Team",
"license": "Apache-2.0",
Expand Down

0 comments on commit 01936ab

Please sign in to comment.