2013-06-17 13:42:53 +04:00
|
|
|
// TODO(grosbouddha): put under pskl namespace.
|
2012-08-31 12:45:07 +04:00
|
|
|
var Constants = {
|
2013-08-10 14:11:16 +04:00
|
|
|
DEFAULT_SIZE : {
|
|
|
|
height : 32,
|
|
|
|
width : 32
|
|
|
|
},
|
2012-09-16 20:48:32 +04:00
|
|
|
|
2013-08-10 14:11:16 +04:00
|
|
|
MAX_HEIGHT : 128,
|
|
|
|
MAX_WIDTH : 128,
|
2012-09-03 03:34:11 +04:00
|
|
|
|
2013-08-10 16:28:10 +04:00
|
|
|
PREVIEW_FILM_SIZE : 120,
|
2013-08-06 01:34:11 +04:00
|
|
|
|
2013-08-10 14:11:16 +04:00
|
|
|
DEFAULT_PEN_COLOR : '#000000',
|
|
|
|
TRANSPARENT_COLOR : 'TRANSPARENT',
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Fake semi-transparent color used to highlight transparent
|
|
|
|
* strokes and rectangles:
|
|
|
|
*/
|
|
|
|
SELECTION_TRANSPARENT_COLOR: 'rgba(255, 255, 255, 0.6)',
|
2012-09-16 17:35:30 +04:00
|
|
|
|
2013-08-10 14:11:16 +04:00
|
|
|
/*
|
|
|
|
* When a tool is hovering the drawing canvas, we highlight the eventual
|
|
|
|
* pixel target with this color:
|
|
|
|
*/
|
|
|
|
TOOL_TARGET_HIGHLIGHT_COLOR: 'rgba(255, 255, 255, 0.2)',
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Default entry point for piskel web service:
|
|
|
|
*/
|
|
|
|
PISKEL_SERVICE_URL: 'http://3.piskel-app.appspot.com',
|
2012-09-09 01:43:16 +04:00
|
|
|
|
2013-08-10 14:11:16 +04:00
|
|
|
GRID_STROKE_WIDTH: 1,
|
|
|
|
GRID_STROKE_COLOR: "lightgray",
|
2013-04-09 09:24:07 +04:00
|
|
|
|
2013-08-10 14:11:16 +04:00
|
|
|
LEFT_BUTTON : "left_button_1",
|
|
|
|
RIGHT_BUTTON : "right_button_2"
|
2012-08-31 12:45:07 +04:00
|
|
|
};
|