Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.

Conversation

@0student
Copy link

SVGElement instanceof does not work in Chrome
added options.sizeMultiply to specify image size larger than screen size

const multiple = (options.sizeMultiply || 1)

const isElement = obj => obj instanceof HTMLElement || obj instanceof SVGElement || (`${obj}`.toString().indexOf('SVGElement') > -1);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant