|
@ -135,7 +135,7 @@ Node.prototype.setProperties = function(properties, constants) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var fields = ['borderWidth','borderWidthSelected','shape','image','radius','fontColor', |
|
|
|
|
|
|
|
|
var fields = ['borderWidth','borderWidthSelected','shape','image','brokenImage','radius','fontColor', |
|
|
'fontSize','fontFace','fontFill','group','mass' |
|
|
'fontSize','fontFace','fontFill','group','mass' |
|
|
]; |
|
|
]; |
|
|
util.selectiveDeepExtend(fields, this.options, properties); |
|
|
util.selectiveDeepExtend(fields, this.options, properties); |
|
@ -176,7 +176,7 @@ Node.prototype.setProperties = function(properties, constants) { |
|
|
|
|
|
|
|
|
if (this.options.image!== undefined && this.options.image!= "") { |
|
|
if (this.options.image!== undefined && this.options.image!= "") { |
|
|
if (this.imagelist) { |
|
|
if (this.imagelist) { |
|
|
this.imageObj = this.imagelist.load(this.options.image); |
|
|
|
|
|
|
|
|
this.imageObj = this.imagelist.load(this.options.image, this.options.brokenImage); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
throw "No imagelist provided"; |
|
|
throw "No imagelist provided"; |
|
|