Skip to content

Commit 9318431

Browse files
committed
update dist and lib
1 parent abba9ad commit 9318431

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

dist/datav.map.vue.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
const minusY = Math.abs(pointOne[1] - pointTwo[1]);
3939
return Math.sqrt(minusX * minusX + minusY * minusY);
4040
}
41-
function uuid() {
42-
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
41+
function uuid(hasHyphen) {
42+
return (hasHyphen ? 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx' : 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx').replace(/[xy]/g, function (c) {
4343
const r = Math.random() * 16 | 0;
4444
const v = c == 'x' ? r : r & 0x3 | 0x8;
4545
return v.toString(16);

dist/datav.min.vue.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/util/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ export function getPointDistance (pointOne, pointTwo) {
3838
return Math.sqrt(minusX * minusX + minusY * minusY)
3939
}
4040

41-
export function uuid () {
42-
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
41+
export function uuid (hasHyphen) {
42+
return (hasHyphen ? 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx' : 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx').replace(/[xy]/g, function (c) {
4343
const r = Math.random() * 16 | 0
4444
const v = c == 'x' ? r : (r & 0x3 | 0x8)
4545
return v.toString(16)
46-
})
46+
})
4747
}

0 commit comments

Comments
 (0)