@yanqirenshi/d3.ter 0.0.1 → 0.0.5

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.
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = D3Ter;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _assh0le = _interopRequireDefault(require("@yanqirenshi/assh0le"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
+
18
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
+
20
+ function D3Ter(props) {
21
+ var rectum = props.rectum;
22
+ return /*#__PURE__*/_react["default"].createElement(_assh0le["default"], {
23
+ id: "d3-network-graph",
24
+ rectum: rectum
25
+ });
26
+ }
package/dist/index.js CHANGED
@@ -1,26 +1,29 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
- var _react = _interopRequireDefault(require("react"));
6
-
7
- var _reactDom = _interopRequireDefault(require("react-dom"));
8
-
9
- require("./index.css");
10
-
11
- var _App = _interopRequireDefault(require("./App"));
12
-
13
- var serviceWorker = _interopRequireWildcard(require("./serviceWorker"));
14
-
15
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
-
17
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Camera", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _assh0le.Camera;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "Rectum", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _Rectum["default"];
16
+ }
17
+ });
18
+ exports["default"] = void 0;
19
+
20
+ var _D3ter = _interopRequireDefault(require("./components/D3ter.js"));
21
+
22
+ var _Rectum = _interopRequireDefault(require("./js/Rectum.js"));
23
+
24
+ var _assh0le = require("@yanqirenshi/assh0le");
18
25
 
19
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
20
27
 
21
- _reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(_react["default"].StrictMode, null, /*#__PURE__*/_react["default"].createElement(_App["default"], null)), document.getElementById('root')); // If you want your app to work offline and load faster, you can change
22
- // unregister() to register() below. Note this comes with some pitfalls.
23
- // Learn more about service workers: https://bit.ly/CRA-PWA
24
-
25
-
26
- serviceWorker.unregister();
28
+ var _default = _D3ter["default"];
29
+ exports["default"] = _default;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
+
10
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
11
+
12
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
13
+
14
+ var Atman = /*#__PURE__*/function () {
15
+ function Atman(_class, data) {
16
+ _classCallCheck(this, Atman);
17
+
18
+ this._class = _class;
19
+ this._id = data.id;
20
+ this._core = data;
21
+ this._core._obj = this;
22
+ }
23
+
24
+ _createClass(Atman, [{
25
+ key: "id",
26
+ value: function id() {
27
+ return this._id;
28
+ }
29
+ }]);
30
+
31
+ return Atman;
32
+ }();
33
+
34
+ exports["default"] = Atman;
@@ -1,58 +1,55 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports["default"] = void 0;
7
9
 
8
- var _Pool = _interopRequireDefault(require("./Pool.js"));
10
+ var _Atman2 = _interopRequireDefault(require("./Atman.js"));
9
11
 
10
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
13
 
12
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
-
14
14
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
15
15
 
16
16
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
17
17
 
