You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
382 B
JavaScript

import { HachureFiller } from './hachure-filler';
export class HatchFiller extends HachureFiller {
fillPolygon(points, o) {
const set = this._fillPolygon(points, o);
const o2 = Object.assign({}, o, { hachureAngle: o.hachureAngle + 90 });
const set2 = this._fillPolygon(points, o2);
set.ops = set.ops.concat(set2.ops);
return set;
}
}