如何禁用一个节点的缩放? Cytoscape.js [英] How to disabled zoom for one node? Cytoscape.js

查看:199
本文介绍了如何禁用一个节点的缩放? Cytoscape.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法为节点禁用缩放。

我在文档中搜索了所有单词,并且找不到缩放的机会。

I searched in docs all words zoom and cannot found this opportunities.

我想在某些节点属性上进行设置,例如 disabledZoom ,否则可能将为某些节点设置缩放。

I want set on some nodes property like disabledZoom or maybe it will be setting zoom for some nodes.

推荐答案

我搜索了答案,但只找到一个决定。 Cytoscape无法禁用一个节点进行缩放。我创建了手动缩放元素的示例。

I search answer and found only one decision. Cytoscape cannot disable one node for zoom. I created example with manual control zooming on the element.

示例: https://codesandbox.io/s/loving-sky-m5mze

这篇关于如何禁用一个节点的缩放? Cytoscape.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