Comments (6)
👋 @xiyuvi
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.
有删除自定义Tool的方法吗
from x6.
我上面说的解决方法无效,重新跳转页面是一个新的vue实例,这导致在已经销毁的页面创建的btn1按钮,无法正常调用新页面的函数。我需要查询tool是否存在以及删除tool的方法,有人可以告诉我吗,十分感谢
from x6.
我解决了这个问题,使用的是unregisterNodeTool方法
虽然没有查找自定义tool是否存在的方法,但是删除不存在的tool并不会报错。
希望对和我遇到相同问题的人有帮助。
吐槽一下,官方文档没有写这个函数,问ai问题真的像炼丹,你永远不知道你会得到什么仙丹(ai告诉我的判断tool是否存在的方法hasNodeTool是错的,没有那个方法)
from x6.
的确没有 hasNodeTool 这个方法
只有 hasTool 跟 removeTool 🤔
from x6.
register 的有个force属性,会强制覆盖
from x6.
Related Issues (20)
- 希望可以出一个处理两个圆之间多条线的处理逻辑 HOT 1
- 导出的相关问题 HOT 3
- 官网文档中"连接桩 ToolTip"运行报错 HOT 1
- shape: html不渲染内容,一片空白 HOT 2
- 连接桩absolute的x和y安装绝对坐标移动 HOT 1
- 修改指定历史节点中的某个属性 HOT 2
- 给graph增加一个销毁画布的功能 HOT 4
- UI样式问题:页面导航超出隐藏了 HOT 1
- 2.X node-editor工具双击节点时节点的attrs.text.text被清空,无法获取到 HOT 3
- 2.X 希望增加节点标签的input和change事件
- toJSON({ diff: true })没有达到预期效果 HOT 4
- Hierarchy.mindmap渲染思维导图当设置collapsed为true时子节点丢失问题 HOT 2
- minimap 不使用Scroller插件,小地图和主图不匹配 HOT 2
- 使用@antv/layout中的gridlayout布局,参数无效 HOT 1
- undo redo 节点数据丢失问题 HOT 3
- 字体旋转变形 HOT 1
- x6 拖拽事事件和vue内部拖拽事件冲突,无法触发vue 拖拽事件 HOT 1
- 同时添加edge-editor工具和调整箭头工具的使用 HOT 3
- graph.fromJSON 接口是否可以支持diff部分更新
- this.graph.getContentBBox()计算graph高度不准确 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from x6.