@media-quest/builder 0.0.35 → 0.0.37
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/public-api.js
CHANGED
|
@@ -1419,11 +1419,16 @@ var BuilderOptionTheme;
|
|
|
1419
1419
|
const BLUE = "#2F5597";
|
|
1420
1420
|
const BTN_BORDER_WIDTH = 3;
|
|
1421
1421
|
const BTN_BORDER_RADIUS = 10;
|
|
1422
|
+
const BTN_HEIGHT = 130;
|
|
1423
|
+
const BTN_WIDTH_LONG = { _unit: "percent", value: 19 };
|
|
1424
|
+
const BTN_WIDTH_SHORT = { _unit: "percent", value: 15 };
|
|
1422
1425
|
const BTN_BORDER_STYLE = "solid";
|
|
1423
|
-
const FONT_WEIGHT =
|
|
1424
|
-
const FONT_SIZE =
|
|
1425
|
-
const
|
|
1426
|
-
const
|
|
1426
|
+
const FONT_WEIGHT = 500;
|
|
1427
|
+
const FONT_SIZE = 36;
|
|
1428
|
+
const MAIN_TEXT_FONT_SIZE = { _unit: "px", value: 36 };
|
|
1429
|
+
const MAIN_TEXT_WIDTH = { _unit: "percent", value: 80 };
|
|
1430
|
+
const BTN_PADDING_LEFT = 10;
|
|
1431
|
+
const BTN_PADDING_TOP = 10;
|
|
1427
1432
|
const buttonBaseCss = () => ({
|
|
1428
1433
|
css: {
|
|
1429
1434
|
fontWeight: FONT_WEIGHT,
|
|
@@ -1435,6 +1440,8 @@ var BuilderOptionTheme;
|
|
|
1435
1440
|
paddingRight: { _unit: "px", value: BTN_PADDING_LEFT },
|
|
1436
1441
|
borderRadius: { _unit: "px", value: BTN_BORDER_RADIUS },
|
|
1437
1442
|
borderWidth: { _unit: "px", value: BTN_BORDER_WIDTH },
|
|
1443
|
+
width: BTN_WIDTH_LONG,
|
|
1444
|
+
height: { _unit: "px", value: BTN_HEIGHT },
|
|
1438
1445
|
borderStyle: BTN_BORDER_STYLE,
|
|
1439
1446
|
// boxShadow: "3px 3px gray",
|
|
1440
1447
|
position: "relative",
|
|
@@ -1469,7 +1476,8 @@ var BuilderOptionTheme;
|
|
|
1469
1476
|
...css,
|
|
1470
1477
|
backgroundColor: WHITE,
|
|
1471
1478
|
borderColor: LIGHT_BLUE,
|
|
1472
|
-
textColor: BLUE
|
|
1479
|
+
textColor: BLUE,
|
|
1480
|
+
width: BTN_WIDTH_SHORT
|
|
1473
1481
|
},
|
|
1474
1482
|
cssDisabled,
|
|
1475
1483
|
cssEnabled
|
|
@@ -1487,9 +1495,10 @@ var textLowTop = 55;
|
|
|
1487
1495
|
var audioHighTop = 20;
|
|
1488
1496
|
var audioLowTop = 55;
|
|
1489
1497
|
var textBase = {
|
|
1490
|
-
width:
|
|
1498
|
+
width: 76,
|
|
1499
|
+
// backgroundColor: "red",
|
|
1491
1500
|
top: textHighTop,
|
|
1492
|
-
left:
|
|
1501
|
+
left: 12,
|
|
1493
1502
|
textAlign: "center",
|
|
1494
1503
|
textColor: "black",
|
|
1495
1504
|
fontSize: { _unit: "px", value: 40 }
|
|
@@ -1559,8 +1568,8 @@ var DefaultTheme = {
|
|
|
1559
1568
|
bottom: 0,
|
|
1560
1569
|
left: 0,
|
|
1561
1570
|
// h: 10,
|
|
1562
|
-
alignItems: "center"
|
|
1563
|
-
backgroundColor: "yellow"
|
|
1571
|
+
alignItems: "center"
|
|
1572
|
+
// backgroundColor: "yellow",
|
|
1564
1573
|
},
|
|
1565
1574
|
whenSingle: { justifyContent: "space-evenly" },
|
|
1566
1575
|
whenMany: { justifyContent: "space-evenly" }
|
|
@@ -2007,7 +2016,7 @@ var DefaultThemeCompiler = class {
|
|
|
2007
2016
|
name = "Ispe default theme.";
|
|
2008
2017
|
defaultTheme = DefaultTheme;
|
|
2009
2018
|
theme2 = Theme2;
|
|
2010
|
-
currentTheme =
|
|
2019
|
+
currentTheme = DefaultTheme;
|
|
2011
2020
|
allThemes = [DefaultTheme, Theme2];
|
|
2012
2021
|
TAG = "[ DEFAULT_THEME_COMPILER ]: ";
|
|
2013
2022
|
setTheme(theme) {
|
|
@@ -2079,6 +2088,7 @@ var DefaultThemeCompiler = class {
|
|
|
2079
2088
|
let initialVideoTaskList = [];
|
|
2080
2089
|
const newPage = {
|
|
2081
2090
|
background: "white",
|
|
2091
|
+
pageNumber,
|
|
2082
2092
|
elements,
|
|
2083
2093
|
id,
|
|
2084
2094
|
prefix,
|