|
|
@ -180,16 +180,16 @@ Node.prototype.setProperties = function(properties, constants) { |
|
|
|
} |
|
|
|
|
|
|
|
// copy group properties
|
|
|
|
if (typeof this.options.group === 'number' || (typeof this.options.group === 'string' && this.options.group != '')) { |
|
|
|
var groupObj = this.grouplist.get(this.options.group); |
|
|
|
if (typeof properties.group === 'number' || (typeof properties.group === 'string' && properties.group != '')) { |
|
|
|
var groupObj = this.grouplist.get(properties.group); |
|
|
|
util.deepExtend(this.options, groupObj); |
|
|
|
// the color object needs to be completely defined. Since groups can partially overwrite the colors, we parse it again, just in case.
|
|
|
|
this.options.color = util.parseColor(this.options.color); |
|
|
|
} |
|
|
|
|
|
|
|
// individual shape properties
|
|
|
|
if (properties.radius !== undefined) {this.baseRadiusValue = this.options.radius;} |
|
|
|
if (properties.color !== undefined) {this.options.color = util.parseColor(properties.color);} |
|
|
|
|
|
|
|
if (this.options.image !== undefined && this.options.image!= "") { |
|
|
|
if (this.imagelist) { |
|
|
|
this.imageObj = this.imagelist.load(this.options.image, this.options.brokenImage); |
|
|
|