Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

markup 中rect的 fill和stroke 一直展示默认值 #4078

Open
yirelia opened this issue Dec 6, 2023 · 0 comments
Open

markup 中rect的 fill和stroke 一直展示默认值 #4078

yirelia opened this issue Dec 6, 2023 · 0 comments

Comments

@yirelia
Copy link

yirelia commented Dec 6, 2023

问题描述

x6 版本 1.32.11
通过markup 自定义了 rect 属性如下
fill, stroke, strokeWidth一直显示默认值。
其他属性都是成功设置

重现链接

https://codesandbox.io/p/sandbox/test-x6-m5zxlr?file=%2Fsrc%2FApp.tsx%3A28%2C24

重现步骤

markup 数据如下

{
    "tagName": "rect",
    "attrs": {
        "x": -30,
        "y": -15,
        "width": 60,
        "height": 30,
        "rx": 0,
        "ry": 0,
        "fill": "rgb(255,255,255)",
        "stroke": "rgb(255,255,255)",
        "strokeWidth": 0.9448818897637796,
        "strokeDasharray": "0",
        "transform": "rotate(0, 0, 0) translate(0,0) scale(1,1) translate(0,0) rotate(0, 0, 0)",
        "opacity": 1,
        "magnet": false
    }
}

预期行为

stroke && fill 设置为用户设置的值

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [1.32.11 ...]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant