new icons

This commit is contained in:
Luis Fernando Molina committed 2020-03-17 17:52:05 +01:00
1 parent 7dc5d81f6e
commit 194dc9be95
3 files changed
+36 -5

No files matched your search

+2 -2
View File
@@ -281,8 +281,8 @@ function newUiObjectConstructor () {
actionFunction: floatingObject.payload.onMenuItemClick,
label: undefined,
visible: true,
iconPathOn: 'quality',
iconPathOff: 'quality',
iconPathOn: 'help',
iconPathOff: 'help',
rawRadius: 12,
targetRadius: 0,
currentRadius: 0,
+5 -1
View File
@@ -274,7 +274,11 @@ function newDesignSpace () {
'template-structure',
'template-target',
'delink',
'detach'
'detach',
'help',
'key-a',
'key-m',
'key-r'
]
for (let i = 0; i < iconsNames.length; i++) {
+29 -2
View File
@@ -17,7 +17,6 @@ function newVideoRecorder () {
function recordCanvas () {
{
console.log(canvas.mouse.action, wheelAnimationCounter)
const DISTANCE_BETWEEN_ICONS = 35
const ICON_SIZES = 50
@@ -61,7 +60,35 @@ function newVideoRecorder () {
} else {
pointerIcon = mousePointerIcon
}
let key = canvas.mouse.event.key
if (key === undefined) { break }
switch (key.toLowerCase()) {
case 'Escape':
{
pointerIcon = canvas.designSpace.iconCollection.get('key-m')
break
}
case 'm':
{
pointerIcon = canvas.designSpace.iconCollection.get('key-m')
break
}
case 'a':
{
pointerIcon = canvas.designSpace.iconCollection.get('key-a')
break
}
case 'r':
{
pointerIcon = canvas.designSpace.iconCollection.get('key-r')
break
}
case 'c':
{
pointerIcon = canvas.designSpace.iconCollection.get('key-r')
break
}
}
break
}
case 'key up': {