Giter Site home page Giter Site logo

Comments (9)

destiny516 avatar destiny516 commented on June 12, 2024

还有一个问题,当我把最大高或宽与初始高或宽设置成一样的时候,也会失效, 比如

initNodeData(data) {
        super.initNodeData(data);
        this.width = 160
        this.height = 20
        this.radius = 5
        this.maxWidth = 300;
        this.maxHeight = 20;
}

from logicflow.

destiny516 avatar destiny516 commented on June 12, 2024

所以延伸出一个问题,如果我只想宽或高缩放的需求的话怎么办?

from logicflow.

DymoneLewis avatar DymoneLewis commented on June 12, 2024

您好,这边排查了一下原因应该是core包和extension包版本不一致导致的,辛苦升级下extension版本

from logicflow.

DymoneLewis avatar DymoneLewis commented on June 12, 2024

所以延伸出一个问题,如果我只想宽或高缩放的需求的话怎么办?

对于这个需求,可以设置节点的宽高的min值和max值一致,不过当前最新resizeNode插件中这么设置之后操作起来体验比较差,这两天会发布新版本完全支持上

from logicflow.

destiny516 avatar destiny516 commented on June 12, 2024

好的,谢谢

from logicflow.

destiny516 avatar destiny516 commented on June 12, 2024

我发现在
"@logicflow/core": "^1.2.26",
"@logicflow/extension": "^1.2.26"
版本下,缩放也是不生效的
代码示例

from logicflow.

DymoneLewis avatar DymoneLewis commented on June 12, 2024

了解,这边看下∠(°ゝ°)

from logicflow.

destiny516 avatar destiny516 commented on June 12, 2024

还有一个最低高度的问题,就是高度设置成30以下,是不能缩放的,最小30.

from logicflow.

DymoneLewis avatar DymoneLewis commented on June 12, 2024

还有一个最低高度的问题,就是高度设置成30以下,是不能缩放的,最小30.

因为ResizeNode内部设置了的minHeight(就是30),如果有更小的诉求的话,在自定义的节点里重新设置一下this.minHeight就行

from logicflow.

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.