Coder Social home page Coder Social logo

导入 vue 组件自定义节点和 html 自定义节点时,无法控制节点大小,始终会渲染成一个固定尺寸 about x6 HOT 4 CLOSED

FullStackPlayer avatar FullStackPlayer commented on June 5, 2024
导入 vue 组件自定义节点和 html 自定义节点时,无法控制节点大小,始终会渲染成一个固定尺寸

from x6.

Comments (4)

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

👋 @FullStackPlayer

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.

fuxichen avatar fuxichen commented on June 5, 2024

image
应该是你自己代码问题哦,
他渲染的节点里面用了body标签,然后你代码里设置了body标签的最小宽高,所以才会变得很大

from x6.

FullStackPlayer avatar FullStackPlayer commented on June 5, 2024

image 应该是你自己代码问题哦, 他渲染的节点里面用了body标签,然后你代码里设置了body标签的最小宽高,所以才会变得很大

感谢您的分析和提示,实在没想到问题竟然出在这里,svg 下的 foreignObject 下面的 body 竟然应用了我的全局 body style,现在我知道怎么处理了,非常感谢。

from x6.

FullStackPlayer avatar FullStackPlayer commented on June 5, 2024

问题已经解决,这不是个 bug,属于一种边界情况,感谢 @fuxichen 的帮助。

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.