18
- var Attribute = /*#__PURE__*/function () {
19
- function Attribute() {
18
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
+
20
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
21
+
22
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
+
24
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
25
+
26
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
27
+
28
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
29
+
30
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
+
32
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
33
+
34
+ var Attribute = /*#__PURE__*/function (_Atman) {
35
+ _inherits(Attribute, _Atman);
36
+
37
+ var _super = _createSuper(Attribute);
38
+
39
+ function Attribute(data) {
40
+ var _this;
41
+
20
42
  _classCallCheck(this, Attribute);
43
+
44
+ _this = _super.call(this, 'ATTRIBUTE', data);
45
+ _this.name = data.name || {
46
+ physical: '???',
47
+ logical: '???'
48
+ };
49
+ return _this;
21
50
  }
22
51
 
23
- _createClass(Attribute, [{
24
- key: "list2pool",
25
- value: function list2pool(list) {
26
- return new _Pool["default"]().list2pool(list, function (d) {
27
- return d;
28
- });
29
- }
30
- }, {
31
- key: "template",
32
- value: function template() {
33
- return {
34
- _id: null,
35
- _class: 'ATTRIBUTE',
36
- name: {
37
- physical: '??',
38
- logical: ''
39
- },
40
- _core: null
41
- };
42
- }
43
- }, {
44
- key: "build",
45
- value: function build(core) {
46
- var element = this.template();
47
- element._id = core.id;
48
- element.name = core.name;
49
- element._core = core;
50
- core._element = element;
51
- return element;
52
- }
53
- }]);
54
-
55
- return Attribute;
56
- }();
52
+ return _createClass(Attribute);
53
+ }(_Atman2["default"]);
57
54
 
58
55
  exports["default"] = Attribute;
@@ -9,6 +9,12 @@ exports["default"] = void 0;
9
9
 
10
10
  var _ColumnInstance2 = _interopRequireDefault(require("./ColumnInstance.js"));
11
11
 
12
+ var _Name = _interopRequireDefault(require("./utils/Name.js"));
13
+
14
+ var _Position = _interopRequireDefault(require("./utils/Position.js"));
15
+
16
+ var _Size = _interopRequireDefault(require("./utils/Size.js"));
17
+
12
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
19
 
14
20
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -36,10 +42,16 @@ var AttributeInstance = /*#__PURE__*/function (_ColumnInstance) {
36
42
 
37
43
  var _super = _createSuper(AttributeInstance);
38
44
 
39
- function AttributeInstance() {
45
+ function AttributeInstance(master, data) {
46
+ var _this;
47
+
40
48
  _classCallCheck(this, AttributeInstance);
41
49
 
42
- return _super.apply(this, arguments);
50
+ _this = _super.call(this, 'ATTRIBUTE-INSTANCE', master, data);
51
+ _this.name = new _Name["default"](data.name || master.name);
52
+ _this.position = new _Position["default"]();
53
+ _this.size = new _Size["default"]();
54
+ return _this;
43
55
  }
44
56
 
45
57
  _createClass(AttributeInstance, [{
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports["default"] = void 0;
7
9
 
8
- var _Pool = _interopRequireDefault(require("./Pool.js"));
10
+ var _Atman2 = _interopRequireDefault(require("./Atman.js"));
9
11
 
10
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
13
 
@@ -15,46 +17,47 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
15
17
 
16
18
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
19
 
18
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
-
20
20
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
21
21
 
22
22
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
23
 
24
- var ColumnInstance = /*#__PURE__*/function () {
25
- function ColumnInstance() {
24
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
+
26
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
+
28
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
+
30
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
31
+
32
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
33
+
34
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
35
+
36
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
37
+
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
+
40
+ var ColumnInstance = /*#__PURE__*/function (_Atman) {
41
+ _inherits(ColumnInstance, _Atman);
42
+
43
+ var _super = _createSuper(ColumnInstance);
44
+
45
+ function ColumnInstance(_class, master, data) {
46
+ var _this;
47
+
26
48
  _classCallCheck(this, ColumnInstance);
49
+
50
+ _this = _super.call(this, _class, data);
51
+ _this.name = data.name || {
52
+ physical: '???',
53
+ logical: '???'
54
+ };
55
+ _this._master = master;
56
+ _this.name = _objectSpread({}, data.name ? data.name : master.name);
57
+ return _this;
27
58
  }
28
59
 
29
- _createClass(ColumnInstance, [{
30
- key: "list2pool",
31
- value: function list2pool(list) {
32
- return new _Pool["default"]().list2pool(list);
33
- }
34
- }, {
35
- key: "template",
36
- value: function template() {
37
- return {
38
- _id: null,
39
- _core: null,
40
- _master: null,
41
- name: null
42
- };
43
- }
44
- }, {
45
- key: "build",
46
- value: function build(core, master) {
47
- var element = this.template();
48
- element._id = core.id;
49
- element._core = core;
50
- core._element = element;
51
- element._master = master;
52
- element.name = _objectSpread({}, core.name ? core.name : master.name);
53
- return element;
54
- }
55
- }]);
56
-
57
- return ColumnInstance;
58
- }();
60
+ return _createClass(ColumnInstance);
61
+ }(_Atman2["default"]);
59
62
 
60
63
  exports["default"] = ColumnInstance;