mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-30 10:04:42 +00:00
[BACK_INCOMPAT] `fabric.BaseBrush`shadow properties are combined into one property => `fabric.BaseBrush.shadow`(shadowColor, shadowBlur, shadowOffsetX, shadowOffsetY no longer exist)
Removed fabric.Text.getText method => is generated with `fabric.util.createAccessors`
`fabric.Shadow` can now initialized with string or object (e.g. '10px 10px 5px rgb(0,0,255)', 'rgb(0,0,255) 10px 10px 5px', {color: 'gb(0,0,255)', offsetX: 10, offsetY: 10, blur: 5})
`fabric.Shadow.getShadow`to get css3 declaration of shadow (String)
`fabric.Object.set('shadow', value)`is now the same as `fabric.Shadow.setShadow(value)`
Add unit tests
|
||
|---|---|---|
| .. | ||
| canvas.js | ||
| canvas_static.js | ||
| circle.js | ||
| color.js | ||
| ellipse.js | ||
| gradient.js | ||
| group.js | ||
| image.js | ||
| image_filters.js | ||
| line.js | ||
| object.js | ||
| observable.js | ||
| parser.js | ||
| path.js | ||
| path_group.js | ||
| pattern.js | ||
| polygon.js | ||
| polyline.js | ||
| rect.js | ||
| shadow.js | ||
| text.js | ||
| util.js | ||