@magmamath/students-features 0.9.0-rc22 → 0.9.0-rc23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +3 -3
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/{useLayoutOptions.js → helpers.js} +7 -8
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js +3 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.js +7 -2
- package/dist/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +2 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +2 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/Keyboard.js +1 -1
- package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/KeysList/KeysList.js +1 -1
- package/dist/commonjs/features/keyboard/components/KeysList/KeysList.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/KeysList/helpers.js +2 -1
- package/dist/commonjs/features/keyboard/components/KeysList/helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js +18 -6
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js +10 -9
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js +39 -0
- package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +7 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.js +18 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js +9 -3
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/geometry.js +7 -0
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/geometry.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js +117 -469
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +3 -3
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/{useLayoutOptions.js → helpers.js} +5 -5
- package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -0
- package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js +3 -1
- package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/TimeBasicLayout.js +7 -2
- package/dist/module/features/keyboard/components/BasicLayout/TimeBasicLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +2 -1
- package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +2 -1
- package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/Keyboard.js +2 -2
- package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/module/features/keyboard/components/KeysList/KeysList.js +2 -1
- package/dist/module/features/keyboard/components/KeysList/KeysList.js.map +1 -1
- package/dist/module/features/keyboard/components/KeysList/helpers.js +2 -1
- package/dist/module/features/keyboard/components/KeysList/helpers.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js +19 -7
- package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js +11 -9
- package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/{hooks/useLayoutSelectOptions.js → helpers.js} +7 -8
- package/dist/module/features/keyboard/components/UnitsLayout/helpers.js.map +1 -0
- package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +8 -2
- package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/keyboardGroups.js +17 -0
- package/dist/module/features/keyboard/components/UnitsLayout/keyboardGroups.js.map +1 -1
- package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js +9 -3
- package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
- package/dist/module/features/keyboard/types/MathKeysGroups/geometry.js +7 -0
- package/dist/module/features/keyboard/types/MathKeysGroups/geometry.js.map +1 -1
- package/dist/module/features/keyboard/types/MathKeysGroups/units.js +117 -469
- package/dist/module/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
- package/dist/typescript/{module/features/keyboard/components/AlgebraLayout/useLayoutOptions.d.ts → commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts} +2 -2
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/KeysList.d.ts +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/KeysList.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/helpers.d.ts +2 -2
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/{hooks/useLayoutSelectOptions.d.ts → helpers.d.ts} +4 -4
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +48 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts +4 -0
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/geometry.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts +2 -0
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts.map +1 -1
- package/dist/typescript/{commonjs/features/keyboard/components/AlgebraLayout/useLayoutOptions.d.ts → module/features/keyboard/components/AlgebraLayout/helpers.d.ts} +2 -2
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicLayout/TimeBasicLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/KeysList/KeysList.d.ts +1 -1
- package/dist/typescript/module/features/keyboard/components/KeysList/KeysList.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/KeysList/helpers.d.ts +2 -2
- package/dist/typescript/module/features/keyboard/components/KeysList/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitTabs.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/{hooks/useLayoutSelectOptions.d.ts → helpers.d.ts} +4 -4
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +48 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts +4 -0
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/geometry.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/types.d.ts +2 -0
- package/dist/typescript/module/features/keyboard/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +3 -3
- package/src/features/keyboard/components/AlgebraLayout/helpers.tsx +39 -0
- package/src/features/keyboard/components/BasicLayout/BasicLayout.tsx +3 -1
- package/src/features/keyboard/components/BasicLayout/TimeBasicLayout.tsx +6 -1
- package/src/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.tsx +2 -1
- package/src/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.tsx +2 -1
- package/src/features/keyboard/components/Keyboard.tsx +2 -2
- package/src/features/keyboard/components/KeysList/KeysList.tsx +2 -1
- package/src/features/keyboard/components/KeysList/helpers.ts +2 -1
- package/src/features/keyboard/components/UnitsLayout/UnitTabs.tsx +24 -5
- package/src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx +7 -14
- package/src/features/keyboard/components/UnitsLayout/{hooks/useLayoutSelectOptions.tsx → helpers.tsx} +6 -8
- package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +5 -3
- package/src/features/keyboard/components/UnitsLayout/keyboardGroups.ts +25 -0
- package/src/features/keyboard/types/MathKeysGroups/basicOperators.tsx +6 -0
- package/src/features/keyboard/types/MathKeysGroups/geometry.tsx +7 -0
- package/src/features/keyboard/types/MathKeysGroups/units.tsx +102 -468
- package/src/features/keyboard/types/types.ts +2 -0
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/useLayoutOptions.js.map +0 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/constants.js +0 -25
- package/dist/commonjs/features/keyboard/components/UnitsLayout/constants.js.map +0 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useLayoutSelectOptions.js +0 -40
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useLayoutSelectOptions.js.map +0 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useTabKeys.js +0 -19
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useTabKeys.js.map +0 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/useLayoutOptions.js.map +0 -1
- package/dist/module/features/keyboard/components/UnitsLayout/constants.js +0 -21
- package/dist/module/features/keyboard/components/UnitsLayout/constants.js.map +0 -1
- package/dist/module/features/keyboard/components/UnitsLayout/hooks/useLayoutSelectOptions.js.map +0 -1
- package/dist/module/features/keyboard/components/UnitsLayout/hooks/useTabKeys.js +0 -14
- package/dist/module/features/keyboard/components/UnitsLayout/hooks/useTabKeys.js.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/useLayoutOptions.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/constants.d.ts +0 -6
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useLayoutSelectOptions.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useTabKeys.d.ts +0 -3
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useTabKeys.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/useLayoutOptions.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/constants.d.ts +0 -6
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/constants.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useLayoutSelectOptions.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useTabKeys.d.ts +0 -3
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useTabKeys.d.ts.map +0 -1
- package/src/features/keyboard/components/AlgebraLayout/useLayoutOptions.tsx +0 -42
- package/src/features/keyboard/components/UnitsLayout/constants.ts +0 -33
- package/src/features/keyboard/components/UnitsLayout/hooks/useTabKeys.ts +0 -17
|
@@ -13,6 +13,7 @@ var _YenIcon = require("../../../../shared/icons/MATH/YenIcon/YenIcon.js");
|
|
|
13
13
|
var _CentIcon = require("../../../../shared/icons/MATH/CentIcon/CentIcon.js");
|
|
14
14
|
var _constants = require("../../constants/constants.js");
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
|
+
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
16
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
19
|
let MathCurrencyUnit = exports.MathCurrencyUnit = /*#__PURE__*/function (MathCurrencyUnit) {
|
|
@@ -105,6 +106,48 @@ let MathTimeUnit = exports.MathTimeUnit = /*#__PURE__*/function (MathTimeUnit) {
|
|
|
105
106
|
MathTimeUnit["PM"] = "PM";
|
|
106
107
|
return MathTimeUnit;
|
|
107
108
|
}({});
|
|
109
|
+
const BASE_TEXT_STYLE = {
|
|
110
|
+
fontSize: 14,
|
|
111
|
+
fontWeight: 700
|
|
112
|
+
};
|
|
113
|
+
const STYLE_PRESETS = {
|
|
114
|
+
SMALL: {
|
|
115
|
+
button: {
|
|
116
|
+
width: _reactNativeUi.IS_MOBILE ? 44 : 40
|
|
117
|
+
},
|
|
118
|
+
container: {
|
|
119
|
+
flexBasis: _reactNativeUi.IS_MOBILE ? 48 : undefined
|
|
120
|
+
},
|
|
121
|
+
text: BASE_TEXT_STYLE
|
|
122
|
+
},
|
|
123
|
+
MEDIUM: {
|
|
124
|
+
button: {
|
|
125
|
+
width: _reactNativeUi.IS_MOBILE ? 50 : 45
|
|
126
|
+
},
|
|
127
|
+
container: {
|
|
128
|
+
flexBasis: _reactNativeUi.IS_MOBILE ? 54 : undefined
|
|
129
|
+
},
|
|
130
|
+
text: BASE_TEXT_STYLE
|
|
131
|
+
},
|
|
132
|
+
LARGE: {
|
|
133
|
+
button: {
|
|
134
|
+
width: _reactNativeUi.IS_MOBILE ? 54 : 48
|
|
135
|
+
},
|
|
136
|
+
container: {
|
|
137
|
+
flexBasis: _reactNativeUi.IS_MOBILE ? 58 : undefined
|
|
138
|
+
},
|
|
139
|
+
text: BASE_TEXT_STYLE
|
|
140
|
+
},
|
|
141
|
+
XL: {
|
|
142
|
+
button: {
|
|
143
|
+
width: _reactNativeUi.IS_MOBILE ? 56 : 52
|
|
144
|
+
},
|
|
145
|
+
container: {
|
|
146
|
+
flexBasis: _reactNativeUi.IS_MOBILE ? 60 : undefined
|
|
147
|
+
},
|
|
148
|
+
text: BASE_TEXT_STYLE
|
|
149
|
+
}
|
|
150
|
+
};
|
|
108
151
|
const MATH_CURRENCY_UNITS = exports.MATH_CURRENCY_UNITS = {
|
|
109
152
|
[MathCurrencyUnit.KRONE]: {
|
|
110
153
|
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_KroneIcon.KroneIcon, {
|
|
@@ -118,7 +161,8 @@ const MATH_CURRENCY_UNITS = exports.MATH_CURRENCY_UNITS = {
|
|
|
118
161
|
..._constants.DEFAULT_KEY_ICON_PROPS
|
|
119
162
|
}),
|
|
120
163
|
mathliveValue: '\\$',
|
|
121
|
-
katexValue: '\$'
|
|
164
|
+
katexValue: '\$',
|
|
165
|
+
mathQuillValue: '\\$'
|
|
122
166
|
},
|
|
123
167
|
[MathCurrencyUnit.EURO]: {
|
|
124
168
|
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_EuroIcon.EuroIcon, {
|
|
@@ -161,169 +205,74 @@ const MATH_LENGTH_UNITS = exports.MATH_LENGTH_UNITS = {
|
|
|
161
205
|
label: 'km',
|
|
162
206
|
mathliveValue: 'km',
|
|
163
207
|
katexValue: 'km',
|
|
164
|
-
style:
|
|
165
|
-
button: {
|
|
166
|
-
width: 45
|
|
167
|
-
},
|
|
168
|
-
text: {
|
|
169
|
-
fontSize: 14,
|
|
170
|
-
fontWeight: 700
|
|
171
|
-
}
|
|
172
|
-
}
|
|
208
|
+
style: STYLE_PRESETS.MEDIUM
|
|
173
209
|
},
|
|
174
210
|
[MathLengthUnit.METER]: {
|
|
175
211
|
label: 'm',
|
|
176
212
|
mathliveValue: '\\mathrm{m}',
|
|
177
213
|
katexValue: 'm',
|
|
178
|
-
style:
|
|
179
|
-
button: {
|
|
180
|
-
width: 45
|
|
181
|
-
},
|
|
182
|
-
text: {
|
|
183
|
-
fontSize: 14,
|
|
184
|
-
fontWeight: 700
|
|
185
|
-
}
|
|
186
|
-
}
|
|
214
|
+
style: STYLE_PRESETS.MEDIUM
|
|
187
215
|
},
|
|
188
216
|
[MathLengthUnit.DECIMETER]: {
|
|
189
217
|
label: 'dm',
|
|
190
218
|
mathliveValue: '\\mathrm{dm}',
|
|
191
219
|
katexValue: 'dm',
|
|
192
|
-
style:
|
|
193
|
-
button: {
|
|
194
|
-
width: 45
|
|
195
|
-
},
|
|
196
|
-
text: {
|
|
197
|
-
fontSize: 14,
|
|
198
|
-
fontWeight: 700
|
|
199
|
-
}
|
|
200
|
-
}
|
|
220
|
+
style: STYLE_PRESETS.MEDIUM
|
|
201
221
|
},
|
|
202
222
|
[MathLengthUnit.CENTIMETER]: {
|
|
203
223
|
label: 'cm',
|
|
204
224
|
mathliveValue: '\\mathrm{cm}',
|
|
205
225
|
katexValue: 'cm',
|
|
206
|
-
style:
|
|
207
|
-
button: {
|
|
208
|
-
width: 45
|
|
209
|
-
},
|
|
210
|
-
text: {
|
|
211
|
-
fontSize: 14,
|
|
212
|
-
fontWeight: 700
|
|
213
|
-
}
|
|
214
|
-
}
|
|
226
|
+
style: STYLE_PRESETS.MEDIUM
|
|
215
227
|
},
|
|
216
228
|
[MathLengthUnit.MILLIMETER]: {
|
|
217
229
|
label: 'mm',
|
|
218
230
|
mathliveValue: '\\mathrm{mm}',
|
|
219
231
|
katexValue: 'mm',
|
|
220
|
-
style:
|
|
221
|
-
button: {
|
|
222
|
-
width: 45
|
|
223
|
-
},
|
|
224
|
-
text: {
|
|
225
|
-
fontSize: 14,
|
|
226
|
-
fontWeight: 700
|
|
227
|
-
}
|
|
228
|
-
}
|
|
232
|
+
style: STYLE_PRESETS.MEDIUM
|
|
229
233
|
},
|
|
230
234
|
[MathLengthUnit.HECTARE]: {
|
|
231
235
|
label: 'ha',
|
|
232
236
|
mathliveValue: '\\mathrm{ha}',
|
|
233
237
|
katexValue: 'ha',
|
|
234
|
-
style:
|
|
235
|
-
button: {
|
|
236
|
-
width: 45
|
|
237
|
-
},
|
|
238
|
-
text: {
|
|
239
|
-
fontSize: 14,
|
|
240
|
-
fontWeight: 700
|
|
241
|
-
}
|
|
242
|
-
}
|
|
238
|
+
style: STYLE_PRESETS.MEDIUM
|
|
243
239
|
},
|
|
244
240
|
[MathLengthUnit.INCH]: {
|
|
245
241
|
label: 'in',
|
|
246
242
|
mathliveValue: '\\mathrm{in}',
|
|
247
243
|
katexValue: 'in',
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
width: 40
|
|
251
|
-
},
|
|
252
|
-
text: {
|
|
253
|
-
fontSize: 14,
|
|
254
|
-
fontWeight: 700
|
|
255
|
-
}
|
|
256
|
-
}
|
|
244
|
+
mathQuillValue: '\\in',
|
|
245
|
+
style: STYLE_PRESETS.SMALL
|
|
257
246
|
},
|
|
258
247
|
[MathLengthUnit.FOOT]: {
|
|
259
248
|
label: 'ft',
|
|
260
249
|
mathliveValue: '\\mathrm{ft}',
|
|
261
250
|
katexValue: 'ft',
|
|
262
|
-
style:
|
|
263
|
-
button: {
|
|
264
|
-
width: 40
|
|
265
|
-
},
|
|
266
|
-
text: {
|
|
267
|
-
fontSize: 14,
|
|
268
|
-
fontWeight: 700
|
|
269
|
-
}
|
|
270
|
-
}
|
|
251
|
+
style: STYLE_PRESETS.SMALL
|
|
271
252
|
},
|
|
272
253
|
[MathLengthUnit.YARD]: {
|
|
273
254
|
label: 'yd',
|
|
274
255
|
mathliveValue: '\\mathrm{yd}',
|
|
275
256
|
katexValue: 'yd',
|
|
276
|
-
style:
|
|
277
|
-
button: {
|
|
278
|
-
width: 40
|
|
279
|
-
},
|
|
280
|
-
text: {
|
|
281
|
-
fontSize: 14,
|
|
282
|
-
fontWeight: 700
|
|
283
|
-
}
|
|
284
|
-
}
|
|
257
|
+
style: STYLE_PRESETS.SMALL
|
|
285
258
|
},
|
|
286
259
|
[MathLengthUnit.YARDS]: {
|
|
287
260
|
label: 'yds',
|
|
288
261
|
mathliveValue: '\\mathrm{yds}',
|
|
289
262
|
katexValue: 'yds',
|
|
290
|
-
style:
|
|
291
|
-
button: {
|
|
292
|
-
width: 40
|
|
293
|
-
},
|
|
294
|
-
text: {
|
|
295
|
-
fontSize: 14,
|
|
296
|
-
fontWeight: 700
|
|
297
|
-
}
|
|
298
|
-
}
|
|
263
|
+
style: STYLE_PRESETS.SMALL
|
|
299
264
|
},
|
|
300
265
|
[MathLengthUnit.MILE]: {
|
|
301
266
|
label: 'mi',
|
|
302
267
|
mathliveValue: '\\mathrm{mi}',
|
|
303
268
|
katexValue: 'mi',
|
|
304
|
-
style:
|
|
305
|
-
button: {
|
|
306
|
-
width: 40
|
|
307
|
-
},
|
|
308
|
-
text: {
|
|
309
|
-
fontSize: 14,
|
|
310
|
-
fontWeight: 700
|
|
311
|
-
}
|
|
312
|
-
}
|
|
269
|
+
style: STYLE_PRESETS.SMALL
|
|
313
270
|
},
|
|
314
271
|
[MathLengthUnit.MILE_SE]: {
|
|
315
272
|
label: 'mil',
|
|
316
273
|
mathliveValue: '\\mathrm{mil}',
|
|
317
274
|
katexValue: 'mil',
|
|
318
|
-
style:
|
|
319
|
-
button: {
|
|
320
|
-
width: 45
|
|
321
|
-
},
|
|
322
|
-
text: {
|
|
323
|
-
fontSize: 14,
|
|
324
|
-
fontWeight: 700
|
|
325
|
-
}
|
|
326
|
-
}
|
|
275
|
+
style: STYLE_PRESETS.MEDIUM
|
|
327
276
|
}
|
|
328
277
|
};
|
|
329
278
|
const MATH_AREA_UNITS = exports.MATH_AREA_UNITS = {
|
|
@@ -331,141 +280,70 @@ const MATH_AREA_UNITS = exports.MATH_AREA_UNITS = {
|
|
|
331
280
|
label: 'km²',
|
|
332
281
|
mathliveValue: '\\mathrm{km}^2',
|
|
333
282
|
katexValue: 'km^2',
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
width: 48
|
|
337
|
-
},
|
|
338
|
-
text: {
|
|
339
|
-
fontSize: 14,
|
|
340
|
-
fontWeight: 700
|
|
341
|
-
}
|
|
342
|
-
}
|
|
283
|
+
mathQuillValue: 'km^{2}',
|
|
284
|
+
style: STYLE_PRESETS.LARGE
|
|
343
285
|
},
|
|
344
286
|
[MathAreaUnit.SQUARE_METER]: {
|
|
345
287
|
label: 'm²',
|
|
346
288
|
mathliveValue: '\\mathrm{m}^2',
|
|
347
289
|
katexValue: 'm^2',
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
width: 45
|
|
351
|
-
},
|
|
352
|
-
text: {
|
|
353
|
-
fontSize: 14,
|
|
354
|
-
fontWeight: 700
|
|
355
|
-
}
|
|
356
|
-
}
|
|
290
|
+
mathQuillValue: 'm^{2}',
|
|
291
|
+
style: STYLE_PRESETS.MEDIUM
|
|
357
292
|
},
|
|
358
293
|
[MathAreaUnit.SQUARE_DECIMETER]: {
|
|
359
294
|
label: 'dm²',
|
|
360
295
|
mathliveValue: '\\mathrm{dm}^2',
|
|
361
296
|
katexValue: 'dm^2',
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
width: 48
|
|
365
|
-
},
|
|
366
|
-
text: {
|
|
367
|
-
fontSize: 14,
|
|
368
|
-
fontWeight: 700
|
|
369
|
-
}
|
|
370
|
-
}
|
|
297
|
+
mathQuillValue: 'dm^{2}',
|
|
298
|
+
style: STYLE_PRESETS.LARGE
|
|
371
299
|
},
|
|
372
300
|
[MathAreaUnit.SQUARE_CENTIMETER]: {
|
|
373
301
|
label: 'cm²',
|
|
374
302
|
mathliveValue: '\\mathrm{cm}^2',
|
|
375
303
|
katexValue: 'cm^2',
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
width: 48
|
|
379
|
-
},
|
|
380
|
-
text: {
|
|
381
|
-
fontSize: 14,
|
|
382
|
-
fontWeight: 700
|
|
383
|
-
}
|
|
384
|
-
}
|
|
304
|
+
mathQuillValue: 'cm^{2}',
|
|
305
|
+
style: STYLE_PRESETS.LARGE
|
|
385
306
|
},
|
|
386
307
|
[MathAreaUnit.SQUARE_MILLIMETER]: {
|
|
387
308
|
label: 'mm²',
|
|
388
309
|
mathliveValue: '\\mathrm{mm}^2',
|
|
389
310
|
katexValue: 'mm^2',
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
width: 48
|
|
393
|
-
},
|
|
394
|
-
text: {
|
|
395
|
-
fontSize: 14,
|
|
396
|
-
fontWeight: 700
|
|
397
|
-
}
|
|
398
|
-
}
|
|
311
|
+
mathQuillValue: 'mm^{2}',
|
|
312
|
+
style: STYLE_PRESETS.LARGE
|
|
399
313
|
},
|
|
400
314
|
[MathAreaUnit.SQUARE_INCH]: {
|
|
401
315
|
label: 'in²',
|
|
402
316
|
mathliveValue: '\\mathrm{in}^2',
|
|
403
317
|
katexValue: 'in^2',
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
width: 43
|
|
407
|
-
},
|
|
408
|
-
text: {
|
|
409
|
-
fontSize: 14,
|
|
410
|
-
fontWeight: 700
|
|
411
|
-
}
|
|
412
|
-
}
|
|
318
|
+
mathQuillValue: 'in^{2}',
|
|
319
|
+
style: STYLE_PRESETS.SMALL
|
|
413
320
|
},
|
|
414
321
|
[MathAreaUnit.SQUARE_FOOT]: {
|
|
415
322
|
label: 'ft²',
|
|
416
323
|
mathliveValue: '\\mathrm{ft}^2',
|
|
417
324
|
katexValue: 'ft^2',
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
width: 43
|
|
421
|
-
},
|
|
422
|
-
text: {
|
|
423
|
-
fontSize: 14,
|
|
424
|
-
fontWeight: 700
|
|
425
|
-
}
|
|
426
|
-
}
|
|
325
|
+
mathQuillValue: 'ft^{2}',
|
|
326
|
+
style: STYLE_PRESETS.SMALL
|
|
427
327
|
},
|
|
428
328
|
[MathAreaUnit.SQUARE_MILE]: {
|
|
429
329
|
label: 'mi²',
|
|
430
330
|
mathliveValue: '\\mathrm{mi}^2',
|
|
431
331
|
katexValue: 'mi^2',
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
width: 43
|
|
435
|
-
},
|
|
436
|
-
text: {
|
|
437
|
-
fontSize: 14,
|
|
438
|
-
fontWeight: 700
|
|
439
|
-
}
|
|
440
|
-
}
|
|
332
|
+
mathQuillValue: 'mi^{2}',
|
|
333
|
+
style: STYLE_PRESETS.SMALL
|
|
441
334
|
},
|
|
442
335
|
[MathAreaUnit.SQUARE_YARD]: {
|
|
443
336
|
label: 'yd²',
|
|
444
337
|
mathliveValue: '\\mathrm{yd}^2',
|
|
445
338
|
katexValue: 'yd^2',
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
width: 43
|
|
449
|
-
},
|
|
450
|
-
text: {
|
|
451
|
-
fontSize: 14,
|
|
452
|
-
fontWeight: 700
|
|
453
|
-
}
|
|
454
|
-
}
|
|
339
|
+
mathQuillValue: 'yd^{2}',
|
|
340
|
+
style: STYLE_PRESETS.MEDIUM
|
|
455
341
|
},
|
|
456
342
|
[MathAreaUnit.HECTARE]: {
|
|
457
343
|
label: 'ha',
|
|
458
344
|
mathliveValue: '\\mathrm{ha}',
|
|
459
345
|
katexValue: 'ha',
|
|
460
|
-
style:
|
|
461
|
-
button: {
|
|
462
|
-
width: 40
|
|
463
|
-
},
|
|
464
|
-
text: {
|
|
465
|
-
fontSize: 14,
|
|
466
|
-
fontWeight: 700
|
|
467
|
-
}
|
|
468
|
-
}
|
|
346
|
+
style: STYLE_PRESETS.SMALL
|
|
469
347
|
}
|
|
470
348
|
};
|
|
471
349
|
const MATH_VOLUME_UNITS = exports.MATH_VOLUME_UNITS = {
|
|
@@ -473,281 +351,131 @@ const MATH_VOLUME_UNITS = exports.MATH_VOLUME_UNITS = {
|
|
|
473
351
|
label: 'km³',
|
|
474
352
|
mathliveValue: '\\mathrm{km}^3',
|
|
475
353
|
katexValue: 'km^3',
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
width: 48
|
|
479
|
-
},
|
|
480
|
-
text: {
|
|
481
|
-
fontSize: 14,
|
|
482
|
-
fontWeight: 700
|
|
483
|
-
}
|
|
484
|
-
}
|
|
354
|
+
mathQuillValue: 'km^{3}',
|
|
355
|
+
style: STYLE_PRESETS.LARGE
|
|
485
356
|
},
|
|
486
357
|
[MathVolumeUnit.CUBIC_METER]: {
|
|
487
358
|
label: 'm³',
|
|
488
359
|
mathliveValue: '\\mathrm{m}^3',
|
|
489
360
|
katexValue: 'm^3',
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
width: 48
|
|
493
|
-
},
|
|
494
|
-
text: {
|
|
495
|
-
fontSize: 14,
|
|
496
|
-
fontWeight: 700
|
|
497
|
-
}
|
|
498
|
-
}
|
|
361
|
+
mathQuillValue: 'm^{3}',
|
|
362
|
+
style: STYLE_PRESETS.LARGE
|
|
499
363
|
},
|
|
500
364
|
[MathVolumeUnit.CUBIC_DECIMETER]: {
|
|
501
365
|
label: 'dm³',
|
|
502
366
|
mathliveValue: '\\mathrm{dm}^3',
|
|
503
367
|
katexValue: 'dm^3',
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
width: 48
|
|
507
|
-
},
|
|
508
|
-
text: {
|
|
509
|
-
fontSize: 14,
|
|
510
|
-
fontWeight: 700
|
|
511
|
-
}
|
|
512
|
-
}
|
|
368
|
+
mathQuillValue: 'dm^{3}',
|
|
369
|
+
style: STYLE_PRESETS.LARGE
|
|
513
370
|
},
|
|
514
371
|
[MathVolumeUnit.CUBIC_CENTIMETER]: {
|
|
515
372
|
label: 'cm³',
|
|
516
373
|
mathliveValue: '\\mathrm{cm}^3',
|
|
517
374
|
katexValue: 'cm^3',
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
width: 48
|
|
521
|
-
},
|
|
522
|
-
text: {
|
|
523
|
-
fontSize: 14,
|
|
524
|
-
fontWeight: 700
|
|
525
|
-
}
|
|
526
|
-
}
|
|
375
|
+
mathQuillValue: 'cm^{3}',
|
|
376
|
+
style: STYLE_PRESETS.LARGE
|
|
527
377
|
},
|
|
528
378
|
[MathVolumeUnit.CUBIC_MILLIMETER]: {
|
|
529
379
|
label: 'mm³',
|
|
530
380
|
mathliveValue: '\\mathrm{mm}^3',
|
|
531
381
|
katexValue: 'mm^3',
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
width: 48
|
|
535
|
-
},
|
|
536
|
-
text: {
|
|
537
|
-
fontSize: 14,
|
|
538
|
-
fontWeight: 700
|
|
539
|
-
}
|
|
540
|
-
}
|
|
382
|
+
mathQuillValue: 'mm^{3}',
|
|
383
|
+
style: STYLE_PRESETS.LARGE
|
|
541
384
|
},
|
|
542
385
|
[MathVolumeUnit.CUBIC_INCH]: {
|
|
543
386
|
label: 'in³',
|
|
544
387
|
mathliveValue: '\\mathrm{in}^3',
|
|
545
388
|
katexValue: 'in^3',
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
width: 43
|
|
549
|
-
},
|
|
550
|
-
text: {
|
|
551
|
-
fontSize: 14,
|
|
552
|
-
fontWeight: 700
|
|
553
|
-
}
|
|
554
|
-
}
|
|
389
|
+
mathQuillValue: 'in^{3}',
|
|
390
|
+
style: STYLE_PRESETS.SMALL
|
|
555
391
|
},
|
|
556
392
|
[MathVolumeUnit.CUBIC_FOOT]: {
|
|
557
393
|
label: 'ft³',
|
|
558
394
|
mathliveValue: '\\mathrm{ft}^3',
|
|
559
395
|
katexValue: 'ft^3',
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
width: 43
|
|
563
|
-
},
|
|
564
|
-
text: {
|
|
565
|
-
fontSize: 14,
|
|
566
|
-
fontWeight: 700
|
|
567
|
-
}
|
|
568
|
-
}
|
|
396
|
+
mathQuillValue: 'ft^{3}',
|
|
397
|
+
style: STYLE_PRESETS.SMALL
|
|
569
398
|
},
|
|
570
399
|
[MathVolumeUnit.CUBIC_MILE]: {
|
|
571
400
|
label: 'mi³',
|
|
572
401
|
mathliveValue: '\\mathrm{mi}^3',
|
|
573
402
|
katexValue: 'mi^3',
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
width: 48
|
|
577
|
-
},
|
|
578
|
-
text: {
|
|
579
|
-
fontSize: 14,
|
|
580
|
-
fontWeight: 700
|
|
581
|
-
}
|
|
582
|
-
}
|
|
403
|
+
mathQuillValue: 'mi^{3}',
|
|
404
|
+
style: STYLE_PRESETS.LARGE
|
|
583
405
|
},
|
|
584
406
|
[MathVolumeUnit.CUBIC_YARD]: {
|
|
585
407
|
label: 'yd³',
|
|
586
408
|
mathliveValue: '\\mathrm{yd}^3',
|
|
587
409
|
katexValue: 'yd^3',
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
width: 43
|
|
591
|
-
},
|
|
592
|
-
text: {
|
|
593
|
-
fontSize: 14,
|
|
594
|
-
fontWeight: 700
|
|
595
|
-
}
|
|
596
|
-
}
|
|
410
|
+
mathQuillValue: 'yd^{3}',
|
|
411
|
+
style: STYLE_PRESETS.MEDIUM
|
|
597
412
|
},
|
|
598
413
|
[MathVolumeUnit.MILLILITER]: {
|
|
599
414
|
label: 'ml',
|
|
600
415
|
mathliveValue: '\\mathrm{mL}',
|
|
601
416
|
katexValue: 'ml',
|
|
602
|
-
style:
|
|
603
|
-
button: {
|
|
604
|
-
width: 40
|
|
605
|
-
},
|
|
606
|
-
text: {
|
|
607
|
-
fontSize: 14,
|
|
608
|
-
fontWeight: 700
|
|
609
|
-
}
|
|
610
|
-
}
|
|
417
|
+
style: STYLE_PRESETS.SMALL
|
|
611
418
|
},
|
|
612
419
|
[MathVolumeUnit.LITER]: {
|
|
613
420
|
label: 'L',
|
|
614
421
|
mathliveValue: '\\mathrm{L}',
|
|
615
422
|
katexValue: 'L',
|
|
616
|
-
style:
|
|
617
|
-
button: {
|
|
618
|
-
width: 40
|
|
619
|
-
},
|
|
620
|
-
text: {
|
|
621
|
-
fontSize: 14,
|
|
622
|
-
fontWeight: 700
|
|
623
|
-
}
|
|
624
|
-
}
|
|
423
|
+
style: STYLE_PRESETS.SMALL
|
|
625
424
|
},
|
|
626
425
|
[MathVolumeUnit.MILLILITER_SE]: {
|
|
627
426
|
label: 'ml',
|
|
628
427
|
mathliveValue: '\\mathrm{ml}',
|
|
629
428
|
katexValue: 'ml',
|
|
630
|
-
style:
|
|
631
|
-
button: {
|
|
632
|
-
width: 40
|
|
633
|
-
},
|
|
634
|
-
text: {
|
|
635
|
-
fontSize: 14,
|
|
636
|
-
fontWeight: 700
|
|
637
|
-
}
|
|
638
|
-
}
|
|
429
|
+
style: STYLE_PRESETS.SMALL
|
|
639
430
|
},
|
|
640
431
|
[MathVolumeUnit.LITER_SE]: {
|
|
641
432
|
label: 'l',
|
|
642
433
|
mathliveValue: '\\mathrm{l}',
|
|
643
434
|
katexValue: 'l',
|
|
644
|
-
style:
|
|
645
|
-
button: {
|
|
646
|
-
width: 40
|
|
647
|
-
},
|
|
648
|
-
text: {
|
|
649
|
-
fontSize: 14,
|
|
650
|
-
fontWeight: 700
|
|
651
|
-
}
|
|
652
|
-
}
|
|
435
|
+
style: STYLE_PRESETS.SMALL
|
|
653
436
|
},
|
|
654
437
|
[MathVolumeUnit.DL]: {
|
|
655
438
|
label: 'dl',
|
|
656
439
|
mathliveValue: '\\mathrm{dl}',
|
|
657
440
|
katexValue: 'dl',
|
|
658
|
-
style:
|
|
659
|
-
button: {
|
|
660
|
-
width: 40
|
|
661
|
-
},
|
|
662
|
-
text: {
|
|
663
|
-
fontSize: 14,
|
|
664
|
-
fontWeight: 700
|
|
665
|
-
}
|
|
666
|
-
}
|
|
441
|
+
style: STYLE_PRESETS.SMALL
|
|
667
442
|
},
|
|
668
443
|
[MathVolumeUnit.CUP]: {
|
|
669
444
|
label: 'cup',
|
|
670
445
|
mathliveValue: '\\mathrm{cup}',
|
|
671
446
|
katexValue: 'cup',
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
width: 45
|
|
675
|
-
},
|
|
676
|
-
text: {
|
|
677
|
-
fontSize: 14,
|
|
678
|
-
fontWeight: 700
|
|
679
|
-
}
|
|
680
|
-
}
|
|
447
|
+
mathQuillValue: '\\cup',
|
|
448
|
+
style: STYLE_PRESETS.MEDIUM
|
|
681
449
|
},
|
|
682
450
|
[MathVolumeUnit.GAL]: {
|
|
683
451
|
label: 'gal',
|
|
684
452
|
mathliveValue: '\\mathrm{gal}',
|
|
685
453
|
katexValue: 'gal',
|
|
686
|
-
style:
|
|
687
|
-
button: {
|
|
688
|
-
width: 44
|
|
689
|
-
},
|
|
690
|
-
text: {
|
|
691
|
-
fontSize: 14,
|
|
692
|
-
fontWeight: 700
|
|
693
|
-
}
|
|
694
|
-
}
|
|
454
|
+
style: STYLE_PRESETS.MEDIUM
|
|
695
455
|
},
|
|
696
456
|
[MathVolumeUnit.PINT]: {
|
|
697
457
|
label: 'pt',
|
|
698
458
|
mathliveValue: '\\mathrm{pt}',
|
|
699
459
|
katexValue: 'pt',
|
|
700
|
-
style:
|
|
701
|
-
button: {
|
|
702
|
-
width: 48
|
|
703
|
-
},
|
|
704
|
-
text: {
|
|
705
|
-
fontSize: 14,
|
|
706
|
-
fontWeight: 700
|
|
707
|
-
}
|
|
708
|
-
}
|
|
460
|
+
style: STYLE_PRESETS.LARGE
|
|
709
461
|
},
|
|
710
462
|
[MathVolumeUnit.QUART]: {
|
|
711
463
|
label: 'qt',
|
|
712
464
|
mathliveValue: '\\mathrm{qt}',
|
|
713
465
|
katexValue: 'qt',
|
|
714
|
-
style:
|
|
715
|
-
button: {
|
|
716
|
-
width: 44
|
|
717
|
-
},
|
|
718
|
-
text: {
|
|
719
|
-
fontSize: 14,
|
|
720
|
-
fontWeight: 700
|
|
721
|
-
}
|
|
722
|
-
}
|
|
466
|
+
style: STYLE_PRESETS.MEDIUM
|
|
723
467
|
},
|
|
724
468
|
[MathVolumeUnit.FLOZ]: {
|
|
725
469
|
label: 'floz',
|
|
726
470
|
mathliveValue: '\\mathrm{floz}',
|
|
727
471
|
katexValue: 'floz',
|
|
728
|
-
style:
|
|
729
|
-
button: {
|
|
730
|
-
width: 52
|
|
731
|
-
},
|
|
732
|
-
text: {
|
|
733
|
-
fontSize: 14,
|
|
734
|
-
fontWeight: 700
|
|
735
|
-
}
|
|
736
|
-
}
|
|
472
|
+
style: STYLE_PRESETS.XL
|
|
737
473
|
},
|
|
738
474
|
[MathVolumeUnit.CL]: {
|
|
739
475
|
label: 'cl',
|
|
740
476
|
mathliveValue: '\\mathrm{cl}',
|
|
741
477
|
katexValue: 'cl',
|
|
742
|
-
style:
|
|
743
|
-
button: {
|
|
744
|
-
width: 40
|
|
745
|
-
},
|
|
746
|
-
text: {
|
|
747
|
-
fontSize: 14,
|
|
748
|
-
fontWeight: 700
|
|
749
|
-
}
|
|
750
|
-
}
|
|
478
|
+
style: STYLE_PRESETS.SMALL
|
|
751
479
|
}
|
|
752
480
|
};
|
|
753
481
|
const MATH_WEIGHT_UNITS = exports.MATH_WEIGHT_UNITS = {
|
|
@@ -755,141 +483,61 @@ const MATH_WEIGHT_UNITS = exports.MATH_WEIGHT_UNITS = {
|
|
|
755
483
|
label: 'kg',
|
|
756
484
|
mathliveValue: '\\mathrm{kg}',
|
|
757
485
|
katexValue: 'kg',
|
|
758
|
-
style:
|
|
759
|
-
button: {
|
|
760
|
-
width: 45
|
|
761
|
-
},
|
|
762
|
-
text: {
|
|
763
|
-
fontSize: 14,
|
|
764
|
-
fontWeight: 700
|
|
765
|
-
}
|
|
766
|
-
}
|
|
486
|
+
style: STYLE_PRESETS.MEDIUM
|
|
767
487
|
},
|
|
768
488
|
[MathWeightUnit.G]: {
|
|
769
489
|
label: 'g',
|
|
770
490
|
mathliveValue: '\\mathrm{g}',
|
|
771
491
|
katexValue: 'g',
|
|
772
|
-
style:
|
|
773
|
-
button: {
|
|
774
|
-
width: 40
|
|
775
|
-
},
|
|
776
|
-
text: {
|
|
777
|
-
fontSize: 14,
|
|
778
|
-
fontWeight: 700
|
|
779
|
-
}
|
|
780
|
-
}
|
|
492
|
+
style: STYLE_PRESETS.SMALL
|
|
781
493
|
},
|
|
782
494
|
[MathWeightUnit.MG]: {
|
|
783
495
|
label: 'mg',
|
|
784
496
|
mathliveValue: '\\mathrm{mg}',
|
|
785
497
|
katexValue: 'mg',
|
|
786
|
-
style:
|
|
787
|
-
button: {
|
|
788
|
-
width: 45
|
|
789
|
-
},
|
|
790
|
-
text: {
|
|
791
|
-
fontSize: 14,
|
|
792
|
-
fontWeight: 700
|
|
793
|
-
}
|
|
794
|
-
}
|
|
498
|
+
style: STYLE_PRESETS.MEDIUM
|
|
795
499
|
},
|
|
796
500
|
[MathWeightUnit.TON_SE]: {
|
|
797
501
|
label: 'ton',
|
|
798
502
|
mathliveValue: '\\mathrm{ton}',
|
|
799
503
|
katexValue: 'ton',
|
|
800
|
-
style:
|
|
801
|
-
button: {
|
|
802
|
-
width: 45
|
|
803
|
-
},
|
|
804
|
-
text: {
|
|
805
|
-
fontSize: 14,
|
|
806
|
-
fontWeight: 700
|
|
807
|
-
}
|
|
808
|
-
}
|
|
504
|
+
style: STYLE_PRESETS.MEDIUM
|
|
809
505
|
},
|
|
810
506
|
[MathWeightUnit.TON]: {
|
|
811
507
|
label: 'T',
|
|
812
508
|
mathliveValue: '\\mathrm{T}',
|
|
813
509
|
katexValue: 'T',
|
|
814
|
-
style:
|
|
815
|
-
button: {
|
|
816
|
-
width: 45
|
|
817
|
-
},
|
|
818
|
-
text: {
|
|
819
|
-
fontSize: 14,
|
|
820
|
-
fontWeight: 700
|
|
821
|
-
}
|
|
822
|
-
}
|
|
510
|
+
style: STYLE_PRESETS.MEDIUM
|
|
823
511
|
},
|
|
824
512
|
[MathWeightUnit.LB]: {
|
|
825
513
|
label: 'lb',
|
|
826
514
|
mathliveValue: '\\mathrm{lb}',
|
|
827
515
|
katexValue: 'lb',
|
|
828
|
-
style:
|
|
829
|
-
button: {
|
|
830
|
-
width: 40
|
|
831
|
-
},
|
|
832
|
-
text: {
|
|
833
|
-
fontSize: 14,
|
|
834
|
-
fontWeight: 700
|
|
835
|
-
}
|
|
836
|
-
}
|
|
516
|
+
style: STYLE_PRESETS.SMALL
|
|
837
517
|
},
|
|
838
518
|
[MathWeightUnit.OZ]: {
|
|
839
519
|
label: 'oz',
|
|
840
520
|
mathliveValue: '\\mathrm{oz}',
|
|
841
521
|
katexValue: 'oz',
|
|
842
|
-
style:
|
|
843
|
-
button: {
|
|
844
|
-
width: 40
|
|
845
|
-
},
|
|
846
|
-
text: {
|
|
847
|
-
fontSize: 14,
|
|
848
|
-
fontWeight: 700
|
|
849
|
-
}
|
|
850
|
-
}
|
|
522
|
+
style: STYLE_PRESETS.SMALL
|
|
851
523
|
},
|
|
852
524
|
[MathWeightUnit.GAL]: {
|
|
853
525
|
label: 'gal',
|
|
854
526
|
mathliveValue: '\\mathrm{gal}',
|
|
855
527
|
katexValue: 'gal',
|
|
856
|
-
style:
|
|
857
|
-
button: {
|
|
858
|
-
width: 44
|
|
859
|
-
},
|
|
860
|
-
text: {
|
|
861
|
-
fontSize: 14,
|
|
862
|
-
fontWeight: 700
|
|
863
|
-
}
|
|
864
|
-
}
|
|
528
|
+
style: STYLE_PRESETS.MEDIUM
|
|
865
529
|
},
|
|
866
530
|
[MathWeightUnit.HG]: {
|
|
867
531
|
label: 'hg',
|
|
868
532
|
mathliveValue: '\\mathrm{hg}',
|
|
869
533
|
katexValue: 'hg',
|
|
870
|
-
style:
|
|
871
|
-
button: {
|
|
872
|
-
width: 45
|
|
873
|
-
},
|
|
874
|
-
text: {
|
|
875
|
-
fontSize: 14,
|
|
876
|
-
fontWeight: 700
|
|
877
|
-
}
|
|
878
|
-
}
|
|
534
|
+
style: STYLE_PRESETS.MEDIUM
|
|
879
535
|
},
|
|
880
536
|
[MathWeightUnit.T]: {
|
|
881
537
|
label: 't',
|
|
882
538
|
mathliveValue: '\\mathrm{t}',
|
|
883
539
|
katexValue: 't',
|
|
884
|
-
style:
|
|
885
|
-
button: {
|
|
886
|
-
width: 45
|
|
887
|
-
},
|
|
888
|
-
text: {
|
|
889
|
-
fontSize: 14,
|
|
890
|
-
fontWeight: 700
|
|
891
|
-
}
|
|
892
|
-
}
|
|
540
|
+
style: STYLE_PRESETS.MEDIUM
|
|
893
541
|
}
|
|
894
542
|
};
|
|
895
543
|
const MATH_TIME_UNITS = exports.MATH_TIME_UNITS = {
|