Code Monkey home page Code Monkey logo

Comments (5)

weijiatan456 avatar weijiatan456 commented on June 16, 2024 1

设置: interacting: false
本来就有这个功能不是

from x6.

xlz122 avatar xlz122 commented on June 16, 2024 1

@weijiatan456 谢谢!之前没有注意到这个配置项。我明白这个配置只有在初始化图的时候才可以定义吧。如果想动态的改变的可交互性没有现有的方法呢。

可以设置为一个函数, 比如下面这样,非编辑return false, 编辑return true

interacting: function () {
if (!edit) {
return false;
}
return true;
},

from x6.

x6-bot avatar x6-bot commented on June 16, 2024

👋 @hooozen

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

from x6.

hooozen avatar hooozen commented on June 16, 2024

@weijiatan456
谢谢! 之前没有注意到这个配置项. 我理解这个配置只有在初始化 Graph 的时候才可以定义吧. 如果想动态的更改画布的可交互性有没有已有的方法呢.

from x6.

EziosWJ avatar EziosWJ commented on June 16, 2024

@weijiatan456 谢谢!之前没有注意到这个配置项。我明白这个配置只有在初始化图的时候才可以定义吧。如果想动态的改变的可交互性没有现有的方法呢。

可以设置为一个函数, 比如下面这样,非编辑return false, 编辑return true

interacting: function () { if (!edit) { return false; } return true; },

成功

from x6.

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.