mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-11-04 21:53:24 +01:00
cleanup constants
This commit is contained in:
parent
82ebf53ff2
commit
903b091845
18
package-lock.json
generated
18
package-lock.json
generated
@ -482,6 +482,14 @@
|
||||
"require-resolve": "0.0.2"
|
||||
}
|
||||
},
|
||||
"babel-plugin-ramda": {
|
||||
"version": "1.4.3",
|
||||
"resolved": "https://registry.npmjs.org/babel-plugin-ramda/-/babel-plugin-ramda-1.4.3.tgz",
|
||||
"integrity": "sha1-JltUqS8p9e1WGAuVxJnRriqKJac=",
|
||||
"requires": {
|
||||
"ramda": "0.21.0"
|
||||
}
|
||||
},
|
||||
"babel-plugin-syntax-async-functions": {
|
||||
"version": "6.13.0",
|
||||
"resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz",
|
||||
@ -1263,11 +1271,6 @@
|
||||
"hoek": "2.16.3"
|
||||
}
|
||||
},
|
||||
"bowser": {
|
||||
"version": "1.8.1",
|
||||
"resolved": "https://registry.npmjs.org/bowser/-/bowser-1.8.1.tgz",
|
||||
"integrity": "sha512-NMPaR8ILtdLSWzxQtEs16XbxMcY8ohWGQ5V+TZSJS3fNUt/PBAGkF6YWO9B/4qWE23bK3o0moQKq8UyFEosYkA=="
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "1.1.8",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz",
|
||||
@ -4408,6 +4411,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"ramda": {
|
||||
"version": "0.21.0",
|
||||
"resolved": "https://registry.npmjs.org/ramda/-/ramda-0.21.0.tgz",
|
||||
"integrity": "sha1-oAGr7bP/YQd9T/HVd9RN536NCjU="
|
||||
},
|
||||
"randomatic": {
|
||||
"version": "1.1.7",
|
||||
"resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz",
|
||||
|
@ -22,7 +22,6 @@
|
||||
"babel-plugin-transform-regenerator": "^6.26.0",
|
||||
"babel-preset-stage-0": "^6.24.1",
|
||||
"bezier-js": "^2.2.3",
|
||||
"bowser": "^1.8.1",
|
||||
"fit-curve": "^0.1.6",
|
||||
"imports-loader": "^0.7.1",
|
||||
"memoizee": "^0.3.9",
|
||||
|
@ -1,13 +1,8 @@
|
||||
import * as contextTools from './contextTools.js';
|
||||
import bowser from 'bowser';
|
||||
|
||||
export const VERSION = '0.16.6';
|
||||
export const SHAPE_CACHE_LIMIT = 50;
|
||||
export const IS_CORDOVA = typeof cordova !== 'undefined';
|
||||
export const PIXEL_RATIO = 1.0;
|
||||
// On android and iOS autofocus means the keyboard pops up for one second and then hides
|
||||
// Disable autofocus on these devices
|
||||
export const AUTO_FOCUS_TEXT_FIELDS = !(bowser.mobile || bowser.tablet);
|
||||
|
||||
export const COLOR_STRING_TO_HEX = {
|
||||
[contextTools.LIGHT_BLUE]: 0xc8e4f7,
|
||||
@ -42,7 +37,3 @@ COLOR_HEX_TO_STRING[0x7ab063] = contextTools.DARK_GREEN;
|
||||
COLOR_HEX_TO_STRING[0xb36984] = contextTools.DARK_PINK;
|
||||
COLOR_HEX_TO_STRING[0xf5e872] = contextTools.DARK_YELLOW;
|
||||
COLOR_HEX_TO_STRING[0x00DDFF] = contextTools.BLUE;
|
||||
|
||||
export const REQUEST_CONFIG = {
|
||||
LARGE: { timeout: 0 }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user