@antv/g6-core
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -50,3 +50,3 @@ var subjectColor = 'rgb(95, 149, 255)'; | ||
export default { | ||
version: '0.0.12', | ||
version: '0.0.13', | ||
rootContainerClassName: 'root-container', | ||
@@ -53,0 +53,0 @@ nodeContainerClassName: 'node-container', |
@@ -1,2 +0,2 @@ | ||
/// <reference types="_gl-matrix@3.3.0@gl-matrix" /> | ||
/// <reference types="gl-matrix" /> | ||
import AbstractGraph from './graph/graph'; | ||
@@ -3,0 +3,0 @@ import Shape, { Arrow, Marker } from './element'; |
@@ -107,2 +107,3 @@ import { IGroup, Event as GraphEvent, BBox, AnimateCfg, ICanvas, IShape } from '@antv/g-base'; | ||
enableOptimize?: boolean; | ||
enableDebounce?: boolean; | ||
allowDragOnItem?: boolean; | ||
@@ -109,0 +110,0 @@ optimizeZoom?: number; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="_gl-matrix@3.3.0@gl-matrix" /> | ||
/// <reference types="gl-matrix" /> | ||
import * as MathUtil from './math'; | ||
@@ -3,0 +3,0 @@ import { ext, mat3 } from '@antv/matrix-util'; |
@@ -57,3 +57,2 @@ import { mat3, vec3, ext } from '@antv/matrix-util'; | ||
var sqrLen1 = D1.x * D1.x + D1.y * D1.y; | ||
var point = null; | ||
@@ -63,12 +62,10 @@ if (sqrKross > tolerance * sqrLen0 * sqrLen1) { | ||
var t = (E.x * D0.y - E.y * D0.x) * invertKross; | ||
if (isBetween(s, 0, 1) && isBetween(t, 0, 1)) { | ||
point = { | ||
x: p0.x + s * D0.x, | ||
y: p0.y + s * D0.y | ||
}; | ||
} | ||
if (!isBetween(s, 0, 1) || !isBetween(t, 0, 1)) return null; | ||
return { | ||
x: p0.x + s * D0.x, | ||
y: p0.y + s * D0.y | ||
}; | ||
} | ||
return point; | ||
return null; | ||
}; | ||
@@ -75,0 +72,0 @@ /** |
@@ -56,3 +56,3 @@ "use strict"; | ||
var _default = { | ||
version: '0.0.12', | ||
version: '0.0.13', | ||
rootContainerClassName: 'root-container', | ||
@@ -59,0 +59,0 @@ nodeContainerClassName: 'node-container', |
@@ -1,2 +0,2 @@ | ||
/// <reference types="_gl-matrix@3.3.0@gl-matrix" /> | ||
/// <reference types="gl-matrix" /> | ||
import AbstractGraph from './graph/graph'; | ||
@@ -3,0 +3,0 @@ import Shape, { Arrow, Marker } from './element'; |
@@ -107,2 +107,3 @@ import { IGroup, Event as GraphEvent, BBox, AnimateCfg, ICanvas, IShape } from '@antv/g-base'; | ||
enableOptimize?: boolean; | ||
enableDebounce?: boolean; | ||
allowDragOnItem?: boolean; | ||
@@ -109,0 +110,0 @@ optimizeZoom?: number; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="_gl-matrix@3.3.0@gl-matrix" /> | ||
/// <reference types="gl-matrix" /> | ||
import * as MathUtil from './math'; | ||
@@ -3,0 +3,0 @@ import { ext, mat3 } from '@antv/matrix-util'; |
@@ -69,3 +69,2 @@ "use strict"; | ||
var sqrLen1 = D1.x * D1.x + D1.y * D1.y; | ||
var point = null; | ||
@@ -75,12 +74,10 @@ if (sqrKross > tolerance * sqrLen0 * sqrLen1) { | ||
var t = (E.x * D0.y - E.y * D0.x) * invertKross; | ||
if (isBetween(s, 0, 1) && isBetween(t, 0, 1)) { | ||
point = { | ||
x: p0.x + s * D0.x, | ||
y: p0.y + s * D0.y | ||
}; | ||
} | ||
if (!isBetween(s, 0, 1) || !isBetween(t, 0, 1)) return null; | ||
return { | ||
x: p0.x + s * D0.x, | ||
y: p0.y + s * D0.y | ||
}; | ||
} | ||
return point; | ||
return null; | ||
}; | ||
@@ -87,0 +84,0 @@ /** |
{ | ||
"name": "@antv/g6-core", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "A Graph Visualization Framework in JavaScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
1086982
32045