StageXL
StageXL copied to clipboard
Can contains function from Polygon.dart be used without importing 'dart:html' ?
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?
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