c-zhuo / easycanvas Goto Github PK
View Code? Open in Web Editor NEW数据驱动、2D&3D、渐进式Canvas库,支持JSX,配备Chrome调试插件,支持微信小游戏、物理引擎等。
Home Page: https://c-zhuo.github.io/easycanvas/
License: MIT License
数据驱动、2D&3D、渐进式Canvas库,支持JSX,配备Chrome调试插件,支持微信小游戏、物理引擎等。
Home Page: https://c-zhuo.github.io/easycanvas/
License: MIT License
好遗憾,看到这么好的产品,但是没有看到作者信息,恕我孤陋寡闻,可以加好友吗,我的微信号:wang532286,或者我的邮箱:[email protected], 期待您的回复
版本
如:0.7.4,Easycanvas的版本
影响平台
如:Chrome Web
问题描述
绘制画面有闪屏问题
关键代码
无论任何操作, 页面更新就会闪屏
其它
看网上很多绘制复杂页面的 canvas 都有闪屏问题
最终的解决方案都是 使用双缓冲, 使用 画布的canvas 直接复制 缓冲canvas的数据
不知道咱们是不是使用的这个方案呢
类似于这样的,我只找到了使用colors的demo,可以使用img吗?
Easycanvas.webglShapes.custom({
vertices: vertices,
indices: indices,
textures: textures,
img: 'https://raw.githubusercontent.com/c-zhuo/tanyitan/3d/debug/docs/stone.jpg'
})
我记得之前是有API文档的
现在我想写东西都不知道怎么写了
代码是没有进行 微信小游戏适配吗?
IOS 平台 点击事件有偏移, 并没有使用缩放属性, 事件偏移
外部容器为一个圆形,里面再放很多小球,并且这些小球可以重叠?
demo有JS报错误
嵌套的元素不会进行事件的冒泡传递,例如一个sprite的child触发了事件,那么这个sprite不一定会触发这个事件,取决于父元素的实际范围。这点与javascript在dom上的事件传递规则不同。
最好符合通用设计,不仅是标准,而且为了未来的扩展
您好!
我使用Easycanvas的webgl插件渲染图片,添加了一个背景图,又在背景图上增加了一个组件图;
组件图使用的纹理图片是.png格式,图片是透明背景,
但是最终的渲染结果是组件图有了白色的背景,能帮忙指点一下原因吗?这种情况有办法解决吗?
测试代码在这个链接: https://cyitianyou.github.io/easycanvas-demo/demo.html
版本
如:0.8.3,Easycanvas的版本
影响平台
如:iOS真机/
touchstart 事件 与真实的精灵位置偏移半个精灵大小(比如我要触发某个精灵的touchstart 需要点击此精灵的右半部分 或者右侧超出半个精灵大小的区域,感觉判断触发事件的区域偏移了半个精灵大小)ios设备均是如此 安卓正常
问题描述
现象/JS报错信息/截图等
关键代码
例如有问题的Sprite的style属性等
其它
(问题补充)
如题,先行谢过。商城里并没有搜到。
机型为 win10 的 chrome63
您好!
我在Canvas画布上显示了一个Easycanvas.webglShapes.custom
组件,
跟随鼠标的mousemove事件通过this.updateWebglStyle("vertices")
的方式不断的修改组件的顶点坐标。
操作几次之后Chrome浏览器显示当前GPU内存超过1G以上,整个浏览器会变得比较卡
想问下这类现象是因为WebGL中的缓存没有及时释放的原因吗?这种问题可以通过js代码解决吗?
我vue 项目引入 所有的webgl 都跑不起来啊
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.