@yanqirenshi/d3.ter 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -712,6 +712,7 @@ var EntityTailor = /*#__PURE__*/function (_Builder) {
712
712
  key: "positioningPort",
713
713
  value: function positioningPort(port) {
714
714
  var entity = this;
715
+ console.log(port._relationship);
715
716
  var line_port = this.makePortLine(entity, port);
716
717
  var lines_entity = this.getEntityLines(entity);
717
718
  var point = this.getCrossPoint(lines_entity, line_port, port);
@@ -245,9 +245,9 @@ var Painter = /*#__PURE__*/function () {
245
245
  }).attr('height', function (d) {
246
246
  return d.identifiers.size.h;
247
247
  }).attr('rx', function (d) {
248
- return 3;
248
+ return 2;
249
249
  }).attr('ry', function (d) {
250
- return 3;
250
+ return 2;
251
251
  }).attr('fill', function (d) {
252
252
  return d.identifiers.background.color;
253
253
  });
package/dist/js/Port.js CHANGED
@@ -45,6 +45,8 @@ var Port = /*#__PURE__*/function (_Atman) {
45
45
  _this._id = owner._id; // Idenrifier-Instance
46
46
 
47
47
  _this._owner = owner;
48
+ _this._type = type;
49
+ _this._core = data[type];
48
50
  _this.position = data.position || {
49
51
  x: 0,
50
52
  y: 0
@@ -59,7 +61,7 @@ var Port = /*#__PURE__*/function (_Atman) {
59
61
  _createClass(Port, [{
60
62
  key: "position_degree",
61
63
  value: function position_degree() {
62
- return this._owner._core.position % 360;
64
+ return this._core.position % 360;
63
65
  }
64
66
  }]);
65
67
 
package/dist/js/Rectum.js CHANGED
@@ -126,12 +126,12 @@ var Rectum = /*#__PURE__*/function (_Colon) {
126
126
 
127
127
  try {
128
128
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
129
- var core = _step2.value;
130
- var id_from = this.getIdentifier(core.from.id, entities);
131
- var id_to = this.getIdentifier(core.to.id, entities);
132
- var port_from = new _Port["default"]('from', id_from, core);
133
- var port_to = new _Port["default"]('to', id_to, core);
134
- var element = new _Relationship["default"](core, port_from, port_to);
129
+ var r = _step2.value;
130
+ var id_from = this.getIdentifier(r.from.id, entities);
131
+ var id_to = this.getIdentifier(r.to.id, entities);
132
+ var port_from = new _Port["default"]('from', id_from, r);
133
+ var port_to = new _Port["default"]('to', id_to, r);
134
+ var element = new _Relationship["default"](r, port_from, port_to);
135
135
  var entity_from = id_from._entity;
136
136
  var entity_to = id_to._entity;
137
137
  port_from._entity = entity_from;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yanqirenshi/d3.ter",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "author": "yanqirenshi@gmail.com",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "description": "See `src/index.html`",