You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
Seems like you need type definitions for this library.
Unfortunately it doesn't have them, so you will have to write them yourself.
E: I might make a PR with the typings if I have enough time.
I am trying to use this from angular application.
Tried
npm install marchingsquares
This worked fine and updated package.json.
But in the .ts the following does not work
import {MarchingSquaresJS} from "marchingsquares.min.js";
import { MarchingSquaresJS } from "@node_modules/marchingsquares/dist/marchingsquares.min.js";
Also tried import * as MarchingSquaresJS from '.....'
Tried importing marchingsquares.js, marchingsquares.min.js.
It does not seem to import MarchingSquaresJS and failes with error ' MarchingSquaresJS is not a constructor'
Please let me know any working stackblitz example on angular.
Thanks
Ishwar
The text was updated successfully, but these errors were encountered: