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

options.sizeMultiply, ${obj}.toString().indexOf('SVGElement') #227

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

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