Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

how can i make a line clickable? #40

Open
giao123-cloud opened this issue Apr 15, 2022 · 1 comment
Open

how can i make a line clickable? #40

giao123-cloud opened this issue Apr 15, 2022 · 1 comment

Comments

@giao123-cloud
Copy link

let shapes = new PIXI.Graphics(); shapes.lineStyle(1 / scale, 0x4169e1, 1); shapes.moveTo(Apoints[0], Apoints[1]); shapes.lineTo(Bpoints[0], Bpoints[1]); shapes.isRobot = true; app.stage.addChild(shapes); shapes.on("pointerdown", function (e) { alert(111) });
i tried to make a line clickable, but failed, help!

@ivanpopelyshev
Copy link
Contributor

Wrong repo for that question

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

No branches or pull requests

2 participants