Giter VIP home page Giter VIP logo

Comments (4)

nihaojob avatar nihaojob commented on August 15, 2024

大佬,为什么点击图层会记入一次撤销呢?能否优化一下 && 是否可以恢复删除的呢?

大佬好,现在历史记录模块是个很粗糙的实现,把所有事件都记录了下拉,但是可以实现针对特定事件的过滤,如果有你感兴趣或者比较着急的话可以提交一个PR,改动起来很简单,在save方法中,在push前加一下过滤。

https://github.com/nihaojob/vue-fabric-editor/blob/92871b7f0a37963abb7151607c011fb398e8d3bb/src/components/history.vue#L33-L42

https://github.com/nihaojob/vue-fabric-editor/blob/92871b7f0a37963abb7151607c011fb398e8d3bb/src/components/history.vue#L46-L52

from vue-fabric-editor.

xiaozeo avatar xiaozeo commented on August 15, 2024

我代码还没整理好,先不提交PR啦,周末尝试了一下,还是没搞出来。。。

from vue-fabric-editor.

nihaojob avatar nihaojob commented on August 15, 2024

我代码还没整理好,先不提交PR啦,周末尝试了一下,还是没搞出来。。。

可以加我微信哈,13146890191,有一个讨论群可以交流。

from vue-fabric-editor.

nihaojob avatar nihaojob commented on August 15, 2024

9df26a5

from vue-fabric-editor.

Related Issues (20)

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.