Giter Site home page Giter Site logo

streakjs's Issues

DD对象不存在?

你好,监听该事件时,发现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

建议增加tooltip方法?

当前图形支持拖动,但是在拖动时,无法动态展示tooltip,类似echarts中的标注,详情见下图.

79a05d642c5c26085cff7c29929ec1e
微信截图_20201008163950

如何限制图形在某个区域内拖动呢?

你好,目前通过draggable属性设置图形拖动.
当前有一个需求,限制某个图形在某个区域内移动,应该如何实现呢?
目前的思路是,监听dragmove事件,并实时判断当前的坐标,当超出区域时,重置x,y的位置.

请教:如何修改元素的原点坐标?

作者好,streakjs 如何可以修改原点坐标?我在使用 rotate 旋转元素的时候,想围绕元素中心点进行旋转。但目前没看到可以操作的接口。请指教。谢谢。

另外,当前 streakjs 只提供了压缩版,是否有计划开放源码?这个库有不少的亮点,尤其是 json 操作和可以比肩 zrender 的多样预制形状。如果能将源码开放,料将能从其中学到很多。谢谢。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.