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

[Bug] stroke attribute when area has segments render wrong #392

Closed
xile611 opened this issue Aug 29, 2023 · 0 comments
Closed

[Bug] stroke attribute when area has segments render wrong #392

xile611 opened this issue Aug 29, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@xile611
Copy link
Contributor

xile611 commented Aug 29, 2023

Version

0.14.5

Link to Minimal Reproduction

no need

Steps to Reproduce

{
    "lineDash": [
        0
    ],
    "texture": null,
    "y1": 0,
    "enableSegments": true,
    "segments": [
        {
            "x": 0,
            "y": 0,
            "lineDash": [
                0
            ],
            "texture": null,
            "y1": 370,
            "points": [
                {
                    "x": 143.52631578947364,
                    "y": 338.7054,
                    "context": 0,
                    "y1": 370
                },
                {
                    "x": 334.8947368421052,
                    "y": 340.90319999999997,
                    "context": 4,
                    "y1": 370
                },
                {
                    "x": 526.2631578947368,
                    "y": 331.3646,
                    "context": 8,
                    "y1": 370
                },
                {
                    "x": 717.6315789473684,
                    "y": 301.5056,
                    "context": 12,
                    "y1": 370
                },
                {
                    "x": 909,
                    "y": 345.5208,
                    "context": 16,
                    "y1": 370
                },
                {
                    "x": 1100.3684210526314,
                    "y": 329.8032,
                    "context": 20,
                    "y1": 370
                },
                {
                    "x": 1291.7368421052631,
                    "y": 268.61260000000004,
                    "context": 24,
                    "y1": 370
                }
            ]
        },
        {
            "x": 0,
            "y": 0,
            "lineDash": [
                5,
                5
            ],
            "texture": "bias-rl",
            "y1": 370,
            "points": [
                {
                    "x": 1483.1052631578946,
                    "y": 340.3408,
                    "context": 28,
                    "y1": 370
                },
                {
                    "x": 1674.4736842105262,
                    "y": 231.53119999999998,
                    "context": 32,
                    "y1": 370
                }
            ]
        }
    ],
    "points": null,
    "visible": true,
    "lineWidth": 2,
    "lineCap": "round",
    "fillOpacity": 0.5,
    "textureColor": "#fff",
    "textureSize": 14,
    "fill": "#1664FF",
    "stroke": [
        "#1664FF",
        false,
        false,
        false
    ],
    "defined": true,
    "connectedType": "none",
    "x": 0,
    "y": 0,
    "x1": 0,
    "pickable": true
}

Current Behavior

image

Expected Behavior

the stroke of area be render right

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@xile611 xile611 added the bug Something isn't working label Aug 29, 2023
neuqzxy added a commit that referenced this issue Aug 29, 2023
fix: fix the issue of area stroke, closed #392
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant