1 | # Changelog
|
2 |
|
3 | ## [2.4.1]
|
4 | - Fix: Avoid enterEditing if another object is the activeObject [#5261](https://github.com/fabricjs/fabric.js/pull/5261)
|
5 | - Fix: clipPath enliving for Image fromObject [#5279](https://github.com/fabricjs/fabric.js/pull/5279)
|
6 | - Fix: toDataURL and canvas clipPath [#5278](https://github.com/fabricjs/fabric.js/pull/5278)
|
7 | - Fix: early return if no xml is available [#5263](https://github.com/fabricjs/fabric.js/pull/5263)
|
8 | - Fix: clipPath svg parsing in nodejs [#5262](https://github.com/fabricjs/fabric.js/pull/5262)
|
9 | - Fix: Avoid running selection logic on mouse up [#5259](https://github.com/fabricjs/fabric.js/pull/5259)
|
10 | - Fix: fix font size parsing on SVG [#5258](https://github.com/fabricjs/fabric.js/pull/5258)
|
11 | - Fix: Avoid extra renders on mouseUp/Down [#5256](https://github.com/fabricjs/fabric.js/pull/5256)
|
12 |
|
13 | ## [2.4.0]
|
14 | - Add: Add clipPath support to canvas and svg import/export. Low compatibility yet.
|
15 |
|
16 | ## [2.3.6]
|
17 | - Fix: Make image.class aware of naturalWidth and naturalHeight. [#5178](https://github.com/fabricjs/fabric.js/pull/5178)
|
18 | - Fix: Make 2 finger events works again [#5177](https://github.com/fabricjs/fabric.js/pull/5177)
|
19 | - Fix: Make Groups respect origin and correct position ( fix spray/circle brushes ) [#5176](https://github.com/fabricjs/fabric.js/pull/5176)
|
20 |
|
21 | ## [2.3.5]
|
22 | - Change: make canvas.getObjects() always return a shallow copy of the array [#5162](https://github.com/fabricjs/fabric.js/pull/5162)
|
23 | - Fix: Improve fabric.Pattern.toSVG to look correct on offsets and no-repeat [#5164](https://github.com/fabricjs/fabric.js/pull/5164)
|
24 | - Fix: Do not enter edit in Itext if the mouseUp is relative to a group selector [#5153](https://github.com/fabricjs/fabric.js/pull/5153)
|
25 | - Improvement: Do not require xlink namespace in front of href attribut for svgs ( is a SVG2 new spec, unsupported ) [#5156](https://github.com/fabricjs/fabric.js/pull/5156)
|
26 | - Fix: fix resizeFilter having the wrong cached texture, also improved interaction between filters [#5165](https://github.com/fabricjs/fabric.js/pull/5165)
|
27 |
|
28 | ## [2.3.4]
|
29 | - Fix: ToSVG was ignoring excludeFromExport for backgroundImage and OverlayImage. [#5075](https://github.com/fabricjs/fabric.js/pull/5075)
|
30 | - Fix: ToSVG for circle with start and end angles. [#5085](https://github.com/fabricjs/fabric.js/pull/5085)
|
31 | - Fix: Added callback for setPatternFill. [#5101](https://github.com/fabricjs/fabric.js/pull/5101)
|
32 | - Fix: Resize filter taking in account multiple scale sources. [#5117](https://github.com/fabricjs/fabric.js/pull/5117)
|
33 | - Fix: Blend image filter clean after refilter. [#5121](https://github.com/fabricjs/fabric.js/pull/5121)
|
34 | - Fix: Object.toDataURL should not be influenced by zoom. [#5139](https://github.com/fabricjs/fabric.js/pull/5139)
|
35 | - Improvement: requestRenderAllBound add to Canvas instance. [#5138](https://github.com/fabricjs/fabric.js/pull/5138)
|
36 | - Improvement: Make path bounding cache optional and also reacheable/cleanable [#5140](https://github.com/fabricjs/fabric.js/pull/5140)
|
37 | - Improvement: Make the logic of isNeutralState filters work before filtering start. [#5129](https://github.com/fabricjs/fabric.js/pull/5129)
|
38 | - Improvement: Added some code to clean up some memory when canvas is disposed in nodejs. [#5142](https://github.com/fabricjs/fabric.js/pull/5142)
|
39 | - Fix: Make numeric origins work with group creation. [#5143](https://github.com/fabricjs/fabric.js/pull/5143)
|
40 |
|
41 | ## [2.3.3]
|
42 | - Fix: Fixed font generic names for text, measurement of zero width related characters and also trailing of cursor when zooming. [#5048](https://github.com/fabricjs/fabric.js/pull/5048)
|
43 |
|
44 | ## [2.3.2]
|
45 | - Fix: justify + charspacing + textDecoration Add and improve more events for transformations and mouse interaction. [#5007](https://github.com/fabricjs/fabric.js/pull/5007) [#5009](https://github.com/fabricjs/fabric.js/pull/5009)
|
46 | - Fix: Enter edit on object selected programmatically. [#5010](https://github.com/fabricjs/fabric.js/pull/5010)
|
47 | - Fix: Canvas.dispose was not removing all events properly. [#5020](https://github.com/fabricjs/fabric.js/pull/5020)
|
48 | - Fix: Make rgba and hsla regex work case insensitive. [#5017](https://github.com/fabricjs/fabric.js/pull/5017)
|
49 | - Fix: Make group transitioning from not cached to cached work. [#5021](https://github.com/fabricjs/fabric.js/pull/5021)
|
50 |
|
51 | ## [2.3.1]
|
52 | - Improve nested svg import and text positioning, spikes. [#4984](https://github.com/kangax/fabric.js/pull/4984)
|
53 |
|
54 | ## [2.3.0]
|
55 | - Add and improve more events for transformations and mouse interaction [#4979](https://github.com/kangax/fabric.js/pull/4979)
|
56 | - Improvement: whenever possible use cache for target transparency sampling [#4955](https://github.com/kangax/fabric.js/pull/4955)
|
57 |
|
58 | ## [2.2.4]
|
59 | - Fix getPointer on touch devices [#4866](https://github.com/kangax/fabric.js/pull/4866)
|
60 | - Fix issues with selectionDashArray bleeding into free drawing [#4894](https://github.com/kangax/fabric.js/pull/4894)
|
61 | - Fix blur filter for nodejs [#4905](https://github.com/kangax/fabric.js/pull/4905)
|
62 | - Fix Register mousemove as non passive to help touch devices [#4933](https://github.com/kangax/fabric.js/pull/4933)
|
63 | - Fix modified shadow tosvg for safari compatibility [#4934](https://github.com/kangax/fabric.js/pull/4934)
|
64 | - Fix shader to avoid premultiplied alpha pixel getting dirty in blend filter [#4936](https://github.com/kangax/fabric.js/pull/4936)
|
65 | - Add isPartiallyOnScreen method [#4856](https://github.com/kangax/fabric.js/pull/4856)
|
66 | - Fix isEqual failing on array/null or objects/null/string compare [#4949](https://github.com/kangax/fabric.js/pull/4949)
|
67 | - Fix pencilBrush with alpha and with rerendering canvas [#4938](https://github.com/kangax/fabric.js/pull/4938)
|
68 |
|
69 | ## [2.2.3]
|
70 | - improvement: Allow to parse quoted url string. url('#myid') [#4881](https://github.com/kangax/fabric.js/pull/4881)
|
71 | - improvement: text fromSVG import char-spacing attribute [#3718](https://github.com/kangax/fabric.js/pull/3718)
|
72 | - fix: text toSVG export with multiple spaces in safari [#4880](https://github.com/kangax/fabric.js/pull/4880)
|
73 | - fix: setSrc reset width and height on images [#4877](https://github.com/kangax/fabric.js/pull/4877)
|
74 | - improvements: Removed forced origin swap when rotating [#4878](https://github.com/kangax/fabric.js/pull/4878)
|
75 | - fix: Make the background of canvas cover all SVG in toSVG export [#4852](https://github.com/kangax/fabric.js/pull/4852)
|
76 | - fix: Added startAngle to cacheProperties for fabric.Circle [#4875](https://github.com/kangax/fabric.js/pull/4875)
|
77 | - fix: Rerender all the content of upperCanvas if canvas gets resized [#4850](https://github.com/kangax/fabric.js/pull/4850)
|
78 | - fix: Remove references to context when disposing [#4846](https://github.com/kangax/fabric.js/pull/4846)
|
79 | - improvements: Added single quoting to font names in toSVG [#4840](https://github.com/kangax/fabric.js/pull/4840)
|
80 | - improvements: Added reserved space to wrapLine functionality [#4841](https://github.com/kangax/fabric.js/pull/4841)
|
81 |
|
82 | ## [2.2.2]
|
83 | - Fixed: Applying filters to an image will invalidate its cache [#4828](https://github.com/kangax/fabric.js/pull/4828)
|
84 | - Fixed: Attempt at fix font families that requires quoting [#4831](https://github.com/kangax/fabric.js/pull/4831)
|
85 | - Improvement: check upperCanvas client size for textarea position [#4827](https://github.com/kangax/fabric.js/pull/4827)
|
86 | - Fixed: Attempt to fix multiple touchends [#4804](https://github.com/kangax/fabric.js/pull/4804)
|
87 | - Fixed: Wrapping of textbox with charspacing [#4803](https://github.com/kangax/fabric.js/pull/4803)
|
88 | - Fixed: bad calculation of empty line in text (regression from 2.2.0) [#4802](https://github.com/kangax/fabric.js/pull/4802)
|
89 |
|
90 | ## [2.2.1]
|
91 | - Reworked how amd and commonJS are together in the same file.
|
92 |
|
93 | ## [2.2.0]
|
94 | - Fixed: super/sub script svg export [#4780](https://github.com/kangax/fabric.js/pull/4780)
|
95 | - Added: Text superScript and subScript support [#4765](https://github.com/kangax/fabric.js/pull/4765)
|
96 | - Fixed: negative kerning support (Pacifico font) [#4772](https://github.com/kangax/fabric.js/pull/4772)
|
97 | - Fixed: removing text on mousedown should be safe now [#4774](https://github.com/kangax/fabric.js/pull/4774)
|
98 | - Improved: pass to inner functions the parameter calculate coords in isOnscreen [#4763](https://github.com/kangax/fabric.js/pull/4763)
|
99 |
|
100 | ## [2.1.0]
|
101 | - Added: Added: Drag and drop event binding [#4421](https://github.com/kangax/fabric.js/pull/4421)
|
102 | - Fixed: isEmptyStyle implementation for TextBox [#4762](https://github.com/kangax/fabric.js/pull/4762)
|
103 |
|
104 | ## [2.0.3]
|
105 | - Fix: now sub target check can work with subclasses of fabric.Group [#4753](https://github.com/kangax/fabric.js/pull/4753)
|
106 | - Improvement: PencilBrush is now compexity 1 instead of complexity N during draw [#4743](https://github.com/kangax/fabric.js/pull/4743)
|
107 | - Fix the cleanStyle was not checking for the right property to exist [#4751](https://github.com/kangax/fabric.js/pull/4751)
|
108 | - Fix onBeforeScaleRotate with canvas zoom [#4748](https://github.com/kangax/fabric.js/pull/4748)
|
109 |
|
110 | ## [2.0.2]
|
111 | - fixed image toSVG support for crop [#4738](https://github.com/kangax/fabric.js/pull/4738)
|
112 | - changed math for better rounded results [#4734](https://github.com/kangax/fabric.js/pull/4734)
|
113 |
|
114 | ## [2.0.1]
|
115 | - fixed filter for blend image in WEBGL [#4706](https://github.com/kangax/fabric.js/pull/4706)
|
116 | - fixed interactions between canvas toDataURL and multiplier + retina [#4705](https://github.com/kangax/fabric.js/pull/4705)
|
117 | - fixed bug with originX and originY not invalidating the transform [#4703](https://github.com/kangax/fabric.js/pull/4703)
|
118 | - fixed unwanted mutation on object enliving in fabric.Image [#4699](https://github.com/kangax/fabric.js/pull/4699)
|
119 | ## [2.0.0]
|
120 | - final
|
121 | - fix dataurl and svg export on retina and rounding [#4674](https://github.com/kangax/fabric.js/pull/4674)
|
122 | - avoid error if iText is removed on mousedown [#4650](https://github.com/kangax/fabric.js/pull/4650)
|
123 | - fix calcOffset when text enter editing [#4649](https://github.com/kangax/fabric.js/pull/4649)
|
124 | - Gradient fix parsing floats [#4637](https://github.com/kangax/fabric.js/pull/4637)
|
125 | - Add CrossOrigin managment to fabric.Pattern [#4618](https://github.com/kangax/fabric.js/pull/4618)
|
126 | - Add patternTransform toObject saving [#4626](https://github.com/kangax/fabric.js/pull/4626)
|
127 | - normalize brushes render [#4613](https://github.com/kangax/fabric.js/pull/4613)
|
128 | - avoid charspacing shortcut [#4594](https://github.com/kangax/fabric.js/pull/4594)
|
129 | - Fix color toHexa() [#4579](https://github.com/kangax/fabric.js/pull/4579)
|
130 | - rc3 and rc4
|
131 | - more fixes to transformMatrix memoization
|
132 | - Canvas.selectionFullyContained allows you to select objects just when full grabbed by the selections. [#4508](https://github.com/kangax/fabric.js/pull/4508)
|
133 | - Remove some ouput of blank spaces from svg in order to avoid extra colored areas [#4524](https://github.com/kangax/fabric.js/pull/4524)
|
134 | - Reinserted a performance shortcut for when there is no style at all [#4519](https://github.com/kangax/fabric.js/pull/4519)
|
135 | - Manage canvas resize during a freedrawing brush without wiping the brush [#4527](https://github.com/kangax/fabric.js/pull/4527)
|
136 | - Removed an extra closePath that was creating wrong visual on IntelIntegrated cards [#4549](https://github.com/kangax/fabric.js/pull/4549)
|
137 | - Added a method to insert and remove text from command line [#4541](https://github.com/kangax/fabric.js/pull/4541)
|
138 | - Some fixes around text styles management
|
139 | - nodejs support changes: removed specific node code in order to use standard fabricjs code in nodejs.
|
140 | - added fabric.util.getNodeCanvas that passed a JSDOM element allows you to get the node-canvas instance behind it and do what you need.
|
141 | - rc2
|
142 | - Fixed a transform matrix memoize missing width/height [#4491](https://github.com/kangax/fabric.js/pull/4491)
|
143 | - Fix pattern drawing a point [#4492](https://github.com/kangax/fabric.js/pull/4492)
|
144 | - Fixed Text.removeChars [#4495](https://github.com/kangax/fabric.js/pull/4495)
|
145 | - Added back 2 node-canvas methods [#4497](https://github.com/kangax/fabric.js/pull/4497)
|
146 | - Fix a typo not restoring hoverCursor correctly.
|
147 | - rc1
|
148 | - Remove node specific code [#4470](https://github.com/kangax/fabric.js/pull/4470)
|
149 | - Improved Canvas.dispose code to leak less memory [#4471](https://github.com/kangax/fabric.js/pull/4471)
|
150 | - Remove extra padding of cache when upper limited [#4467](https://github.com/kangax/fabric.js/pull/4467)
|
151 | - Solved 2 perfomances problems with textbox [#4466](https://github.com/kangax/fabric.js/pull/4466) [#4465](https://github.com/kangax/fabric.js/pull/4465)
|
152 | - Added justify-left justify-right and justify-center [#4437](https://github.com/kangax/fabric.js/pull/4437)
|
153 | - Fix Group fromObject and subTargetCheck [#4454](https://github.com/kangax/fabric.js/pull/4454)
|
154 | - Fix regression on IMG from SVG [#4450](https://github.com/kangax/fabric.js/pull/4450)
|
155 | - Remove cache dimensions together with canvas [#4453](https://github.com/kangax/fabric.js/pull/4453)
|
156 | - Fixed some fuzzyness cases for cache [#4452](https://github.com/kangax/fabric.js/pull/4452)
|
157 | - Fixed resize filter for webgl [#4426](https://github.com/kangax/fabric.js/pull/4426)
|
158 | - Stop searching target during a mouse move with a transform [#4442](https://github.com/kangax/fabric.js/pull/4442)
|
159 | - safeguard shaders for non supported precisions [#4433](https://github.com/kangax/fabric.js/pull/4433)
|
160 | - fix insert and remove style for edge cases [#4420](https://github.com/kangax/fabric.js/pull/4420)
|
161 | - Fix object.move when in active selection [#4394](https://github.com/kangax/fabric.js/pull/4394)
|
162 | - Memoize calcTransformMatrix function [#4418](https://github.com/kangax/fabric.js/pull/4418)
|
163 | - Make _set flag object as dirty just when a real change happen[#4415](https://github.com/kangax/fabric.js/pull/4415)
|
164 | - Add browserShadowBlurConstant to adjust shadowBlur value [#4413](https://github.com/kangax/fabric.js/pull/4413)
|
165 | - Fix set element not clearing the cacheTexture. [#4410](https://github.com/kangax/fabric.js/pull/4410)
|
166 | - Multi selection key can be configured with an array of keys. [#4363](https://github.com/kangax/fabric.js/pull/4363)
|
167 | - fix fast type in text loosing some style. [#4339](https://github.com/kangax/fabric.js/pull/4339)
|
168 | - fixed division by zero with lockscaling flip.
|
169 | - added paintFirst ( paint-order with svg support ) [#4303](https://github.com/kangax/fabric.js/pull/4303)
|
170 | - beta7
|
171 | - added a build flag for not attaching fabric to window [#4199](https://github.com/kangax/fabric.js/pull/4199)
|
172 | - removed .active property from objects [#4200](https://github.com/kangax/fabric.js/pull/4200)
|
173 | - Normalize Api for getSelectionStyles, setSelectionStyles [#4202](https://github.com/kangax/fabric.js/pull/4202)
|
174 | - Fix shader for convolute filter [#4207](https://github.com/kangax/fabric.js/pull/4207)
|
175 | - Better mouse support for lockscaling flip [#4225](https://github.com/kangax/fabric.js/pull/4225)
|
176 | - Fix toDataUrl getting a blank canvas [#4229](https://github.com/kangax/fabric.js/pull/4229)
|
177 | - Ouput version to json Objects [#4251](https://github.com/kangax/fabric.js/pull/4251)
|
178 | - Use backstoreOnly for toDataUrl resize [#4254](https://github.com/kangax/fabric.js/pull/4254)
|
179 | - Fix safari svg whitespace [#4294](https://github.com/kangax/fabric.js/pull/4294)
|
180 | - Fix Gradient export for paths [#4274](https://github.com/kangax/fabric.js/pull/4274)
|
181 | - Move mouseout/over in mousemove events [#4283](https://github.com/kangax/fabric.js/pull/4283)
|
182 | - Fix detection of click at the end of line [#4295](https://github.com/kangax/fabric.js/pull/4295)
|
183 | - added new event selection:updated [#4311](https://github.com/kangax/fabric.js/pull/4311)
|
184 | - Fixed free drawing path displacement [#4311](https://github.com/kangax/fabric.js/pull/4311)
|
185 | - Fixed scale equally and flipping not happening [#4313](https://github.com/kangax/fabric.js/pull/4313)
|
186 | - Select by drag makes the object fires 'selected' [#4314](https://github.com/kangax/fabric.js/pull/4314)
|
187 | - beta6
|
188 | - incompat: New filter system with WEBGL.
|
189 | - incompat: New Text/IText/Textbox code. Multibyte compatible, more accurate.
|
190 | - incompat: RequestAnimationFrame is used for the automatic render calls.
|
191 | - incompat: Named setter/getter are optional now.
|
192 | - incompat: Removed PathGroup class
|
193 | - incompat: Paths cannot be restored anymore from strings [#3713](https://github.com/kangax/fabric.js/pull/3713)
|
194 | - incompat: bumped node version to 4+ and jsdom to 9. [#3717](https://github.com/kangax/fabric.js/pull/3717)
|
195 | - incompat: removed the es5 / JSON shim support [#3722](https://github.com/kangax/fabric.js/pull/3722)
|
196 | - fix/incompat: IText setSelectionStyles does not change anymore style if no selection is present [#3765](https://github.com/kangax/fabric.js/pull/3765)
|
197 | - skipOffscreen default to true
|
198 | - Text.setSelectionStyle does not change anything if there is no selection [#3765](https://github.com/kangax/fabric.js/pull/3765)
|
199 | - Switch to canvas-prebuilt as dependency. Added parameter to choose the canvas package [#3757](https://github.com/kangax/fabric.js/pull/3757)
|
200 | - improvement: renderControls can now be called on its own. Added parameter styleOverride to allow for overriding current properties [#3887](https://github.com/kangax/fabric.js/pull/3887)
|
201 | - removed hasMoved and saveCoords from Group class [#3910](https://github.com/kangax/fabric.js/pull/3910)
|
202 | - forced all fromObject and fromElement to be async, normalized api. [#3996](https://github.com/kangax/fabric.js/pull/3996)
|
203 | - improvement: added support for request animation frame in mouse events [#3997](https://github.com/kangax/fabric.js/pull/3997)
|
204 | - added dblclick support for all objects [#3998](https://github.com/kangax/fabric.js/pull/3997)
|
205 | - textbox scale as a normal object [#4052](https://github.com/kangax/fabric.js/pull/4052)
|
206 | - Removed image meetOrSlice, alignX, alignY, introduced cropX, cropY [#4055](https://github.com/kangax/fabric.js/pull/4055)
|
207 | - Added Text.cleanStyle, Text.removeStyle [#4060](https://github.com/kangax/fabric.js/pull/4060)
|
208 | - change: lockRotation will not hide the mtr control anymore. introduced notAllowedCursor for canvas. [#4064](https://github.com/kangax/fabric.js/pull/4064)
|
209 | - improvement: added 2 percentage values to fabric.util.animate. [#4068](https://github.com/kangax/fabric.js/pull/4068)
|
210 | - change: pathOffset does not get exported anymore in path.toObject, toDatalessObject export sourcePath instead of modifying path. [#4108](https://github.com/kangax/fabric.js/pull/4108)
|
211 |
|
212 | ## [1.7.19]
|
213 |
|
214 | - Fixed the flip of images with scale equally [#4313](https://github.com/kangax/fabric.js/pull/4313)
|
215 | - Improved touch detection [#4302](https://github.com/kangax/fabric.js/pull/4302)
|
216 |
|
217 |
|
218 | ## [1.7.18]
|
219 |
|
220 | - Fixed doubling of subtargets for preserveObjectStacking = true [#4297](https://github.com/kangax/fabric.js/pull/4297)
|
221 | - Added a dirty set to objects in group destroy.
|
222 |
|
223 | ## [1.7.17]
|
224 |
|
225 | - Change: swapped style white-space:nowrap with attribute wrap="off" since the style rule was creating problems in browsers like ie11 and safari. [#4119](https://github.com/kangax/fabric.js/pull/4119)
|
226 | - Fix: Remove an object from activeGroup if removed from canvas [#4120](https://github.com/kangax/fabric.js/pull/4120)
|
227 | - Fix: avoid bringFroward, sendBackwards to swap objects in active selections [#4119](https://github.com/kangax/fabric.js/pull/4119)
|
228 | - Fix: avoid disposing canvas on mouse event to throw error [#4119](https://github.com/kangax/fabric.js/pull/4119)
|
229 | - Fix: make svg respect white spaces [#4119](https://github.com/kangax/fabric.js/pull/4119)
|
230 | - Fix: avoid exporting bgImage and overlayImage if excludeFromExport = true [#4119](https://github.com/kangax/fabric.js/pull/4119)
|
231 | - Fix: Avoid group fromObject mutating original data [#4111](https://github.com/kangax/fabric.js/pull/4111)
|
232 |
|
233 | ## [1.7.16]
|
234 |
|
235 | - improvement: added 2 percentage values to fabric.util.animate. [#4068](https://github.com/kangax/fabric.js/pull/4068)
|
236 | - Improvement: avoid multiplying identity matrices in calcTransformMatrix function
|
237 | - Fix: activeGroup did not destroy correctly if a toObject was happening
|
238 | - Improvement: Pass the event to object:modified when available. [#4061](https://github.com/kangax/fabric.js/pull/4061)
|
239 |
|
240 |
|
241 | ## [1.7.15]
|
242 |
|
243 | - Improvement: Made iText keymap public. [#4053](https://github.com/kangax/fabric.js/pull/4053)
|
244 | - Improvement: Fix a bug in updateCacheCanvas that was returning always true [#4051](https://github.com/kangax/fabric.js/pull/4051)
|
245 |
|
246 | ## [1.7.14]
|
247 |
|
248 | - Improvement: Avoid cache canvas to resize each mouse move step. [#4037](https://github.com/kangax/fabric.js/pull/4037)
|
249 | - Improvement: Make cache canvas limited in size. [#4035](https://github.com/kangax/fabric.js/pull/4035)
|
250 | - Fix: Make groups and statefull cache work. [#4032](https://github.com/kangax/fabric.js/pull/4032)
|
251 | - Add: Marked the hiddentextarea from itext so that custom projects can recognize it. [#4022](https://github.com/kangax/fabric.js/pull/4022)
|
252 |
|
253 | ## [1.7.13]
|
254 |
|
255 | - Fix: Try to minimize delay in loadFroJson [#4007](https://github.com/kangax/fabric.js/pull/4007)
|
256 | - Fix: allow fabric.Color to parse rgba(x,y,z,.a) without leading 0 [#4006](https://github.com/kangax/fabric.js/pull/4006)
|
257 | - Allow path to execute Object.initialize, make extensions easier [#4005](https://github.com/kangax/fabric.js/pull/4005)
|
258 | - Fix: properly set options from path fromDatalessObjects [#3995](https://github.com/kangax/fabric.js/pull/3995)
|
259 | - Check for slice before action.slice. Avoid conflicts with heavy customized code. [#3992](https://github.com/kangax/fabric.js/pull/3992)
|
260 |
|
261 |
|
262 | ## [1.7.12]
|
263 |
|
264 | - Fix: removed possible memleaks from window resize event. [#3984](https://github.com/kangax/fabric.js/pull/3984)
|
265 | - Fix: restored default cursor to noTarget only. unselectable objects get the standard hovercursor. [#3953](https://github.com/kangax/fabric.js/pull/3953)
|
266 | - Cache fixes: fix uncached pathGroup, removed cache creation at initialize time [#3982](https://github.com/kangax/fabric.js/pull/3982)
|
267 | - Improvement: nextTarget to mouseOut and prevTarget to mouseOver [#3900](https://github.com/kangax/fabric.js/pull/3900)
|
268 | - Improvement: add isClick boolean to left mouse up [#3898](https://github.com/kangax/fabric.js/pull/3898)
|
269 | - Fix: can start selection on top of non selectable object [#3892](https://github.com/kangax/fabric.js/pull/3892)
|
270 | - Improvement: better management of right/middle click [#3888](https://github.com/kangax/fabric.js/pull/3888)
|
271 | - Fix: subTargetCheck on activeObject/activeGroup was firing too many events [#3909](https://github.com/kangax/fabric.js/pull/3909)
|
272 | - Fix: After addWithUpdate or removeWithUpdate object coords must be updated. [#3911](https://github.com/kangax/fabric.js/pull/3911)
|
273 |
|
274 |
|
275 | ## [1.7.11]
|
276 |
|
277 | - Hotfix: restore path-groups ability to render [#3877](https://github.com/kangax/fabric.js/pull/3877)
|
278 |
|
279 | ## [1.7.10]
|
280 |
|
281 | - Fix: correct svg export for radial gradients [#3807](https://github.com/kangax/fabric.js/pull/3807)
|
282 | - Fix: Update fireout events to export the event object [#3853](https://github.com/kangax/fabric.js/pull/3853)
|
283 | - Fix: Improve callSuper to avoid infinite loops (not all of them) [#3844](https://github.com/kangax/fabric.js/pull/3844)
|
284 | - Fix: avoid selectionBackgroundColor leak on toDataUrl [#3862](https://github.com/kangax/fabric.js/pull/3862)
|
285 | - Fix: toDatelessObject for Group [#3863](https://github.com/kangax/fabric.js/pull/3863)
|
286 | - Improvement: better caching logic for groups [#3864](https://github.com/kangax/fabric.js/pull/3864)
|
287 | - Fix: correct svg gradient export for radial in polygons [#3866](https://github.com/kangax/fabric.js/pull/3866)
|
288 | - Fix: First draw could be empty for some objects [#3870](https://github.com/kangax/fabric.js/pull/3870)
|
289 | - Fix: Always send event data to object:selected [#3871](https://github.com/kangax/fabric.js/pull/3871)
|
290 | - Improvement: reduce angle calculation error [#3872](https://github.com/kangax/fabric.js/pull/3872)
|
291 |
|
292 | ## [1.7.9]
|
293 |
|
294 | - Fix: Avoid textarea wrapping from chrome v57+ [#3804](https://github.com/kangax/fabric.js/pull/3804)
|
295 | - Fix: double click needed to move cursor when enterEditing is called programmatically [#3804](https://github.com/kangax/fabric.js/pull/3804)
|
296 | - Fix: Style regression when inputing new style objects [#3804](https://github.com/kangax/fabric.js/pull/3804)
|
297 | - Add: try to support crossOrigin for svg image tags [#3804](https://github.com/kangax/fabric.js/pull/3804)
|
298 |
|
299 | ## [1.7.8]
|
300 |
|
301 | - Fix: Fix dirty flag propagation [#3782](https://github.com/kangax/fabric.js/pull/3782)
|
302 | - Fix: Path parsing error in bounding boxes of curves [#3774](https://github.com/kangax/fabric.js/pull/3774)
|
303 | - Add: Middle click mouse management on canvas [#3764](https://github.com/kangax/fabric.js/pull/3764)
|
304 | - Add: Add parameter to detect and skip offscreen drawing [#3758](https://github.com/kangax/fabric.js/pull/3758)
|
305 | - Fix: textarea loosing focus after a drag and exit from canvas [#3759](https://github.com/kangax/fabric.js/pull/3759)
|
306 |
|
307 | ## [1.7.7]
|
308 |
|
309 | - Fix for opacity parsing in svg with nested opacities [#3747](https://github.com/kangax/fabric.js/pull/3747)
|
310 | - Fix text initialization and boundingrect [#3745](https://github.com/kangax/fabric.js/pull/3745)
|
311 | - Fix line bounding box [#3742](https://github.com/kangax/fabric.js/pull/3742)
|
312 | - Improvement: do not pollute style object while typing if not necessary [#3743](https://github.com/kangax/fabric.js/pull/3743)
|
313 | - fix for broken prototype chain when restoring a dataless object on fill an stroke [#3735](https://github.com/kangax/fabric.js/pull/3735)
|
314 | - fix for deselected event not fired on mouse actions [#3716](https://github.com/kangax/fabric.js/pull/3716)
|
315 | - fix for blurriness introduced on 1.7.3 [#3721](https://github.com/kangax/fabric.js/pull/3721)
|
316 |
|
317 | ## [1.7.6]
|
318 |
|
319 | - Fix: make the cacheCanvas created on the fly if not available [#3705](https://github.com/kangax/fabric.js/pull/3705)
|
320 |
|
321 | ## [1.7.5]
|
322 |
|
323 | - Improvement: draw textbackgroundColor in one single pass when possible @stefanhayden [#3698](https://github.com/kangax/fabric.js/pull/3698)
|
324 | - Improvement: fire selection changed event just if text is editing [#3702](https://github.com/kangax/fabric.js/pull/3702)
|
325 | - Improvement: Add object property 'needsItsOwnCache' [#3703](https://github.com/kangax/fabric.js/pull/3703)
|
326 | - Improvement: Skip unnecessary transform if they can be detected with a single if [#3704](https://github.com/kangax/fabric.js/pull/3704)
|
327 |
|
328 | ## [1.7.4]
|
329 |
|
330 | - Fix: Moved all the touch event to passive false so that they behave as before chrome changes [#3690](https://github.com/kangax/fabric.js/pull/3690)
|
331 | - Fix: force top and left in the object representation of a path to avoid reparsing on restore [#3691](https://github.com/kangax/fabric.js/pull/3691)
|
332 | - Add: Enable `deselected` event for activeObject switch. Ensure deactivateAll call exitEditing [#3689](https://github.com/kangax/fabric.js/pull/3689)
|
333 | - Fix: Perform subtargetCheck also if the group is an active object and on activeGroup [#3688](https://github.com/kangax/fabric.js/pull/3688)
|
334 | - Fix: Made cursor operation more precise at high canvas zoom level [#3671](https://github.com/kangax/fabric.js/pull/3671)
|
335 | - Add: Made getBoundingRect available to return both absolute or standard bounding rect [#3614](https://github.com/kangax/fabric.js/pull/3614)
|
336 | - Add: Introduced calcViewportBoundaries() function for fabric.StaticCanvas [#3614](https://github.com/kangax/fabric.js/pull/3614)
|
337 | - Add: Introduced isOnScreen() function for fabric.Object [#3614](https://github.com/kangax/fabric.js/pull/3614)
|
338 | - Subclassed Polygon from polyline [#3614](https://github.com/kangax/fabric.js/pull/3614)
|
339 | - Fix: Removed reference to hovered target when target gets removed [#3657](https://github.com/kangax/fabric.js/pull/3657)
|
340 | - Fix: Removed hover cursor for non selectable objects [#3643](https://github.com/kangax/fabric.js/pull/3643)
|
341 | - Fix: Switch to passive event for touch move [#3643](https://github.com/kangax/fabric.js/pull/3643)
|
342 | - Fix: Restart rendering of cursor after entering some text [#3643](https://github.com/kangax/fabric.js/pull/3643)
|
343 | - Add: fabric.Color support toHexa() method now [#3615](https://github.com/kangax/fabric.js/pull/3615)
|
344 |
|
345 | ## [1.7.3]
|
346 |
|
347 | - Improvement: mousewheel event is handled with target and fired also from objects. [#3612](https://github.com/kangax/fabric.js/pull/3612)
|
348 | - Improvement: Pattern loads for canvas background and overlay, corrected svg pattern export [#3601](https://github.com/kangax/fabric.js/pull/3601)
|
349 | - Fix: Wait for pattern loading before calling callback [#3598](https://github.com/kangax/fabric.js/pull/3598)
|
350 | - Fix: add 2 extra pixels to cache canvases to avoid aliasing cut [#3596](https://github.com/kangax/fabric.js/pull/3596)
|
351 | - Fix: Rerender when deselect an itext editing object [#3594](https://github.com/kangax/fabric.js/pull/3594)
|
352 | - Fix: save new state of dimensionProperties at every cache clear [#3595](https://github.com/kangax/fabric.js/pull/3595)
|
353 | - Improvement: Better error management in loadFromJSON [#3586](https://github.com/kangax/fabric.js/pull/3586)
|
354 | - Improvement: do not reload backgroundImage as an image if is different type [#3550](https://github.com/kangax/fabric.js/pull/3550)
|
355 | - Improvement: if a children element is set dirty, set the parent dirty as well. [#3564](https://github.com/kangax/fabric.js/pull/3564)
|
356 |
|
357 | ## [1.7.2]
|
358 |
|
359 | - Fix: Textbox do not use stylemap for line wrapping [#3546](https://github.com/kangax/fabric.js/pull/3546)
|
360 | - Fix: Fix for firing object:modified in macOS sierra [#3539](https://github.com/kangax/fabric.js/pull/3539)
|
361 | - Fix: Itext with object caching was not refreshing selection correctly. [#3538](https://github.com/kangax/fabric.js/pull/3538)
|
362 | - Fix: stateful now works again with activeGroup and dinamyc swap between stateful false/true. [#3537](https://github.com/kangax/fabric.js/pull/3537)
|
363 | - Fix: includeDefaultValues was not applied to child objects of groups and path-groups. [#3497](https://github.com/kangax/fabric.js/pull/3497)
|
364 | - Fix: Itext style is cloned on paste action now, allow copy of styles to be independent. [#3502](https://github.com/kangax/fabric.js/pull/3502)
|
365 | - Fix: Add subclasses properties to cacheProperties. [#3490](https://github.com/kangax/fabric.js/pull/3490)
|
366 | - Add: Shift and Alt key used for transformations are now dynamic. [#3479](https://github.com/kangax/fabric.js/pull/3479)
|
367 | - Fix: fix to polygon and cache. Added cacheProperties for all classes [#3490](https://github.com/kangax/fabric.js/pull/3490)
|
368 |
|
369 | ## [1.7.1]
|
370 |
|
371 | - Add: Gradients/Patterns support customAttributes in toObject method [#3477](https://github.com/kangax/fabric.js/pull/3477)
|
372 | - Fix: IText/Textbox not blurring keyboard on ios 10 [#3476](https://github.com/kangax/fabric.js/pull/3476)
|
373 | - Fix: Shadow on freedrawing and zoomed canvas [#3475](https://github.com/kangax/fabric.js/pull/3475)
|
374 | - Fix: Fix for group returning negative scales [#3474](https://github.com/kangax/fabric.js/pull/3474)
|
375 | - Fix: hotfix for textbox [#3441](https://github.com/kangax/fabric.js/pull/3441)[#3473](https://github.com/kangax/fabric.js/pull/3473)
|
376 |
|
377 | ## [1.7.0]
|
378 |
|
379 | - Add: Object Caching [#3417](https://github.com/kangax/fabric.js/pull/3417)
|
380 | - Improvement: group internal objects have coords not affected by canvas zoom [#3420](https://github.com/kangax/fabric.js/pull/3420)
|
381 | - Fix: itext cursor trails on initDimension [#3436](https://github.com/kangax/fabric.js/pull/3436)
|
382 | - Fix: null check on .setActive [#3435](https://github.com/kangax/fabric.js/pull/3435)
|
383 | - Fix: function error in clone deep. [#3434](https://github.com/kangax/fabric.js/pull/3434)
|
384 |
|
385 | ## [1.6.7]
|
386 |
|
387 | - Add: Snap rotation added to objects. two parameter introduced, snapAngle and snapTreshold. [#3383](https://github.com/kangax/fabric.js/pull/3383)
|
388 | - Fix: Pass target to right click event. [#3381](https://github.com/kangax/fabric.js/pull/3381)
|
389 | - Fix: Correct rendering of bg color for styled text and correct clearing of itext area. [#3388](https://github.com/kangax/fabric.js/pull/3388)
|
390 | - Add: Fire mouse:over on the canvas when we enter the canvas from outside the element. [#3388](https://github.com/kangax/fabric.js/pull/3389)
|
391 | - Fix: Fix calculation of words width with spaces and justify. [#3408](https://github.com/kangax/fabric.js/pull/3408)
|
392 | - Fix: Do not export defaults properties for bg and overlay if requested. [#3415](https://github.com/kangax/fabric.js/pull/3415)
|
393 | - Fix: Change export toObect to always delete default properties if requested. [#3416](https://github.com/kangax/fabric.js/pull/3416)
|
394 |
|
395 | ## [1.6.6]
|
396 |
|
397 | - Add: Contrast and Saturate filters [#3341](https://github.com/kangax/fabric.js/pull/3341)
|
398 | - Fix: Correct registering and removal of events to handle iText objects. [#3349](https://github.com/kangax/fabric.js/pull/3349)
|
399 | - Fix: Corrected 2 regression of 1.6.5 (dataurl export and itext clicks)
|
400 | - Fix: Corrected path boundaries calculation for Arcs ( a and A ) [#3347](https://github.com/kangax/fabric.js/pull/3347)
|
401 |
|
402 | ## [1.6.5]
|
403 |
|
404 | - Fix: charspacing, do not get subzero with charwidth.
|
405 | - Improvement: add callback support to all object cloning. [#3212](https://github.com/kangax/fabric.js/pull/3212)
|
406 | - Improvement: add backgroundColor to all class [#3248](https://github.com/kangax/fabric.js/pull/3248)
|
407 | - Fix: add custom properties to backgroundImage and overlayImage [#3250](https://github.com/kangax/fabric.js/pull/3250)
|
408 | - Fix: Object intersection is calculated on boundingBox and boundingRect, intersection is fired if objects are overlapping [#3252](https://github.com/kangax/fabric.js/pull/3252)
|
409 | - Change: Restored previous selection behaviour, added key to selection active object under overlaid target [#3254](https://github.com/kangax/fabric.js/pull/3254)
|
410 | - Improvement: hasStateChanged let you find state changes of complex properties. [#3262](https://github.com/kangax/fabric.js/pull/3262)
|
411 | - Fix: IText/Textbox shift click selection backward. [#3270](https://github.com/kangax/fabric.js/pull/3270)
|
412 | - Revert: font family quoting was a bad idea. node-canvas stills use it. [#3276](https://github.com/kangax/fabric.js/pull/3276)
|
413 | - Fix: fire mouse:over event for activeObject and activeGroup when using findTarget shourtcuts [#3285](https://github.com/kangax/fabric.js/pull/3285)
|
414 | - Fix: clear method clear all properties of canvas [#3305](https://github.com/kangax/fabric.js/pull/3305)
|
415 | - Fix: text area position method takes in account canvas offset [#3306](https://github.com/kangax/fabric.js/pull/3306)
|
416 | - Improvement: Added event on right click and possibility to hide the context menu with a flag [3308](https://github.com/kangax/fabric.js/pull/3308)
|
417 | - Fix: remove canvas reference from object when object gets removed from canvas [#3307](https://github.com/kangax/fabric.js/pull/3307)
|
418 | - Improvement: use native stroke dash if available [#3309](https://github.com/kangax/fabric.js/pull/3309)
|
419 | - Fix: Export correct src when exporting to svg [#3310](https://github.com/kangax/fabric.js/pull/3310)
|
420 | - Fix: Stop text to go on zero dimensions [#3312](https://github.com/kangax/fabric.js/pull/3312)
|
421 | - Fix: Error in dataURL with multiplier was outputting very big canvas with retina [#3314](https://github.com/kangax/fabric.js/pull/3314)
|
422 | - Fix: Error in style map was not respecting style if textbox started with space [#3315](https://github.com/kangax/fabric.js/pull/3315)
|
423 |
|
424 | ## [1.6.4]
|
425 |
|
426 | - Improvement: Ignore svg: namespace during svg import. [#3081](https://github.com/kangax/fabric.js/pull/3081)
|
427 | - Improvement: Better fix for lineHeight of iText/Text [#3094](https://github.com/kangax/fabric.js/pull/3094)
|
428 | - Improvement: Support for gradient with 'Infinity' coordinates [#3082](https://github.com/kangax/fabric.js/pull/3082)
|
429 | - Improvement: Generally "improved" logic of targeting [#3111](https://github.com/kangax/fabric.js/pull/3111)
|
430 | - Fix: Selection of active group with transparency and preserveObjectStacking true or false [#3109](https://github.com/kangax/fabric.js/pull/3109)
|
431 | - Fix: pattern brush now create the same pattern seen while drawing [#3112](https://github.com/kangax/fabric.js/pull/3112)
|
432 | - Fix: Allow css merge during svg import [#3114](https://github.com/kangax/fabric.js/pull/3114)
|
433 | - Improvement: added numeric origins handling fomr 0 to 1. [#3121](https://github.com/kangax/fabric.js/pull/3121)
|
434 | - Fix: Fix a defect with shadow of objects in a scaled group. [#3134](https://github.com/kangax/fabric.js/pull/3134)
|
435 | - Improvement: Do not fire unecessary selection:changed events. [#3119](https://github.com/kangax/fabric.js/pull/3119)
|
436 | - Fix: Attached hiddenTextarea to body fixes IE, thanks to @plainview. [#3137](https://github.com/kangax/fabric.js/pull/3137)
|
437 | - Fix: Shift unselect activegroup on transformed canvas. [#3144](https://github.com/kangax/fabric.js/pull/3144)
|
438 | - Added: ColorMatrix filter [#3139](https://github.com/kangax/fabric.js/pull/3139)
|
439 | - Fix: Fix condition in wich restoring from Object could cause object overwriting [#3146](https://github.com/kangax/fabric.js/pull/3146)
|
440 | - Change: cloneAsImage for Object and toDataUrl for object are not retina enabled by default. Added option to enable. [#3147](https://github.com/kangax/fabric.js/pull/3147)
|
441 | - Improvement: Added textSpacing support for text/itext/textbox [#3097](https://github.com/kangax/fabric.js/pull/3097)
|
442 | - Fix: Quote font family when setting the context fontstyle [#3191](https://github.com/kangax/fabric.js/pull/3191)
|
443 | - Fix: use getSrc during image export, make subclassing easier, return eventually the .src property if nothing else is available [#3189](https://github.com/kangax/fabric.js/pull/3189)
|
444 | - Fix: Inverted the meaning of border scale factor [#3154](https://github.com/kangax/fabric.js/pull/3154)
|
445 | - Improvement: Added support for RGBA in HEX notation. [#3202](https://github.com/kangax/fabric.js/pull/3202)
|
446 | - Improvement: Added object deselected event. [#3195](https://github.com/kangax/fabric.js/pull/3195)
|
447 | - Fix: loadFromJson callback now gets fired after filter are applied [#3210](https://github.com/kangax/fabric.js/pull/3210)
|
448 |
|
449 | ## [1.6.3]
|
450 |
|
451 | - Improvement: Use reviver callback for background and overlay image when doing svg export. [#2975](https://github.com/kangax/fabric.js/pull/2975)
|
452 | - Improvement: Added object property excludeFromExport to avoid exporting the object to JSON or to SVG. [#2976](https://github.com/kangax/fabric.js/pull/2976)
|
453 | - Improvement: Correct the calculation of text boundingbox. Improves svg import [#2992](https://github.com/kangax/fabric.js/pull/2992)
|
454 | - Added: Export id property to SVG [#2993](https://github.com/kangax/fabric.js/pull/2993)
|
455 | - Improvement: Call the callback on loadSvgFromURL on failed xml load with null agument [#2994](https://github.com/kangax/fabric.js/pull/2994)
|
456 | - Improvement: Clear only the Itext area on contextTop during cursor animation [#2996](https://github.com/kangax/fabric.js/pull/2996)
|
457 | - Added: Char widths cache has been moved to fabric level and not iText level. Added fabric.util.clearFabricCharWidthsCache(fontName) [#2995](https://github.com/kangax/fabric.js/pull/2995)
|
458 | - Fix: do not set background or overlay image if the url load fails. [#3003](https://github.com/kangax/fabric.js/pull/3003)
|
459 | - Fix: iText mousemove event removal, clear the correct area for Itext, stopped redrawing selection if not necessary [#3016](https://github.com/kangax/fabric.js/pull/3016)
|
460 | - Fix: background image and overlay image scale and move with canvas viewportTransform, parameter available [#3019](https://github.com/kangax/fabric.js/pull/3019)
|
461 | - Added: support sub targeting in groups in events [#2997](https://github.com/kangax/fabric.js/pull/2997)
|
462 | - Fix: Select transparent object on mouse up because of _maybeGroupObject [#2997](https://github.com/kangax/fabric.js/pull/2997)
|
463 | - Fix: Remove reference to lastRenderedObject on canvas.remove [#3023](https://github.com/kangax/fabric.js/pull/3023)
|
464 | - Fix: Wait for all objects to be loaded before deleting the properties and setting options. [#3029](https://github.com/kangax/fabric.js/pull/3029)
|
465 | - Fix: Object Padding is unaffected by object transform. [#3057](https://github.com/kangax/fabric.js/pull/3057)
|
466 | - Fix: Restore lastRenderedObject usage. Introduced Canvas.lastRenderedKey to retrieve the lastRendered object from down the stack [#3057](https://github.com/kangax/fabric.js/pull/3057)
|
467 | - Fix: _calcTextareaPosition correctly calculate the position considering the viewportTransform. [#3057](https://github.com/kangax/fabric.js/pull/3057)
|
468 | - Fix: Fixed selectionBacgroundColor with viewport transform. [#3057](https://github.com/kangax/fabric.js/pull/3057)
|
469 | - Improvement: Correctly render the cursor with viewport scaling, improved the cursor centering. [#3057](https://github.com/kangax/fabric.js/pull/3057)
|
470 | - Fix: Use canvas zoom and pan when using is target transparent. [#2980](https://github.com/kangax/fabric.js/pull/2980)
|
471 |
|
472 | ## [1.6.2]
|
473 |
|
474 | - Fix: restore canvas properties on loadFromJSON with includeProperties. [#2921](https://github.com/kangax/fabric.js/pull/2921)
|
475 | - Fix: Allow hoverCursor on non selectable objects, moveCursor does not appear if the object is not moveable.
|
476 | Added object.moveCursor to specify a cursor for moving per object. [#2924](https://github.com/kangax/fabric.js/pull/2924)
|
477 | - Fix: Add missing stroke.live translation, allow gradientTransform for dashed line. [#2926](https://github.com/kangax/fabric.js/pull/2926)
|
478 | - Improvement: Allow customization of keys that iteract with mouse action ( multiselect key, free transform key, alternative action key, centered transform key ) [#2925](https://github.com/kangax/fabric.js/pull/2925)
|
479 | - Added: Make iText fires object:modified on text change on exit editing [#2927](https://github.com/kangax/fabric.js/pull/2927)
|
480 | - Added: [control customization part 1] cornerDashArray, borderDashArray. Now borderScaleFactor influences both border and controls, changed default corner size to 13 [#2932](https://github.com/kangax/fabric.js/pull/2932)
|
481 | - Fix: createSVGFontFacesMarkup was failing to retrieve fonts in style [#2935](https://github.com/kangax/fabric.js/pull/2935)
|
482 | - Fix: shadow not scaled with dataUrl to multiplier [#2940](https://github.com/kangax/fabric.js/pull/2940)
|
483 | - Added: [control customization part 2] cornerStrokeColor. Now is possible to specify separate stroke and fill color for the controls [#2933](https://github.com/kangax/fabric.js/pull/2933)
|
484 | - Fix: Itext width calculation with caching false was returning nan. [#2943](https://github.com/kangax/fabric.js/pull/2943)
|
485 | - Added: [control customization part 3] Rounded corners. It is possible to specify cornerStyle for the object. 'rect' or 'circle' [#2942](https://github.com/kangax/fabric.js/pull/2942)
|
486 | - Added: [control customization part 4] Selection background. It is possible to specify selectionBackgroundColor for the object. [#2950](https://github.com/kangax/fabric.js/pull/2950)
|
487 | - Fix: Behaviour of image with filters with resize effects and Object to/from json [#2954](https://github.com/kangax/fabric.js/pull/2954)
|
488 | - Fix: Svg export should not output color notation in rgba format [#2955](https://github.com/kangax/fabric.js/pull/2955)
|
489 | - Fix: minScaleLimit rounding bug [#2964](https://github.com/kangax/fabric.js/pull/2964)
|
490 | - Fix: Itext spacing in justify mode bug [#2971](https://github.com/kangax/fabric.js/pull/2971)
|
491 | - Fix: Object.toDataUrl export when some window.devicepixelRatio is present (retina or browser zoom) [#2972](https://github.com/kangax/fabric.js/pull/2972)
|
492 |
|
493 |
|
494 | ## [1.6.1]
|
495 |
|
496 | - Fix: image with broken element throwing error on toObject() [#2878](https://github.com/kangax/fabric.js/pull/2878)
|
497 | - Fix: Warning on trying to set proprietary browser version of ctxImageSmoothingEnabled [#2880](https://github.com/kangax/fabric.js/pull/2880)
|
498 | - Fix: Fixed Svg import regression on color and drawing polylines [#2887](https://github.com/kangax/fabric.js/pull/2887)
|
499 | - Fix: Fixed animation ease that starts and stop at same value [#2888](https://github.com/kangax/fabric.js/pull/2888)
|
500 | - Fix: Allow a not stateful canvas to fire object:modified at end of transform. [#2890](https://github.com/kangax/fabric.js/pull/2890)
|
501 | - Fix: Made event handler removal safer. Removing firing events will not cause errors. [#2883](https://github.com/kangax/fabric.js/pull/2883)
|
502 | - Fix: Proper handling of perPixelTargetFind and multi selections [#2894](https://github.com/kangax/fabric.js/pull/2894)
|
503 | - Fix: Do not clear contextTop on drawingMode, to allow drawing over animations [#2895](https://github.com/kangax/fabric.js/pull/2895)
|
504 | - Change the dependencies to optional. Allow npm to continue installing if nodecanvas installation fail.[#2901](https://github.com/kangax/fabric.js/pull/2901)
|
505 | - Fix: Check again the target on mouseup [#2902](https://github.com/kangax/fabric.js/pull/2902)
|
506 | - Fix: On perPixelTargetFind detect corners only if target is active [#2903](https://github.com/kangax/fabric.js/pull/2903)
|
507 | - Improvement: Add canvas mouseout event listener [#2907](https://github.com/kangax/fabric.js/pull/2907)
|
508 | - Improvement: Make small object draggable easier [#2907](https://github.com/kangax/fabric.js/pull/2907)
|
509 | - Improvement: Use sendToBack, bringToFront, bringForward, sendBackwards for multiple selections [#2908](https://github.com/kangax/fabric.js/pull/2908)
|
510 |
|
511 | ## [1.6.0]
|
512 |
|
513 | - Fix rendering of activeGroup objects while preserveObjectStacking is active. [ regression from [#2083](https://github.com/kangax/fabric.js/pull/2083) ]
|
514 | - Fix `fabric.Path` initialize with user options [#2117](https://github.com/kangax/fabric.js/pull/2117)
|
515 | - Fix sorting of objects in activeGroup during rendering [#2130](https://github.com/kangax/fabric.js/pull/2130).
|
516 | - Make sure that 'object.canvas' property is always set if the object is directly or indirectly on canvas [#2141](https://github.com/kangax/fabric.js/pull/2141)
|
517 | - Fix _getTopLeftCoords function that was returning TopCenter [#2127](https://github.com/kangax/fabric.js/pull/2127)
|
518 | - Fix events not being fired after resize with pinch zoom [#510](https://github.com/kangax/fabric.js/pull/510)
|
519 | - Fix mouse:over, mouse:out events not receiving event object [#2146](https://github.com/kangax/fabric.js/pull/2146)
|
520 | - Don't include elements from `<metadata>` during SVG parsing [#2160](https://github.com/kangax/fabric.js/pull/2160)
|
521 | - Fix some iText new glitches and old bugs about style deleting and inserting, faster function for get2dCursorLocation [#2153](https://github.com/kangax/fabric.js/pull/2153)
|
522 | - Change bounding box calculation, made strokewidth always considered in dimensions. Switched group stroke default to 0 strokewidth. [#2155](https://github.com/kangax/fabric.js/pull/2155)
|
523 | - Fix scaling function for object with strokewidth [#2178](https://github.com/kangax/fabric.js/pull/2178)
|
524 | - Fix image fromObject restoring resizeFilter [#2164](https://github.com/kangax/fabric.js/pull/2164)
|
525 | - Fix double application of filter upon image init [#2164](https://github.com/kangax/fabric.js/pull/2164)
|
526 | - Fix image.filter.Resize toObject and fromObject [#2164](https://github.com/kangax/fabric.js/pull/2164)
|
527 | - Fix strokeWidth calculation during resize operations [#2178](https://github.com/kangax/fabric.js/pull/2178)
|
528 | - Fix iText selection on upperCanvas to support transformMatrix [#2173](https://github.com/kangax/fabric.js/pull/2173)
|
529 | - Removed unnecessary calls to removeShadow and restoreGlobalCompositeOperation [#2175](https://github.com/kangax/fabric.js/pull/2175)
|
530 | - Fix the offset for pattern and gradients filling and stroking in text [#2183](https://github.com/kangax/fabric.js/pull/2183)
|
531 | - Fix loading of stroke gradients from Object [#2182](https://github.com/kangax/fabric.js/pull/2182)
|
532 | - Fix segmentation fault on node.js when image doesn't exist [#2193](https://github.com/kangax/fabric.js/pull/2193)
|
533 | - Fix iText border selection when changing fontWeight [#2201](https://github.com/kangax/fabric.js/pull/2201)
|
534 | - Fix calculation of object dimensions for geometry functions translation and scaling. [#2206](https://github.com/kangax/fabric.js/pull/2206)
|
535 | - Fix iText cursor position on click at end of line [#2217](https://github.com/kangax/fabric.js/pull/2217)
|
536 | - Fix error on parsing style string with trailing spaces [#2256](https://github.com/kangax/fabric.js/pull/2256)
|
537 | - Fix delegated properties leaking on objects in a group when restoring from json [#2101](https://github.com/kangax/fabric.js/pull/2101)
|
538 | - Fix cursor click position in rotated i-Text when origins different from TOPLEFT. [#2269](https://github.com/kangax/fabric.js/pull/2269)
|
539 | - Fix mouse position when the canvas is in a complex style scrolling situation [#2128](https://github.com/kangax/fabric.js/pull/2128)
|
540 | - Fix parser regex for not parsing svg tags attribute [#2311](https://github.com/kangax/fabric.js/pull/2311)
|
541 | - Add id attribute to standard attribute parsing from SVG elements [#2317](https://github.com/kangax/fabric.js/pull/2317)
|
542 | - Fix text decoration opacity [#2310](https://github.com/kangax/fabric.js/pull/2310)
|
543 | - Add simple color animation utility in /src/util/animate_color.js [#2328](https://github.com/kangax/fabric.js/pull/2328)
|
544 | - Fix itext paste function to check for source of copied text and strip carriage returns (\r)[#2336](https://github.com/kangax/fabric.js/pull/2336)
|
545 | - Fix pattern class serialize the source using toDataURL if available [#2335](https://github.com/kangax/fabric.js/pull/2335)
|
546 | - Fix imageSmoothingEnabled warning on chrome and reinit the property after setDimensions [#2337](https://github.com/kangax/fabric.js/pull/2337)
|
547 | - Add ability to parse path elements with no path specified. [#2344](https://github.com/kangax/fabric.js/pull/2344)
|
548 | - Fix shiftClick with activeGroup in case of normal and scaled groups [#2342](https://github.com/kangax/fabric.js/pull/2342)
|
549 | - Add support for colors in shadow svg export [#2349](https://github.com/kangax/fabric.js/pull/2349)
|
550 | - Add support for inner viewBoxes in svg parsing [#2345](https://github.com/kangax/fabric.js/pull/2345)
|
551 | - Fix BoundingBox calculation for pathGroups that have inner transformMatrix [#2348](https://github.com/kangax/fabric.js/pull/2348)
|
552 | - Fix export toObject to include transformMatrix property [#2350](https://github.com/kangax/fabric.js/pull/2350)
|
553 | - Fix textbox class to supporto toSVG() and newest style fixes [#2347]
|
554 | (https://github.com/kangax/fabric.js/pull/2347)
|
555 | - Fix regression on text ( textDecoration and textlinebackground ) [#2354](https://github.com/kangax/fabric.js/pull/2354)
|
556 | - Add support for multi keys chars using onInput event [#2352](https://github.com/kangax/fabric.js/pull/2352)
|
557 | - Fix iText and textbox entering in edit mode if clicked on a corner [#2393](https://github.com/kangax/fabric.js/pull/2393)
|
558 | - Fix iText styles error when in justify align [#2370](https://github.com/kangax/fabric.js/pull/2370)
|
559 | - Add support for shadow export in svg for groups, pathgroups and images. [#2364]
|
560 | - Add rendering shadows for groups [#2364](https://github.com/kangax/fabric.js/pull/2364)
|
561 | - Add support for parsing nested SVGs x and y attributes [#2399](https://github.com/kangax/fabric.js/pull/2399)
|
562 | - Add support for gradientTransform in setGradient(fill or stroke) [#2401](https://github.com/kangax/fabric.js/pull/2401)
|
563 | - Fix Error in svg parsed that was stopping on gradient color-stop missing stop attribute [#2414](https://github.com/kangax/fabric.js/pull/2414)
|
564 | - toObject method return copied arrays for array like properties [#2407](https://github.com/kangax/fabric.js/pull/2407)
|
565 | - Fix Set stop value of colorstop to 0 if stop attribute not present [#2414](https://github.com/kangax/fabric.js/pull/2414)
|
566 | - Fix correct value of e.button for mouse left click if e.which not supported[#2453](https://github.com/kangax/fabric.js/pull/2453)
|
567 | - Add check for host property in getScrollTopLeft[#2462](https://github.com/kangax/fabric.js/pull/2462)
|
568 | - Fix check for object.selectable in findTarget[#2466](https://github.com/kangax/fabric.js/pull/2466)
|
569 | - Fix After rendering a gesture set originX/Y to its original value[#2479](https://github.com/kangax/fabric.js/pull/2479)
|
570 | - Add support for skewing objects using shift and m-controls in interactive mode, and using object.skewX/Y [#2482](https://github.com/kangax/fabric.js/pull/2482)
|
571 | - Fix gradientTransform not exported in gradient toObject [#2486](https://github.com/kangax/fabric.js/pull/2486)
|
572 | - Fix object.toDataUrl with multiplier [#2487](https://github.com/kangax/fabric.js/pull/2487)
|
573 | BACK INCOMPATIBILITY: removed 'allOnTop' parameter from fabric.StaticCanvas.renderAll.
|
574 | - Fix mask filter, mask image is now streched on all image [#2543](https://github.com/kangax/fabric.js/pull/2543)
|
575 | - Fix text onInput event to behave correctly if some text is selected [#2501](https://github.com/kangax/fabric.js/pull/2502)
|
576 | - Fix object with selectable = false could be selected with shift click [#2503](https://github.com/kangax/fabric.js/pull/2503)
|
577 | - Fix for mask filter when bigger or smaller image is used [#2534](https://github.com/kangax/fabric.js/pull/2534)
|
578 | - Improvement: simplified renderAll logic [#2545](https://github.com/kangax/fabric.js/pull/2545)
|
579 | - Improvement: Manage group transformation with skew rotate and scale [#2549](https://github.com/kangax/fabric.js/pull/2549)
|
580 | - Fix: Add shadow affectStroke to shadow to Object method [#2568](https://github.com/kangax/fabric.js/pull/2568)
|
581 | - Fix: Made multitouch pinch resize works with skewed object [#2625](https://github.com/kangax/fabric.js/pull/2625)
|
582 | - Improvement: Added retina screen support [#2623](https://github.com/kangax/fabric.js/pull/2623)
|
583 | - Change: Set default Image strokeWidth to 0 to improve image rendering [#2624](https://github.com/kangax/fabric.js/pull/2624)
|
584 | - Fix: multitouch zoom gesture speed back to normal speed [#2625](https://github.com/kangax/fabric.js/pull/2625)
|
585 | - Fix: fix controls rendering with retina scaling and controls above overlay [#2632](https://github.com/kangax/fabric.js/pull/2632)
|
586 | - Improvements: resize SVG using viewport/viewbox. [#2642](https://github.com/kangax/fabric.js/pull/2642)
|
587 | - Improvements: Svg import now supports rotate around point [#2645](https://github.com/kangax/fabric.js/pull/2645)
|
588 | - Change: Opacity is no more a delegated property for group [#2656](https://github.com/kangax/fabric.js/pull/2656)
|
589 | - Fix: Itext now check for editable property before initializing cursor [#2657](https://github.com/kangax/fabric.js/pull/2657)
|
590 | - Fix: Better SVG export support for shadows of rotated objects [#2671](https://github.com/kangax/fabric.js/pull/2671)
|
591 | - Fix: Avoid polygon polyline to change constructor point array [#2627](https://github.com/kangax/fabric.js/pull/2627)
|
592 | - SVG import: support fill/stroke opacity when no fill/stroke attribute is present [#2703](https://github.com/kangax/fabric.js/pull/2703)
|
593 | - Fix: remove white filter set opacity to 0 instead of 1 [#2714](https://github.com/kangax/fabric.js/pull/2714)
|
594 | - Cleaning: removing unused fabric.Canvas.activeInstance [#2708](https://github.com/kangax/fabric.js/pull/2708)
|
595 | - Change: remove flipping of text string when flipping object [#2719](https://github.com/kangax/fabric.js/pull/2719)
|
596 | - Fix: Correct shift click on generic transformerd active groups [#2720](https://github.com/kangax/fabric.js/pull/2720)
|
597 | - SVG import: parse svg with no spaces between transforms [#2738](https://github.com/kangax/fabric.js/pull/2738)
|
598 | - Fix: Fallback to styleElement.text for IE9 [#2754](https://github.com/kangax/fabric.js/pull/2754)
|
599 | - Fix: data url for node [#2777](https://github.com/kangax/fabric.js/pull/2777)
|
600 | - Improvement: Extended font face to all text class during svg export [#2797](https://github.com/kangax/fabric.js/pull/2797)
|
601 | - Fix: retina scaling dataurl and shadows. [#2806](https://github.com/kangax/fabric.js/pull/2806)
|
602 | - Improvement: Better look to iText decoration shadows. [#2808](https://github.com/kangax/fabric.js/pull/2808)
|
603 | - Improvement: New text shadow export to SVG. [#2827](https://github.com/kangax/fabric.js/pull/2827)
|
604 | - fix: location of optimized 1x1 rects. [#2817](https://github.com/kangax/fabric.js/pull/2817)
|
605 | - fix: TextBox handling of consecutive spaces. [#2852](https://github.com/kangax/fabric.js/pull/2852)
|
606 | - fix: Respect shadow in svg export of flipped objects. [#2854](https://github.com/kangax/fabric.js/pull/2854)
|
607 | - fix: Check presence of style for textBox in svg export. [#2853](https://github.com/kangax/fabric.js/pull/2853)
|
608 | - Improvement: Added node compatibility for v4 and v5. [#2872](https://github.com/kangax/fabric.js/pull/2872)
|
609 | - Fix: Canvas dispose remove the extra created elements. [#2875](https://github.com/kangax/fabric.js/pull/2875)
|
610 | - IText improvements to cut-copy-paste, edit, mobile jumps and style. [#2868](https://github.com/kangax/fabric.js/pull/2868)
|
611 |
|
612 | ## [1.5.0]
|
613 |
|
614 | **Edge**
|
615 | - Added image preserve aspect ratio attributes and functionality (fabric.Image.alignY, fabric.Image.alignY, fabric.Image.meetOrSlic )
|
616 | - Added ImageResizeFilters , option to resize dynamically or statically the images using a set of resize filter alghoritms.
|
617 | - [BACK_INCOMPAT] `fabric.Collection#remove` doesn't return removed object -> returns `this` (chainable)
|
618 |
|
619 | - Add "mouse:over" and "mouse:out" canvas events (and corresponding "mouseover", "mouseout" object events)
|
620 | - Add support for passing options to `fabric.createCanvasForNode`
|
621 |
|
622 | - Various iText fixes and performance improvements
|
623 | - Fix `overlayImage` / `overlayColor` during selection mode
|
624 | - Fix double callback in loadFromJSON when there's no objects
|
625 | - Fix paths parsing when number has negative exponent
|
626 | - Fix background offset in iText
|
627 | - Fix style object deletion in iText
|
628 | - Fix typo in `_initCanvasHandlers`
|
629 | - Fix `transformMatrix` not affecting fabric.Text
|
630 | - Fix `setAngle` for different originX/originY (!= 'center')
|
631 | - Change default/init noise/brightness value for `fabric.Image.filters.Noise` and `fabric.Image.filters.Brightness` from 100 to 0
|
632 | - Add `fabric.Canvas#imageSmoothingEnabled`
|
633 | - Add `copy/paste` support for iText (uses clipboardData)
|
634 |
|
635 | ## [1.4.0]
|
636 |
|
637 | - [BACK_INCOMPAT] JSON and Cufon are no longer included in default build
|
638 |
|
639 | - [BACK_INCOMPAT] Change default objects' originX/originY to left/top
|
640 |
|
641 | - [BACK_INCOMPAT] `fabric.StaticCanvas#backgroundImage` and `fabric.StaticCanvas#overlayImage` are `fabric.Image` instances. `fabric.StaticCanvas#backgroundImageOpacity`, `fabric.StaticCanvas#backgroundImageStretch`, `fabric.StaticCanvas#overlayImageLeft` and `fabric.StaticCanvas#overlayImageTop` were removed.
|
642 |
|
643 | - [BACK_INCOMPAT] `fabric.Text#backgroundColor` is now `fabric.Object#backgroundColor`
|
644 |
|
645 | - [BACK_INCOMPAT] Remove `fabric.Object#toGrayscale` and `fabric.Object#overlayFill` since they're too specific
|
646 |
|
647 | - [BACK_INCOMPAT] Remove `fabric.StaticCanvas.toGrayscale` since we already have that logic in `fabric.Image.filters.Grayscale`.
|
648 |
|
649 | - [BACK_INCOMPAT] Split `centerTransform` into the properties `centeredScaling` and `centeredRotation`. Object rotation now happens around originX/originY point UNLESS `centeredRotation=true`. Object scaling now happens non-centered UNLESS `centeredScaling=true`.
|
650 |
|
651 | ## [1.3.0]
|
652 |
|
653 | - [BACK_INCOMPAT] Remove selectable, hasControls, hasBorders, hasRotatingPoint, transparentCorners, perPixelTargetFind from default object/json representation of objects.
|
654 |
|
655 | - [BACK_INCOMPAT] Object rotation now happens around originX/originY point UNLESS `centerTransform=true`.
|
656 |
|
657 | - [BACK_INCOMPAT] fabric.Text#textShadow has been removed - new fabric.Text.shadow property (type of fabric.Shadow).
|
658 |
|
659 | - [BACK_INCOMPAT] fabric.BaseBrush shadow properties are combined into one property => fabric.BaseBrush.shadow (shadowColor, shadowBlur, shadowOffsetX, shadowOffsetY no longer exist).
|
660 |
|
661 | - [BACK_INCOMPAT] `fabric.Path.fromObject` is now async. `fabric.Canvas#loadFromDatalessJSON` is deprecated.
|
662 |
|
663 | ## [1.2.0]
|
664 |
|
665 | - [BACK_INCOMPAT] Make `fabric.Object#toDataURL` synchronous.
|
666 |
|
667 | - [BACK_INCOMPAT] `fabric.Text#strokeStyle` -> `fabric.Text#stroke`, for consistency with other objects.
|
668 |
|
669 | - [BACK_INCOMPAT] `fabric.Object.setActive(…)` -> `fabric.Object.set('active', …)`.
|
670 | `fabric.Object.isActive` is gone (use `fabric.Object.active` instead)
|
671 |
|
672 | - [BACK_INCOMPAT] `fabric.Group#objects` -> `fabric.Group._objects`.
|
673 |
|
674 | ## [1.1.0]
|
675 |
|
676 | - [BACK_INCOMPAT] `fabric.Text#setFontsize` becomes `fabric.Object#setFontSize`.
|
677 |
|
678 | - [BACK_INCOMPAT] `fabric.Canvas.toDataURL` now accepts options object instead linear arguments.
|
679 | `fabric.Canvas.toDataURLWithMultiplier` is deprecated;
|
680 | use `fabric.Canvas.toDataURL({ multiplier: … })` instead
|
681 |
|
682 | ## [1.0.0]
|