Repository navigation
Expand file tree
/
Copy pathconfig.js
More file actions
114 lines (99 loc) · 2.54 KB
/
Copy pathconfig.js
File metadata and controls
114 lines (99 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/**
* @fileoverview General config for Coding in Chrome.
*
* @license Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @author mbordihn@google.com (Markus Bordihn)
*/
goog.provide('cwc.config');
goog.provide('cwc.config.Debug');
goog.provide('cwc.config.Default');
goog.provide('cwc.config.Number');
goog.provide('cwc.config.Prefix');
goog.provide('cwc.config.Sample');
goog.provide('cwc.config.interpreter');
goog.require('cwc.utils.LogLevel');
/**
* Default log level.
* @type {cwc.utils.LogLevel}
*/
cwc.config.LogLevel = cwc.utils.LogLevel.INFO;
/**
* Debug modes.
* @enum {!Object.<string>|boolean}
*/
cwc.config.Debug = {
ENABLED: false,
EXPORT: false,
PROPERTIES: false,
EXAMPLES: false,
SETTINGS: false,
ARDUINO: false,
RESOURCES: false,
GALLERY: false,
SPHERO: false,
TOUR: false
};
/**
* Default values.
* @enum {!Object.<string>|boolean}
*/
cwc.config.Default = {
LANGUAGE: 'en'
};
/**
* Magic numbers for calculations.
* @enum {number}
*/
cwc.config.Number = {
/**
* Magic Number for approximating a Circular Arc With a Cubic Bezier Path.
* (see http://en.wikipedia.org/wiki/B%C3%A9zier_spline)
*/
CIRCULAR_ARCS: .5522847498
};
/**
* General prefix.
* @enum {!Object.<string>|string}
*/
cwc.config.Prefix = {
CANVAS: 'canvas-',
CSS: 'cwc_',
EDITOR: 'editor-',
PLAYGROUND: 'env-',
FRAMEWORK: 'cwc.fn',
GENERAL: 'cwc-'
};
/**
* List of common samples.
* @enum {string}
*/
cwc.config.Sample = {
TEXT_PLACEHOLDER: 'Lorem ipsum non in vita reverti. Et facti sunt dies ut ' +
'expertus. Experientiarum fecisti. Quod est tibi. In ' +
'casu, cursus ut,'
};
/**
* Supported commands Flags for the Interpreter.
* @enum {!Object.<string>}
*/
cwc.config.interpreter.Flag = {
LOAD: {
ONLOAD: 'onLoad', // Load on "window.onload"
ONDOMREADY: 'onDomReady', // Load on "document.DOMContentLoaded"
INHEAD: 'inHead', // Place script inside <head>…</head>
INBODY: 'inBody' // Place script inside <body>…</body>
}
};