animation plane shape
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
const HOME_COLOR = '#8b5cf6';
|
const HOME_COLOR = '#8b5cf6';
|
||||||
const VISITED_COLOR = '#22c55e';
|
const VISITED_COLOR = '#22c55e';
|
||||||
const ARC_COLOR = '#000000';
|
const ARC_COLOR = '#000000';
|
||||||
const PLANE_COLOR = '#000000';
|
const PLANE_COLOR = '#7c3aed';
|
||||||
const PLANE_PATH = 'M14,0 L4,-3 L0,-7 L-3,-5 L0,-2 L-5,-1 L-9,-5 L-11,-4 L-7,0 L-11,4 L-9,5 L-5,1 L0,2 L-3,5 L0,7 L4,3 Z';
|
const PLANE_PATH = 'M14,0 L4,-3 L0,-7 L-3,-5 L0,-2 L-5,-1 L-9,-5 L-11,-4 L-7,0 L-11,4 L-9,5 L-5,1 L0,2 L-3,5 L0,7 L4,3 Z';
|
||||||
const UNVISITED = '#ffffff';
|
const UNVISITED = '#ffffff';
|
||||||
|
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
try {
|
try {
|
||||||
const pt = node.getPointAtLength(clamped);
|
const pt = node.getPointAtLength(clamped);
|
||||||
const angle = getAngleAtLength(node, clamped);
|
const angle = getAngleAtLength(node, clamped);
|
||||||
tipEl.attr('transform', `translate(${pt.x}, ${pt.y}) rotate(${angle})`).attr('opacity', 1);
|
tipEl.attr('transform', `translate(${pt.x}, ${pt.y}) rotate(${angle}) scale(1.4)`).attr('opacity', 1);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// ignore SVG errors
|
// ignore SVG errors
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user