Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sacchid opened this issue Apr 1, 2019 · 1 comment

Comments

@Sacchid
Copy link

Sacchid commented Apr 1, 2019

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?

@bp74
Copy link
Owner

bp74 commented Jul 30, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants