alibaba / canvas-ui

UI Renderer runs on top of the HTML5 Canvas
https://alibaba.github.io/canvas-ui/
MIT License
169 stars 18 forks source link

这项目还有人维护吗?上次更新两年前,新版本react也不兼容 #21

Closed SnowWindSaveYou closed 4 months ago

SnowWindSaveYou commented 5 months ago

除了这个以外有什么推荐的react用canvas绘制ui的库吗?

SnowWindSaveYou commented 5 months ago
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: @canvas-ui/react@1.0.0
npm ERR! Found: react@16.8.6
npm ERR! node_modules/react
npm ERR!   peer react@"16.8.6" from @canvas-ui/react@1.0.0
npm ERR!   packages/react
npm ERR!     @canvas-ui/react@1.0.0
npm ERR!     node_modules/@canvas-ui/react
npm ERR!       workspace packages\react from the root project
npm ERR!       1 more (@canvas-ui/examples)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@">=16.13" from react-use-measure@2.0.4
npm ERR! node_modules/react-use-measure
npm ERR!   react-use-measure@"2.0.4" from @canvas-ui/react@1.0.0
npm ERR!   packages/react
npm ERR!     @canvas-ui/react@1.0.0
npm ERR!     node_modules/@canvas-ui/react
npm ERR!       workspace packages\react from the root project
npm ERR!       1 more (@canvas-ui/examples)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!

下下来直接npm install也不行,悲。

zhanghaocong commented 5 months ago

你好,还在维护的,但是目前没有兼容新版 React 的计划

具备 React 绑定的 Canvas 绘制库可以试试 Konva

https://github.com/konvajs/react-konva