Repository navigation
3.20.4
Deprecated
The deprecation hints now lead to the names 4.0 uses, and 3.x takes those names already. 4.0 ignores an option it
doesn't know, so code that followed the earlier hints (cropCircle({ size: 'cover' })) would have changed its output
there without an error:
cropCircle({ fit }): thesizeoption is deprecated,fitis its name in 4.0. The hint ofcropCircle(max, feathering)and of themaxoption now namesfit.Image.renderSVG(svg, { width }),{ height }and{ scale }: thesizeandmodeoptions (andSVGScaleMode,SVGScaleModes) are deprecated, these are their names in 4.0. Only one of the three can be given.{ font }(one font or an array) is the 4.0 name offonts, which is deprecated.RenderSVGOptionsis the 4.0 name ofSVGOptions.new GainMap(image, { min, max })andmap.min,map.max: the 4.0 names ofgainMapMinandgainMapMax, which are deprecated.ResizeModes,FrameDisposalModesand the constantsImage.RESIZE_*,Frame.DISPOSAL_*andImage.SVG_MODE_*point to the names 4.0 uses ('bicubic','background',{ width }): 4.0 removes the classes too.FrameDisposalModeis the 4.0 name ofFrameDisposalModeName.