From f12c8766aa250a87b8781e74ca28c11ab1c793f5 Mon Sep 17 00:00:00 2001 From: Brian Broll Date: Fri, 15 Jul 2016 09:10:39 -0500 Subject: [PATCH] Added attributes to condense for width calc. Fixes #492 --- .../EasyDAG/OperationDecorator.EasyDAGWidget.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/decorators/OperationDecorator/EasyDAG/OperationDecorator.EasyDAGWidget.js b/src/decorators/OperationDecorator/EasyDAG/OperationDecorator.EasyDAGWidget.js index 33ae40a65..3419e3e97 100644 --- a/src/decorators/OperationDecorator/EasyDAG/OperationDecorator.EasyDAGWidget.js +++ b/src/decorators/OperationDecorator/EasyDAG/OperationDecorator.EasyDAGWidget.js @@ -1,10 +1,6 @@ /*globals define, _, Opentip*/ /*jshint browser: true, camelcase: false*/ -/** - * @author brollb / https://github.com/brollb - */ - define([ 'decorators/EllipseDecorator/EasyDAG/EllipseDecorator.EasyDAGWidget', 'css!./OperationDecorator.EasyDAGWidget.css' @@ -57,9 +53,12 @@ define([ .attr('height', this.dense.height); // Clear the attributes - this.$attributes.remove(); + this.clearFields(); this.$attributes = this.$el.append('g') - .attr('fill', '#222222'); + .attr('fill', 'none'); + + this.createAttributeFields(0, width); + this.createPointerFields(0, width, true); this.height = this.dense.height; this.width = width;