guyoung / streakjs Goto Github PK
View Code? Open in Web Editor NEWstreakjs是一款多端JavaScript Canvas框架
Home Page: https://guyoung.github.io/streakjs
streakjs是一款多端JavaScript Canvas框架
Home Page: https://guyoung.github.io/streakjs
在手机端使用dbltap时,经常出现问题,建议支持longtap,以代替dbltap。
请问为何我设置canvas.width=windowWidth * dpr的时候(dpr > 2),元素的点击事件会偏移
作者好,streakjs 如何可以修改原点坐标?我在使用 rotate 旋转元素的时候,想围绕元素中心点进行旋转。但目前没看到可以操作的接口。请指教。谢谢。
另外,当前 streakjs 只提供了压缩版,是否有计划开放源码?这个库有不少的亮点,尤其是 json 操作和可以比肩 zrender 的多样预制形状。如果能将源码开放,料将能从其中学到很多。谢谢。
初步考虑hitCanvas是用于缓存?
hitCanvasElement是做什么的,没有它之后画的Line,设置颜色无用,而且每次会随机,但是加了hitCanvasElement,多出一个canvas,有什么用呢,大佬
微信小程序的zrender有吗,echarts不符合我的要求,我需要自己绘制下各种曲线,而且不要他的坐标轴,可以屏幕自适应,目前有点头疼,想问下百度的那个zrender可以直接用吗,不行我就纯手写了,没写过估计坑好多
streakjs.config.pixelRatio = 2;
你好,监听该事件时,发现DD对象不存在?
streakjs.DD.drag(evt);
streakjs.DD.endDragBefore(evt);
streakjs.DD.endDragAfter(evt);
thirdScriptError
Cannot read property 'endDragBefore' of undefined;at pages/airProcessPro/index page __e function
TypeError: Cannot read property 'endDragBefore' of undefined
at VueComponent.touchEnd (http://127.0.0.1:25329/appservice/pages/airProcessPro/index.js:272:25)
at http://127.0.0.1:25329/appservice/common/vendor.js:1322:28
at Array.forEach (<anonymous>)
at http://127.0.0.1:25329/appservice/common/vendor.js:1283:19
at Array.forEach (<anonymous>)
at ve.handleEvent [as __e] (http://127.0.0.1:25329/appservice/common/vendor.js:1273:13)
at ve.D (http://127.0.0.1:25329/appservice/__dev__/WAService.js:1:1449641)
at Ze (http://127.0.0.1:25329/appservice/__dev__/WAService.js:1:1468207)
at http://127.0.0.1:25329/appservice/__dev__/WAService.js:1:1481030
at Function.<anonymous> (http://127.0.0.1:25329/appservice/__dev__/WAService.js:1:1481425)
console.error @ VM940:1
errorReport @ VM947 WAService.js:1
thirdErrorReport @ VM947 WAService.js:1
(anonymous) @ VM947 WAService.js:1
D @ VM947 WAService.js:1
Ze @ VM947 WAService.js:1
(anonymous) @ VM947 WAService.js:1
(anonymous) @ VM947 WAService.js:1
(anonymous) @ VM947 WAService.js:1
(anonymous) @ VM947 WAService.js:1
(anonymous) @ VM947 WAService.js:1
i @ VM945 asdebug.js:1
c @ VM945 asdebug.js:1
(anonymous) @ VM945 asdebug.js:1
p @ VM945 asdebug.js:1
f @ VM945 asdebug.js:1
(anonymous) @ VM945 asdebug.js:1
_ws.onmessage @ VM945 asdebug.js:1
您好,下载了咱们的源码,在电脑端可以预览,但手机端无法展示文字对象。
已知可以根据layer.add(shape)增加元素,请问应该如何删除一个对象呢?
你好,目前通过draggable属性设置图形拖动.
当前有一个需求,限制某个图形在某个区域内移动,应该如何实现呢?
目前的思路是,监听dragmove事件,并实时判断当前的坐标,当超出区域时,重置x,y的位置.
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.