2013-06-17 09:42:53 +00:00
|
|
|
// TODO(grosbouddha): put under pskl namespace.
|
2013-08-11 08:04:35 +00:00
|
|
|
var Constants = {
|
2013-09-22 19:02:43 +00:00
|
|
|
DEFAULT : {
|
|
|
|
HEIGHT : 32,
|
|
|
|
WIDTH : 32,
|
|
|
|
FPS : 12
|
2013-08-10 10:11:16 +00:00
|
|
|
},
|
2012-09-16 16:48:32 +00:00
|
|
|
|
2013-09-22 19:02:43 +00:00
|
|
|
MODEL_VERSION : 1,
|
|
|
|
|
2013-10-29 21:16:39 +00:00
|
|
|
MAX_HEIGHT : 1024,
|
|
|
|
MAX_WIDTH : 1024,
|
2012-09-02 23:34:11 +00:00
|
|
|
|
2013-08-10 12:28:10 +00:00
|
|
|
PREVIEW_FILM_SIZE : 120,
|
2013-08-05 21:34:11 +00:00
|
|
|
|
2013-09-28 21:52:51 +00:00
|
|
|
DEFAULT_PEN_COLOR : '#000000',
|
2013-08-10 10:11:16 +00:00
|
|
|
TRANSPARENT_COLOR : 'TRANSPARENT',
|
2013-09-29 21:26:09 +00:00
|
|
|
|
2013-08-10 10:11:16 +00:00
|
|
|
/*
|
|
|
|
* Fake semi-transparent color used to highlight transparent
|
|
|
|
* strokes and rectangles:
|
|
|
|
*/
|
|
|
|
SELECTION_TRANSPARENT_COLOR: 'rgba(255, 255, 255, 0.6)',
|
2012-09-16 13:35:30 +00:00
|
|
|
|
2013-08-10 10:11:16 +00: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)',
|
2013-09-29 21:26:09 +00:00
|
|
|
|
2013-08-10 10:11:16 +00:00
|
|
|
/*
|
|
|
|
* Default entry point for piskel web service:
|
|
|
|
*/
|
2013-10-09 22:06:11 +00:00
|
|
|
STATIC : {
|
|
|
|
URL : {
|
|
|
|
SAVE : 'http://3.piskel-app.appspot.com/store',
|
|
|
|
GET : 'http://3.piskel-app.appspot.com/get'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
APPENGINE : {
|
|
|
|
URL : {
|
|
|
|
SAVE : 'save'
|
|
|
|
}
|
|
|
|
},
|
2013-09-29 21:26:09 +00:00
|
|
|
IMAGE_SERVICE_UPLOAD_URL : 'http://screenletstore.appspot.com/__/upload',
|
|
|
|
IMAGE_SERVICE_GET_URL : 'http://screenletstore.appspot.com/img/',
|
2012-09-08 21:43:16 +00:00
|
|
|
|
2013-08-10 10:11:16 +00:00
|
|
|
GRID_STROKE_WIDTH: 1,
|
2013-04-09 05:24:07 +00:00
|
|
|
|
2013-09-29 21:26:09 +00:00
|
|
|
LEFT_BUTTON : 'left_button_1',
|
2013-11-01 15:27:23 +00:00
|
|
|
RIGHT_BUTTON : 'right_button_2',
|
|
|
|
MOUSEMOVE_THROTTLING : 10
|
2012-08-31 08:45:07 +00:00
|
|
|
};
|