1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.heightWidthRadiusDefaults = exports.heightWidthDefaults = exports.sizeMarginDefaults = exports.sizeDefaults = void 0;
|
4 |
|
5 |
|
6 |
|
7 | var commonValues = {
|
8 | loading: true,
|
9 | color: "#000000",
|
10 | css: "",
|
11 | speedMultiplier: 1
|
12 | };
|
13 | function sizeDefaults(sizeValue) {
|
14 | return Object.assign({}, commonValues, { size: sizeValue });
|
15 | }
|
16 | exports.sizeDefaults = sizeDefaults;
|
17 | function sizeMarginDefaults(sizeValue) {
|
18 | return Object.assign({}, sizeDefaults(sizeValue), {
|
19 | margin: 2
|
20 | });
|
21 | }
|
22 | exports.sizeMarginDefaults = sizeMarginDefaults;
|
23 | function heightWidthDefaults(height, width) {
|
24 | return Object.assign({}, commonValues, {
|
25 | height: height,
|
26 | width: width
|
27 | });
|
28 | }
|
29 | exports.heightWidthDefaults = heightWidthDefaults;
|
30 | function heightWidthRadiusDefaults(height, width, radius) {
|
31 | if (radius === void 0) { radius = 2; }
|
32 | return Object.assign({}, heightWidthDefaults(height, width), {
|
33 | radius: radius,
|
34 | margin: 2
|
35 | });
|
36 | }
|
37 | exports.heightWidthRadiusDefaults = heightWidthRadiusDefaults;
|