StageXL icon indicating copy to clipboard operation
StageXL copied to clipboard

Can contains function from Polygon.dart be used without importing 'dart:html' ?

Open Sacchid opened this issue 7 years ago • 1 comments

As, StageXL imports 'dart:html', it can not be used in console application or in aqueduct back-end.

As to check if point is present in polygon doesn't need 'dart:html', so is there any way this method be used in console application or in aqueduct back-end code?

Can a separate library for with above mentioned logic be created? or can logic/code of contains method be used there?

Sacchid avatar Apr 01 '19 10:04 Sacchid

have you tried to import the stagexl.geom library instead of the big stagexl library? https://github.com/bp74/StageXL/blob/master/lib/src/geom.dart

bp74 avatar Jul 30 '19 12:07 bp74