mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-27 02:05:34 +02:00
intersections
This commit is contained in:
@@ -128,8 +128,8 @@ class GraphicsAPI extends BaseAPI {
|
||||
if (points) this.setMovable(points);
|
||||
}
|
||||
|
||||
setMovable(points) {
|
||||
points.forEach((p) => this.movable.push(p));
|
||||
setMovable(...allpoints) {
|
||||
allpoints.forEach((points) => points.forEach((p) => this.movable.push(p)));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -318,6 +318,22 @@ class GraphicsAPI extends BaseAPI {
|
||||
this.setStroke(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* stroke + fill
|
||||
*/
|
||||
setColor(color) {
|
||||
this.setFill(color);
|
||||
this.setStroke(color);
|
||||
}
|
||||
|
||||
/**
|
||||
* no stroke/fill
|
||||
*/
|
||||
noColor() {
|
||||
this.noFill();
|
||||
this.noStroke();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a text stroke/color
|
||||
*/
|
||||
|
Reference in New Issue
Block a user