checkpoint traces work

This commit is contained in:
Stewart Allen 2020-12-01 00:35:25 -05:00
commit 94dc665231
5 changed files with 26 additions and 11 deletions

View file

@ -1998,10 +1998,10 @@
API.platform.update_size();
SPACE.mouse.onHover((int, ev) => {
SPACE.mouse.onHover((int, ev, ints) => {
if (!API.feature.hover) return;
if (!int) return API.widgets.meshes();
API.event.emit('mouse.hover', {int, point: int.point, type: 'widget'});
API.event.emit('mouse.hover', {int, ints, point: int.point, type: 'widget'});
});
SPACE.platform.onHover((int, ev) => {

View file

@ -611,6 +611,7 @@
// emit a polygon if it can be cleaned and still have 2 or more points
function emit(poly) {
poly = poly.clean();
if (poly.length === 2 && opt.openok) poly.setOpen();
if (poly.length >= minPoly) output.push(poly);
}