mirror of
https://github.com/konvajs/konva.git
synced 2025-11-18 17:21:36 +08:00
don't apply buffer fill if fill is not defined and shape contains an image
This commit is contained in:
6
dist/kinetic-core.js
vendored
6
dist/kinetic-core.js
vendored
@@ -3,7 +3,7 @@
|
|||||||
* http://www.kineticjs.com/
|
* http://www.kineticjs.com/
|
||||||
* Copyright 2012, Eric Rowell
|
* Copyright 2012, Eric Rowell
|
||||||
* Licensed under the MIT or GPL Version 2 licenses.
|
* Licensed under the MIT or GPL Version 2 licenses.
|
||||||
* Date: Aug 20 2012
|
* Date: Aug 21 2012
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 - 2012 by Eric Rowell
|
* Copyright (C) 2011 - 2012 by Eric Rowell
|
||||||
*
|
*
|
||||||
@@ -3805,7 +3805,7 @@ Kinetic.Shape = Kinetic.Node.extend({
|
|||||||
this.nodeType = 'Shape';
|
this.nodeType = 'Shape';
|
||||||
this.appliedShadow = false;
|
this.appliedShadow = false;
|
||||||
|
|
||||||
// set colorKey
|
// set colorKey
|
||||||
var shapes = Kinetic.Global.shapes;
|
var shapes = Kinetic.Global.shapes;
|
||||||
var key;
|
var key;
|
||||||
while(true) {
|
while(true) {
|
||||||
@@ -4113,7 +4113,7 @@ Kinetic.Shape = Kinetic.Node.extend({
|
|||||||
for(var n = 0; n < wl.length; n++) {
|
for(var n = 0; n < wl.length; n++) {
|
||||||
var key = wl[n];
|
var key = wl[n];
|
||||||
attrs[key] = this.attrs[key];
|
attrs[key] = this.attrs[key];
|
||||||
if(this.attrs[key] || (key === 'fill' && !this.attrs.stroke)) {
|
if(this.attrs[key] || (key === 'fill' && !this.attrs.stroke && !('image' in this.attrs))) {
|
||||||
this.attrs[key] = '#' + this.colorKey;
|
this.attrs[key] = '#' + this.colorKey;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
4
dist/kinetic-core.min.js
vendored
4
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -64,7 +64,7 @@ Kinetic.Shape = Kinetic.Node.extend({
|
|||||||
this.nodeType = 'Shape';
|
this.nodeType = 'Shape';
|
||||||
this.appliedShadow = false;
|
this.appliedShadow = false;
|
||||||
|
|
||||||
// set colorKey
|
// set colorKey
|
||||||
var shapes = Kinetic.Global.shapes;
|
var shapes = Kinetic.Global.shapes;
|
||||||
var key;
|
var key;
|
||||||
while(true) {
|
while(true) {
|
||||||
@@ -372,7 +372,7 @@ Kinetic.Shape = Kinetic.Node.extend({
|
|||||||
for(var n = 0; n < wl.length; n++) {
|
for(var n = 0; n < wl.length; n++) {
|
||||||
var key = wl[n];
|
var key = wl[n];
|
||||||
attrs[key] = this.attrs[key];
|
attrs[key] = this.attrs[key];
|
||||||
if(this.attrs[key] || (key === 'fill' && !this.attrs.stroke)) {
|
if(this.attrs[key] || (key === 'fill' && !this.attrs.stroke && !('image' in this.attrs))) {
|
||||||
this.attrs[key] = '#' + this.colorKey;
|
this.attrs[key] = '#' + this.colorKey;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user