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] Support stroke in Image mark #1733

Open
xiaoluoHe opened this issue Feb 14, 2025 · 0 comments
Open

[Bug] Support stroke in Image mark #1733

xiaoluoHe opened this issue Feb 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@xiaoluoHe
Copy link
Contributor

Version

latest

Link to Minimal Reproduction

none

Steps to Reproduce

const image = VRender.createImage({
  "image": "https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/shape_logo.png",
  stroke: 'rgb(255,0,0)',
  strokeOpacity: 1,
  lineWidth: 10,
  "x": 10,
  "y": 10,
  "width": 200,
  "height": 200,
});
const graphics = [];
graphics.push(image);

const stage = new Stage({
  container: CONTAINER_ID,
  autoRender: true
});

graphics.forEach(g => {
  stage.defaultLayer.add(g);
});

Current Behavior

Image

Expected Behavior

Image

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@xiaoluoHe xiaoluoHe added the bug Something isn't working label Feb 14, 2025
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