跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[分享创造] Newcar 2.0.0 Beta 发布!

发表于

Newcar 2.0.0 Beta 版本发布!

Newcar 在经历了原生 Canvas -> Skia 的进展过程将会在 2.0.0 版本结束,至此 Newcar 已重构完毕,相比于 1.0, newcar 用更优雅,性能更高的方式实现了内核的重写以及 API 的重设计

Reactivity --- 响应式的按需更新

我们模仿了 Vue 的响应式设计,并把它用在 Newcar 的按需更新上,让程序运行更加的高效

const widget = new Widget()
widget.x.value = 100

缺点:需要使用 .value 进行值的访问和修改

Setup 语法糖

传统的动画需要一个一个进行 animate,而且修改单个值特别麻烦,有了 setup 语法糖,就可以通过生成器函数逐个逐个的调用动画

widget.setup(w => {
     yield 3 // 等待 3 秒
     console.log('Hello world!')
     // 执行动画
     yield create().withAttr({ duration: 3 })
})

事件系统

Newcar 相比于 Manim 最大的好处就是可以进行交互,这也是前端的一大优势

交互

新版本增加了交互系统,如 scalable, 可以让用户自由缩放组件

new Widget({
    dragable: true,
    scalable: true,
})

[https://github.com/dromara/newcar]( https://github.com/dromara/newcar)

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.