@yanqirenshi/d3.ter 0.1.5 → 0.1.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.
@@ -34,21 +34,17 @@ var Name = /*#__PURE__*/function () {
34
34
  _createClass(Name, [{
35
35
  key: "set",
36
36
  value: function set(v) {
37
- if (arguments.lengh === 0 || !v) return this;
38
-
39
- if ('string' === typeof v) {
37
+ if (arguments.lengh === 0 || !v) {
38
+ return this;
39
+ } else if ('string' === typeof v) {
40
40
  var isLogical = function isLogical(str) {
41
41
  return str.match(/^[^\x01-\x7E\xA1-\xDF]+$/);
42
42
  };
43
43
 
44
44
  if (isLogical) this.physical = v;else this.logical = v;
45
- return this;
46
- }
47
-
48
- if ("object" === _typeof(v)) {
45
+ } else if ("object" === _typeof(v)) {
49
46
  this.physical = v.physical || null;
50
47
  this.logical = v.logical || null;
51
- return this;
52
48
  }
53
49
 
54
50
  return this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yanqirenshi/d3.ter",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "author": "yanqirenshi@gmail.com",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "description": "See `src/index.html`",