From f06f03a7f78c846a8418db5e04d8ac078e29ab95 Mon Sep 17 00:00:00 2001 From: juliandescottes Date: Fri, 7 Sep 2012 01:08:25 +0200 Subject: [PATCH 1/2] Added simple move tool --- css/tools.css | 8 ++ index.html | 2 + js/ToolSelector.js | 3 +- js/drawingtools/Stroke.js | 2 +- js/model/Frame.js | 168 +++++++++++++++++++------------------- 5 files changed, 97 insertions(+), 86 deletions(-) diff --git a/css/tools.css b/css/tools.css index d4622d9c..28951210 100644 --- a/css/tools.css +++ b/css/tools.css @@ -45,6 +45,10 @@ background-image: url(../img/tools/icons/rectangle.png); } +.tool-icon.tool-move { + background-image: url(../img/tools/icons/rectangle.png); +} + /*.tool-icon.tool-palette { background-image: url(../img/tools/icons/color-palette.png); }*/ @@ -69,6 +73,10 @@ cursor: url(../img/tools/cursors/rectangle.png) 4 21, pointer; } +.tool-rectangle .drawing-canvas-move:hover { + cursor: url(../img/tools/cursors/rectangle.png) 4 21, pointer; +} + .tool-icon.selected { cursor: auto; background-color: #eee; diff --git a/index.html b/index.html index 2d444879..ef1cf081 100644 --- a/index.html +++ b/index.html @@ -30,6 +30,7 @@
  • +