Skip to content

Commit

Permalink
Added legend to cursros/index.js as well as to MouseCursor.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Petts committed Apr 1, 2019
1 parent 34006d0 commit 8544854
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/cursors/MouseCursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const cursorModule = modules.cursor;
MACROS:
The following keys will have the appropriate value injected when
the SVG is requested:
an SVG is requested:
- ACTIVE_COLOR => options.activeColor || toolColors.getActiveColor();
- TOOL_COLOR => options.toolColor || toolColors.getToolColor();
Expand Down
11 changes: 11 additions & 0 deletions src/tools/cursors/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
import MouseCursor from './MouseCursor.js';

/*
MACROS:
The following keys will have the appropriate value injected by the MouseCursor
class when an SVG is requested:
- ACTIVE_COLOR => options.activeColor || toolColors.getActiveColor();
- TOOL_COLOR => options.toolColor || toolColors.getToolColor();
- FILL_COLOR => options.fillColor || toolColors.getFillColor();
*/

export const angleCursor = new MouseCursor(
`<path fill="ACTIVE_COLOR" d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50
50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23
Expand Down

0 comments on commit 8544854

Please sign in to comment.