-
Notifications
You must be signed in to change notification settings - Fork 22
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
Typ image doesn't work #3
Comments
+1 |
There are a few issues with how things are currently working: in utils.ts
additionally If you're trying to load an SVG Image, in
the CanavasManager will execute the draw() method, prior to completion of the XHR request. Values, such as:
Will not exist when, in the constructor for Particle:
is called:
Critical values for createSvgImg(store in
I think loadImg should be handled differently than it currently is. Ideally the XHR request is removed and updated to work more appropriately within Angular. |
Is there an update for this? |
Pull request: #16 |
Is there an update? When PR will be accepted? |
Thanks for the typeScript implementation but when I try to set an image for the type, I get an error:
ERROR TypeError: Cannot read property 'params' of undefined at loadImg (index.js:216) at ParticlesDirective.webpackJsonp.../../../../angular-particle/index.js.ParticlesDirective.ngAfterViewInit (index.js:1231) at callProviderLifecycles (core.es5.js:11182) at callElementProvidersLifecycles (core.es5.js:11157) at callLifecycleHooksChildrenFirst (core.es5.js:11141) at checkAndUpdateView (core.es5.js:12246) at callViewAction (core.es5.js:12603) at execComponentViewsAction (core.es5.js:12535) at checkAndUpdateView (core.es5.js:12244) at callViewAction (core.es5.js:12603)
myParams:
shape: { type: 'image', stroke: { width: 2, color: '#f0f8f5' }, image: { src: 'IMAGE PATH HERE' } },
The text was updated successfully, but these errors were encountered: