-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
chore(TS): Image #8443
chore(TS): Image #8443
Conversation
Build Stats
|
* @param filtered | ||
* @deprecated | ||
*/ | ||
getSvgSrc(filtered?: boolean) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be removed
src/shapes/image.class.ts
Outdated
* @param {Array} filters to be applied | ||
* @param {Boolean} forResizing specify if the filter operation is a resize operation | ||
*/ | ||
applyFilters(filters = this.filters || []) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
failing tests for some reason
* @private | ||
* @param {Object} [options] Options object | ||
*/ | ||
_initConfig: function (options) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost done
remove `_initElement`
the merge conflicts aren't great here. Must be my filter change. |
Tomorrow I will finish this up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
triaging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finally after redoing everything I found the very very minor error in coversion.
It was hidden in fromObject
, didn't pass src
/** | ||
* @tutorial {@link http://fabricjs.com/fabric-intro-part-1#images} | ||
*/ | ||
export class Image extends FabricObject { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this name is a pain as it is Object now. doing new Image() can't be really done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, wasn't sure what to do cause if we name it FabricImage then maybe every thing should become FabricXXX
Motivation
Description
Changes
Gist
In Action