Comparing version 0.0.109 to 0.0.110
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -7,38 +7,11 @@ Object.defineProperty(exports, "__esModule", { | ||
var _createClass = function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _Point = require('./Point'); | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
// vx-point (@vx/point) | ||
var Point = function () { | ||
function Point(_ref) { | ||
var _ref$x = _ref.x, | ||
x = _ref$x === undefined ? 0 : _ref$x, | ||
_ref$y = _ref.y, | ||
y = _ref$y === undefined ? 0 : _ref$y; | ||
_classCallCheck(this, Point); | ||
this.x = x; | ||
this.y = y; | ||
Object.defineProperty(exports, 'Point', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_Point).default; | ||
} | ||
}); | ||
_createClass(Point, [{ | ||
key: "value", | ||
value: function value() { | ||
return { | ||
x: this.x, | ||
y: this.y | ||
}; | ||
} | ||
}, { | ||
key: "toArray", | ||
value: function toArray() { | ||
return [this.x, this.y]; | ||
} | ||
}]); | ||
return Point; | ||
}(); | ||
exports.default = Point; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
{ | ||
"name": "@vx/point", | ||
"version": "0.0.109", | ||
"version": "0.0.110", | ||
"description": "vx point", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -8,5 +8,5 @@ # @vx/point | ||
```js | ||
import Point from '@vx/point'; | ||
import { Point } from '@vx/point'; | ||
let point = new Point({x: 2, y: 3}); | ||
let point = new Point({ x: 2, y: 3 }); | ||
let {x, y} = point.value() // Get the cords from the point | ||
@@ -13,0 +13,0 @@ let array = point.toArray() // Convert point to array |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3582
4
44