mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-21 14:34:43 +00:00
bump to 1.6.2 and build dist (#2973)
This commit is contained in:
parent
11fd746c1e
commit
38bebc2fcb
9 changed files with 12591 additions and 287 deletions
22
CHANGELOG.md
22
CHANGELOG.md
|
|
@ -1,3 +1,25 @@
|
|||
**Version 1.6.2**
|
||||
|
||||
- Fix: restore canvas properties on loadFromJSON with includeProperties. [#2921](https://github.com/kangax/fabric.js/pull/2921)
|
||||
- Fix: Allow hoverCursor on non selectable objects, moveCursor does not appear if the object is not moveable.
|
||||
Added object.moveCursor to specify a cursor for moving per object. [#2924](https://github.com/kangax/fabric.js/pull/2924)
|
||||
- Fix: Add missing stroke.live translation, allow gradientTransform for dashed line. [#2926](https://github.com/kangax/fabric.js/pull/2926)
|
||||
- Improvement: Allow customization of keys that iteract with mouse action ( multiselect key, free tranform key, alternative action key, centered transform key ) [#2925](https://github.com/kangax/fabric.js/pull/2925)
|
||||
- Added: Make iText fires object:modified on text change on exit editing [#2927](https://github.com/kangax/fabric.js/pull/2927)
|
||||
- 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)
|
||||
- Fix: createSVGFontFacesMarkup was failing to retrieve fonts in style [#2935](https://github.com/kangax/fabric.js/pull/2935)
|
||||
- Fix: shadow not scaled with dataUrl to multiplier [#2940](https://github.com/kangax/fabric.js/pull/2940)
|
||||
- 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)
|
||||
- Fix: Itext width calculation with caching false was returning nan. [#2943](https://github.com/kangax/fabric.js/pull/2943)
|
||||
- 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)
|
||||
- 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)
|
||||
- Fix: Behaviour of image with filters with resize effects and Object to/from json [#2954](https://github.com/kangax/fabric.js/pull/2954)
|
||||
- Fix: Svg export should not output color notation in rgba format [#2955](https://github.com/kangax/fabric.js/pull/2955)
|
||||
- Fix: minScaleLimit rounding bug [#2964](https://github.com/kangax/fabric.js/pull/2964)
|
||||
- Fix: Itext spacing in justify mode bug [#2971](https://github.com/kangax/fabric.js/pull/2971)
|
||||
- Fix: Object.toDataUrl export when some window.devicepixelRatio is present (retina or browser zoom) [#2972](https://github.com/kangax/fabric.js/pull/2972)
|
||||
|
||||
|
||||
**Version 1.6.1**
|
||||
|
||||
- Fix: image with broken element throwing error on toObject() [#2878](https://github.com/kangax/fabric.js/pull/2878)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */
|
||||
|
||||
var fabric = fabric || { version: "1.6.1" };
|
||||
var fabric = fabric || { version: "1.6.2" };
|
||||
if (typeof exports !== 'undefined') {
|
||||
exports.fabric = fabric;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ Remove the template from below and provide thoughtful commentary *and code sampl
|
|||
|
||||
<!-- BUG TEMPLATE -->
|
||||
## Version
|
||||
1.6.1
|
||||
1.6.2
|
||||
|
||||
## Test Case
|
||||
http://jsfiddle.net/fabricjs/Da7SP/
|
||||
|
|
|
|||
740
dist/fabric.js
vendored
740
dist/fabric.js
vendored
File diff suppressed because it is too large
Load diff
19
dist/fabric.min.js
vendored
19
dist/fabric.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/fabric.min.js.gz
vendored
BIN
dist/fabric.min.js.gz
vendored
Binary file not shown.
12076
dist/fabric.require.js
vendored
12076
dist/fabric.require.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -2,7 +2,7 @@
|
|||
"name": "fabric",
|
||||
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.",
|
||||
"homepage": "http://fabricjs.com/",
|
||||
"version": "1.6.1",
|
||||
"version": "1.6.2",
|
||||
"author": "Juriy Zaytsev <kangax@gmail.com>",
|
||||
"keywords": [
|
||||
"canvas",
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* {@link fabric.Color} is a constructor and creates instances of {@link fabric.Color} objects.
|
||||
*
|
||||
* @class fabric.Color
|
||||
* @param {String} color optional in hex or rgb(a) format
|
||||
* @param {String} color optional in hex or rgb(a) or hsl format or from known color list
|
||||
* @return {fabric.Color} thisArg
|
||||
* @tutorial {@link http://fabricjs.com/fabric-intro-part-2/#colors}
|
||||
*/
|
||||
|
|
@ -44,18 +44,22 @@
|
|||
}
|
||||
|
||||
if (color === 'transparent') {
|
||||
this.setSource([255, 255, 255, 0]);
|
||||
return;
|
||||
source = [255, 255, 255, 0];
|
||||
}
|
||||
|
||||
source = Color.sourceFromHex(color);
|
||||
|
||||
if (!source) {
|
||||
source = Color.sourceFromHex(color);
|
||||
}
|
||||
if (!source) {
|
||||
source = Color.sourceFromRgb(color);
|
||||
}
|
||||
if (!source) {
|
||||
source = Color.sourceFromHsl(color);
|
||||
}
|
||||
if (!source) {
|
||||
//if color is not recognize let's make black as canvas does
|
||||
source = [0, 0, 0, 1];
|
||||
}
|
||||
if (source) {
|
||||
this.setSource(source);
|
||||
}
|
||||
|
|
@ -292,6 +296,7 @@
|
|||
blue: '#0000FF',
|
||||
fuchsia: '#FF00FF',
|
||||
gray: '#808080',
|
||||
grey: '#808080',
|
||||
green: '#008000',
|
||||
lime: '#00FF00',
|
||||
maroon: '#800000',
|
||||
|
|
|
|||
Loading…
Reference in a new issue