lido-player 0.0.2-beta-22-dev → 0.0.2-beta-24-dev
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/LICENSE +21 -21
- package/dist/cjs/{decode-Cr5DANqc.js → decode-B7mZm_nK.js} +1 -1
- package/dist/cjs/{index-0BvcfeCt.js → index-BCRDjbaz.js} +276 -98
- package/dist/cjs/{index-DnaH8sO-.js → index-DBCFoh1I.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/lido-avatar_22.cjs.entry.js +231 -59
- package/dist/cjs/lido-player.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/avatar/lido-avatar.css +4 -4
- package/dist/collection/components/avatar/lido-avatar.js +9 -2
- package/dist/collection/components/avatar/lido-avatar.tsx +214 -207
- package/dist/collection/components/avatar/readme.md +49 -49
- package/dist/collection/components/calculator/lido-calculator.css +89 -89
- package/dist/collection/components/calculator/lido-calculator.js +2 -2
- package/dist/collection/components/canvas/lido-canvas.css +33 -33
- package/dist/collection/components/canvas/lido-canvas.js +1 -1
- package/dist/collection/components/cell/lido-cell.css +100 -100
- package/dist/collection/components/cell/lido-cell.js +12 -12
- package/dist/collection/components/column/lido-col.css +19 -19
- package/dist/collection/components/column/lido-col.js +6 -6
- package/dist/collection/components/container/lido-container.css +34 -10
- package/dist/collection/components/container/lido-container.js +39 -8
- package/dist/collection/components/flashCard/lido-flash-card.css +72 -46
- package/dist/collection/components/flashCard/lido-flash-card.js +156 -15
- package/dist/collection/components/float/lido-float.css +30 -30
- package/dist/collection/components/float/lido-float.js +2 -2
- package/dist/collection/components/home/lido-home.css +309 -309
- package/dist/collection/components/home/lido-home.js +5 -5
- package/dist/collection/components/image/lido-image.css +17 -17
- package/dist/collection/components/image/lido-image.js +6 -6
- package/dist/collection/components/keyboard/lido-keyboard.css +38 -38
- package/dist/collection/components/keyboard/lido-keyboard.js +3 -3
- package/dist/collection/components/mathMatrix/lido-math-matrix.css +56 -56
- package/dist/collection/components/mathMatrix/lido-math-matrix.js +1 -1
- package/dist/collection/components/position/lido-pos.css +16 -16
- package/dist/collection/components/position/lido-pos.js +2 -2
- package/dist/collection/components/random/lido-random.css +8 -8
- package/dist/collection/components/random/lido-random.js +2 -2
- package/dist/collection/components/root/lido-root.js +5 -5
- package/dist/collection/components/row/lido-row.css +10 -10
- package/dist/collection/components/row/lido-row.js +6 -6
- package/dist/collection/components/scale/assets/Shadow.svg +9 -9
- package/dist/collection/components/scale/lido-balance.css +174 -174
- package/dist/collection/components/scale/lido-balance.js +13 -13
- package/dist/collection/components/shape/lido-shape.css +216 -216
- package/dist/collection/components/shape/lido-shape.js +6 -6
- package/dist/collection/components/slideFill/lido-slide-fill.css +3 -3
- package/dist/collection/components/slideFill/lido-slide-fill.js +13 -13
- package/dist/collection/components/text/lido-text.css +53 -53
- package/dist/collection/components/text/lido-text.js +5 -5
- package/dist/collection/components/trace/assets/Tracing-hand.svg +8 -8
- package/dist/collection/components/trace/lido-trace.css +97 -97
- package/dist/collection/components/trace/lido-trace.js +7 -14
- package/dist/collection/components/wrap/lido-wrap.css +18 -18
- package/dist/collection/components/wrap/lido-wrap.js +6 -6
- package/dist/collection/css/animation.css +211 -211
- package/dist/collection/css/index.css +323 -323
- package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +61 -61
- package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
- package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +48 -48
- package/dist/collection/stories/Templates/Tag/tagGame.stories.js +39 -39
- package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +44 -44
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +35 -35
- package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
- package/dist/collection/stories/Templates/blender/blender.stories.js +59 -59
- package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
- package/dist/collection/stories/Templates/calculator/calculator.stories.js +28 -28
- package/dist/collection/stories/Templates/categorize/categorize.stories.js +37 -37
- package/dist/collection/stories/Templates/categorize2/categorize2.stories.js +67 -67
- package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +29 -29
- package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +13 -13
- package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +74 -74
- package/dist/collection/stories/Templates/dragAndDrop/drag-drop.stories.js +69 -69
- package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +43 -43
- package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +35 -35
- package/dist/collection/stories/Templates/grid/grid.stories.js +118 -118
- package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +57 -57
- package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +44 -44
- package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +41 -41
- package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +183 -183
- package/dist/collection/stories/Templates/makeSentence/make-sentence.stories.js +36 -36
- package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +69 -69
- package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +84 -84
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +31 -31
- package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +112 -112
- package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +47 -47
- package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +57 -57
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +53 -53
- package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +46 -46
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +45 -45
- package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +56 -56
- package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +53 -53
- package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +127 -127
- package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +47 -47
- package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +38 -38
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +97 -97
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +90 -90
- package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +63 -63
- package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +45 -45
- package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +63 -63
- package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +79 -79
- package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +32 -32
- package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +42 -42
- package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +63 -63
- package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +44 -44
- package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +34 -34
- package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +52 -52
- package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +33 -33
- package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +40 -40
- package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +48 -48
- package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +48 -48
- package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +18 -18
- package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +44 -44
- package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +34 -34
- package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +36 -36
- package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +30 -30
- package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +20 -20
- package/dist/collection/stories/Templates/puzzleGame/puzzleGame.stories.js +17 -17
- package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +58 -58
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +50 -50
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +36 -36
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +43 -43
- package/dist/collection/stories/Templates/quizMaths/quizMaths.stories.js +631 -631
- package/dist/collection/stories/Templates/reorder/reorder.stories.js +63 -63
- package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +47 -47
- package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +29 -29
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +64 -64
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -62
- package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +106 -106
- package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +50 -50
- package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +41 -41
- package/dist/collection/stories/Templates/storyTale/storyTale.stories.js +39 -39
- package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +62 -62
- package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +42 -42
- package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +50 -50
- package/dist/collection/stories/Templates/tenBox/tenBox.stories.js +88 -88
- package/dist/collection/stories/Templates/total/total.stories.js +28 -28
- package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +35 -35
- package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +34 -34
- package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +31 -31
- package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +58 -58
- package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -44
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +31 -31
- package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +34 -34
- package/dist/collection/stories/components/flash-card.stories.js +48 -48
- package/dist/collection/stories/components/keyboard.stories.js +10 -10
- package/dist/collection/stories/components/slider.stories.js +4 -4
- package/dist/collection/stories/components/trace.stories.js +5 -5
- package/dist/collection/utils/audioPlayer.js +7 -4
- package/dist/collection/utils/utils.js +70 -14
- package/dist/collection/utils/utilsHandlers/clickHandler.js +4 -3
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +137 -28
- package/dist/collection/utils/utilsHandlers/highlightHandler.js +56 -56
- package/dist/collection/utils/utilsHandlers/slideHandler.js +17 -8
- package/dist/collection/utils/utilsHandlers/sortHandler.js +10 -10
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-balance.js +1 -1
- package/dist/components/lido-calculator.js +1 -1
- package/dist/components/lido-canvas.js +1 -1
- package/dist/components/lido-cell.js +1 -1
- package/dist/components/lido-col.js +1 -1
- package/dist/components/lido-container.js +1 -1
- package/dist/components/lido-flash-card.js +1 -1
- package/dist/components/lido-float.js +1 -1
- package/dist/components/lido-home.js +1 -1
- package/dist/components/lido-keyboard.js +1 -1
- package/dist/components/lido-math-matrix.js +1 -1
- package/dist/components/lido-pos.js +1 -1
- package/dist/components/lido-random.js +1 -1
- package/dist/components/lido-root.js +1 -1
- package/dist/components/lido-row.js +1 -1
- package/dist/components/lido-shape.js +1 -1
- package/dist/components/lido-slide-fill.js +1 -1
- package/dist/components/lido-text.js +1 -1
- package/dist/components/lido-trace.js +1 -1
- package/dist/components/lido-wrap.js +1 -1
- package/dist/components/p-B-mIxynb.js +1 -0
- package/dist/components/{p-DdQ1eqJr.js → p-B8nzzM8c.js} +1 -1
- package/dist/components/{p-D2GhaM-T.js → p-Bv1hunWk.js} +1 -1
- package/dist/components/{p-DDS30M3y.js → p-C-pHQRbp.js} +1 -1
- package/dist/components/{p-CPYnt0P-.js → p-C5WmmkI6.js} +1 -1
- package/dist/components/{p-useuhkjH.js → p-C70ykycD.js} +1 -1
- package/dist/components/{p-CFzvgrMa.js → p-CFPSty2U.js} +1 -1
- package/dist/components/p-CFWohOId.js +1 -0
- package/dist/components/{p-BfwUqpXc.js → p-CTlcpv4a.js} +1 -1
- package/dist/components/{p-CyGxEcn7.js → p-CXHPZN3m.js} +1 -1
- package/dist/components/{p-Bw-OC9iR.js → p-CgsPIpg0.js} +1 -1
- package/dist/components/{p-ChfVUoX4.js → p-CsDu4kiC.js} +1 -1
- package/dist/components/{p-CwDTdXe5.js → p-DG0KR2iN.js} +1 -1
- package/dist/components/p-DLyacZap.js +1 -0
- package/dist/components/{p-BiBt9LGP.js → p-DNo3iX_r.js} +1 -1
- package/dist/components/p-DONbWJGn.js +1 -0
- package/dist/components/p-DXy70SGv.js +1 -0
- package/dist/components/{p-CkxAm8rY.js → p-DfjbSSI2.js} +2 -2
- package/dist/components/{p-BJiyBHYT.js → p-Gwko4CTL.js} +1 -1
- package/dist/components/p-uuyVO2B1.js +1 -0
- package/dist/esm/{decode-DkSXjv7K.js → decode-CyhHNDvT.js} +1 -1
- package/dist/esm/{index-D9-TTsdZ.js → index-CndbFQ5I.js} +276 -98
- package/dist/esm/{index-Dvjbti-h.js → index-mMpK8062.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/lido-avatar_22.entry.js +231 -59
- package/dist/esm/lido-player.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/lido-player/assets/Shadow.svg +9 -9
- package/dist/lido-player/assets/Tracing-hand.svg +8 -8
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-avatar.css +4 -4
- package/dist/lido-player/lido-avatar.tsx +214 -207
- package/dist/lido-player/lido-player.css +7 -7
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-77iyGppv.js +1 -0
- package/dist/lido-player/p-d760e67b.entry.js +12 -0
- package/dist/lido-player/{p-Dc8j8Hxw.js → p-etMb7U6W.js} +1 -1
- package/dist/lido-player/p-mMpK8062.js +2 -0
- package/dist/lido-player/readme.md +49 -49
- package/dist/types/components/container/lido-container.d.ts +4 -0
- package/dist/types/components/flashCard/lido-flash-card.d.ts +17 -0
- package/dist/types/types/json.d.ts +3 -3
- package/dist/types/utils/audioPlayer.d.ts +2 -1
- package/dist/types/utils/utils.d.ts +5 -1
- package/dist/types/utils/utilsHandlers/clickHandler.d.ts +1 -0
- package/dist/types/utils/utilsHandlers/slideHandler.d.ts +1 -1
- package/package.json +73 -74
- package/readme.md +113 -113
- package/dist/components/p-BUfCIPRa.js +0 -1
- package/dist/components/p-DP6jQ5ML.js +0 -1
- package/dist/components/p-DZRNZCPt.js +0 -1
- package/dist/components/p-DbR5sNOj.js +0 -1
- package/dist/components/p-leIEepjl.js +0 -1
- package/dist/components/p-u3czV7QM.js +0 -1
- package/dist/lido-player/p-35fa0b8b.entry.js +0 -12
- package/dist/lido-player/p-D2iINRNN.js +0 -1
- package/dist/lido-player/p-Dvjbti-h.js +0 -2
|
@@ -50,39 +50,39 @@ function getContainerXml(args) {
|
|
|
50
50
|
console.error('Trace image is missing');
|
|
51
51
|
return '';
|
|
52
52
|
}
|
|
53
|
-
return `
|
|
54
|
-
<main>
|
|
55
|
-
<lido-container id="lido-container" tab-index="1" objective="writeWord" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Write%20word.png" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}" after-drop="false">
|
|
56
|
-
|
|
57
|
-
<!-- Chimple Avatar -->
|
|
58
|
-
<lido-cell layout="pos" id="pos1" disable-edit="true" value="pos1" height="landscape.600px, portrait.700px" width="landscape.393px, portrait.485px" x="landscape.1200px, portrait.450px" y="landscape.390px, portrait.1020px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="this.flex-shrink='0';">
|
|
59
|
-
<lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="inherit" width="inherit" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" altText="{chimpleCharacterRive}" onEntry="">
|
|
60
|
-
</lido-avatar>
|
|
61
|
-
<lido-image id="image" disable-edit="true" value="image" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/Shadow.png" bg-color="transparent" width="inherit" height="27px" x="landscape.-7px, portrait.-7px" y="landscape.450px, portrait.540px" altText="{shadowImage}">
|
|
62
|
-
</lido-image>
|
|
63
|
-
</lido-cell>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
<lido-cell layout="col" visible="true" width="landscape.70%, portrait.70%" height="landscape.84%, portrait.60%" bg-color="transparent" margin="landscape.-35px 0px -35px 0px, portrait.-400px 0px -40px 0px" onEntry="this.padding='4px 0px 16px 0px';">
|
|
68
|
-
<lido-image visible="true" src="${topDisplayImage}" z="1" width="landscape.570px, portrait.570px" height="landscape.225px, portrait.225px" onEntry="this.flex-shrink='0';" altText="{image1}">
|
|
69
|
-
<!-- text-element -->
|
|
70
|
-
<lido-cell layout="pos" display="flex" id="pos1" disable-edit="true" value="pos1" height="landscape.80px, portrait.80px" width="landscape.525px, portrait.525px" x="landscape.545px, portrait.300px" y="landscape.125px, portrait.190px" aria-hidden="true" bg-color="transparent" visible="true" onEntry="this.z-index='2'; this.align-items='center'; this.justify-content='center'; this.display='flex';">
|
|
71
|
-
<lido-text id="txt1" tab-index="2" span-type="${spanType}" audio="" width="525px" height="80px" onEntry="this.text-align='center'; this.justify-content='center'; this.flex-shrink='0'; this.fontWeight='600';" font="'Baloo Bhai 2'" font-size="96px" z="1" font-color="black" color=" #000000" string="${text}" visible="true" y="landscape., portrait." bg-color="transparent">
|
|
72
|
-
</lido-text>
|
|
73
|
-
</lido-cell>
|
|
74
|
-
</lido-image>
|
|
75
|
-
|
|
76
|
-
<lido-image visible="true" src="${bottomDisplayImage}" z="1" width="landscape.574px, portrait.760px" height="landscape.574px, portrait.760px" onEntry="this.flex-shrink='0';" altText="{image1}">
|
|
77
|
-
</lido-image>
|
|
78
|
-
</lido-cell>
|
|
79
|
-
|
|
80
|
-
<!-- trace element -->
|
|
81
|
-
<lido-cell layout="pos" id="pos2" disable-edit="true" value="pos2" height="landscape.500px, portrait.500px" width="landscape.550px, portrait.550px" x="landscape.510px, portrait.75px" y="landscape.305px, portrait.475px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="trace1.visibility='visible'; this.flex-shrink='0';">
|
|
82
|
-
<lido-trace id="trace1" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Audios/B.wav; https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Audios/U.wav; https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Audios/G.wav" animationTrace="true" highlightTextId="txt1" tab-index="3" value="a" visible="true" svg-source="${traceImage1}; ${traceImage2}; ${traceImage3}" onCorrect="this.sleep='2000'; txt1.speak='true';" mode="${traceMode}" z="1" x="25px" y="25px" width="landscape.500px, portrait.675px" height="landscape.500px, portrait.500px" altText="{backgroundImage}">
|
|
83
|
-
</lido-trace>
|
|
84
|
-
</lido-cell>
|
|
85
|
-
</lido-container>
|
|
86
|
-
</main>
|
|
53
|
+
return `
|
|
54
|
+
<main>
|
|
55
|
+
<lido-container id="lido-container" tab-index="1" objective="writeWord" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Write%20word.png" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" is-allow-only-correct="${isAllowOnlyCorrect}" after-drop="false">
|
|
56
|
+
|
|
57
|
+
<!-- Chimple Avatar -->
|
|
58
|
+
<lido-cell layout="pos" id="pos1" disable-edit="true" value="pos1" height="landscape.600px, portrait.700px" width="landscape.393px, portrait.485px" x="landscape.1200px, portrait.450px" y="landscape.390px, portrait.1020px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="this.flex-shrink='0';">
|
|
59
|
+
<lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="inherit" width="inherit" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" altText="{chimpleCharacterRive}" onEntry="">
|
|
60
|
+
</lido-avatar>
|
|
61
|
+
<lido-image id="image" disable-edit="true" value="image" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/Shadow.png" bg-color="transparent" width="inherit" height="27px" x="landscape.-7px, portrait.-7px" y="landscape.450px, portrait.540px" altText="{shadowImage}">
|
|
62
|
+
</lido-image>
|
|
63
|
+
</lido-cell>
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
<lido-cell layout="col" visible="true" width="landscape.70%, portrait.70%" height="landscape.84%, portrait.60%" bg-color="transparent" margin="landscape.-35px 0px -35px 0px, portrait.-400px 0px -40px 0px" onEntry="this.padding='4px 0px 16px 0px';">
|
|
68
|
+
<lido-image visible="true" src="${topDisplayImage}" z="1" width="landscape.570px, portrait.570px" height="landscape.225px, portrait.225px" onEntry="this.flex-shrink='0';" altText="{image1}">
|
|
69
|
+
<!-- text-element -->
|
|
70
|
+
<lido-cell layout="pos" display="flex" id="pos1" disable-edit="true" value="pos1" height="landscape.80px, portrait.80px" width="landscape.525px, portrait.525px" x="landscape.545px, portrait.300px" y="landscape.125px, portrait.190px" aria-hidden="true" bg-color="transparent" visible="true" onEntry="this.z-index='2'; this.align-items='center'; this.justify-content='center'; this.display='flex';">
|
|
71
|
+
<lido-text id="txt1" tab-index="2" span-type="${spanType}" audio="" width="525px" height="80px" onEntry="this.text-align='center'; this.justify-content='center'; this.flex-shrink='0'; this.fontWeight='600';" font="'Baloo Bhai 2'" font-size="96px" z="1" font-color="black" color=" #000000" string="${text}" visible="true" y="landscape., portrait." bg-color="transparent">
|
|
72
|
+
</lido-text>
|
|
73
|
+
</lido-cell>
|
|
74
|
+
</lido-image>
|
|
75
|
+
|
|
76
|
+
<lido-image visible="true" src="${bottomDisplayImage}" z="1" width="landscape.574px, portrait.760px" height="landscape.574px, portrait.760px" onEntry="this.flex-shrink='0';" altText="{image1}">
|
|
77
|
+
</lido-image>
|
|
78
|
+
</lido-cell>
|
|
79
|
+
|
|
80
|
+
<!-- trace element -->
|
|
81
|
+
<lido-cell layout="pos" id="pos2" disable-edit="true" value="pos2" height="landscape.500px, portrait.500px" width="landscape.550px, portrait.550px" x="landscape.510px, portrait.75px" y="landscape.305px, portrait.475px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="trace1.visibility='visible'; this.flex-shrink='0';">
|
|
82
|
+
<lido-trace id="trace1" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Audios/B.wav; https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Audios/U.wav; https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Audios/G.wav" animationTrace="true" highlightTextId="txt1" tab-index="3" value="a" visible="true" svg-source="${traceImage1}; ${traceImage2}; ${traceImage3}" onCorrect="this.sleep='2000'; txt1.speak='true';" mode="${traceMode}" z="1" x="25px" y="25px" width="landscape.500px, portrait.675px" height="landscape.500px, portrait.500px" altText="{backgroundImage}">
|
|
83
|
+
</lido-trace>
|
|
84
|
+
</lido-cell>
|
|
85
|
+
</lido-container>
|
|
86
|
+
</main>
|
|
87
87
|
`;
|
|
88
88
|
}
|
|
@@ -10,21 +10,21 @@ export default meta;
|
|
|
10
10
|
export const FrontTextBackCol = {
|
|
11
11
|
args: {},
|
|
12
12
|
render: _ => {
|
|
13
|
-
const xml = `<main>
|
|
14
|
-
<lido-container id="lido-container" tab-index="1" value="mainContainer3" objective="lion,crocodile,cow" bg-color="#B1BEFD" aria-label="" height="100vh" width="100vw" x="0" y="0" z="0" visible="true" audio="background1.mp3" onTouch="" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000'; this.removeClone='.cloned-element'" onEntry="" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" dropAttr="diagonal">
|
|
15
|
-
<lido-row visible="true" width="landscape.100%, portrait.338px" onEntry="" height="landscape.100%, portrait." y="landscape.340px, portrait.300px" x="landscape.,portrait.520px" direction="landscape.row, portrait.column">
|
|
16
|
-
<lido-flash-card x="50" y="200" width="220px" height="140px">
|
|
17
|
-
<lido-text slot="front" width="400px" height="200px" display="flex" onEntry="" font-family="" font-size="48px" z="1" font-color="black" fontWeight="bold" color="#000000" string="lion" visible="true" y="landscape.35px, portrait.15px" bg-color="red">
|
|
18
|
-
</lido-text>
|
|
19
|
-
<lido-col id="col5" slot="back" disable-edit="true" visible="true" width="300px" height="400px" bg-color="orange" type="" tab-index="6" dropAttr="diagonal" value="cat" onEntry="this.position='relative';" y="landscape.-50px,portrait.">
|
|
20
|
-
<lido-image visible="true" src="https://i0.wp.com/pixahive.com/wp-content/uploads/2021/02/Yellow-pattern-abstract-background-wallpaper-325431-pixahive.jpg?fit=778%2C435ssl=1" z="0" width="200px" height="300px" onEntry="">
|
|
21
|
-
</lido-image>
|
|
22
|
-
<lido-text width="300px" height="200px" display="flex" onEntry="" font-family="" font-size="48px" z="1" font-color="black" fontWeight="bold" color="#000000" string="tiger" visible="true" y="landscape.35px, portrait.15px" bg-color="yellow">
|
|
23
|
-
</lido-text>
|
|
24
|
-
</lido-col>
|
|
25
|
-
</lido-flash-card>
|
|
26
|
-
</lido-row>
|
|
27
|
-
</lido-container>
|
|
13
|
+
const xml = `<main>
|
|
14
|
+
<lido-container id="lido-container" tab-index="1" value="mainContainer3" objective="lion,crocodile,cow" bg-color="#B1BEFD" aria-label="" height="100vh" width="100vw" x="0" y="0" z="0" visible="true" audio="background1.mp3" onTouch="" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000'; this.removeClone='.cloned-element'" onEntry="" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" dropAttr="diagonal">
|
|
15
|
+
<lido-row visible="true" width="landscape.100%, portrait.338px" onEntry="" height="landscape.100%, portrait." y="landscape.340px, portrait.300px" x="landscape.,portrait.520px" direction="landscape.row, portrait.column">
|
|
16
|
+
<lido-flash-card x="50" y="200" width="220px" height="140px">
|
|
17
|
+
<lido-text slot="front" width="400px" height="200px" display="flex" onEntry="" font-family="" font-size="48px" z="1" font-color="black" fontWeight="bold" color="#000000" string="lion" visible="true" y="landscape.35px, portrait.15px" bg-color="red">
|
|
18
|
+
</lido-text>
|
|
19
|
+
<lido-col id="col5" slot="back" disable-edit="true" visible="true" width="300px" height="400px" bg-color="orange" type="" tab-index="6" dropAttr="diagonal" value="cat" onEntry="this.position='relative';" y="landscape.-50px,portrait.">
|
|
20
|
+
<lido-image visible="true" src="https://i0.wp.com/pixahive.com/wp-content/uploads/2021/02/Yellow-pattern-abstract-background-wallpaper-325431-pixahive.jpg?fit=778%2C435ssl=1" z="0" width="200px" height="300px" onEntry="">
|
|
21
|
+
</lido-image>
|
|
22
|
+
<lido-text width="300px" height="200px" display="flex" onEntry="" font-family="" font-size="48px" z="1" font-color="black" fontWeight="bold" color="#000000" string="tiger" visible="true" y="landscape.35px, portrait.15px" bg-color="yellow">
|
|
23
|
+
</lido-text>
|
|
24
|
+
</lido-col>
|
|
25
|
+
</lido-flash-card>
|
|
26
|
+
</lido-row>
|
|
27
|
+
</lido-container>
|
|
28
28
|
</main>`;
|
|
29
29
|
return html `<lido-home xml-data="${xml}" xmlData="${xml}"></lido-home>`;
|
|
30
30
|
},
|
|
@@ -32,17 +32,17 @@ export const FrontTextBackCol = {
|
|
|
32
32
|
export const BothText = {
|
|
33
33
|
args: {},
|
|
34
34
|
render: _ => {
|
|
35
|
-
const xml = `<main>
|
|
36
|
-
<lido-container id="lido-container" tab-index="1" value="mainContainer3" objective="lion,crocodile,cow" bg-color="#B1BEFD" aria-label="" height="100vh" width="100vw" x="0" y="0" z="0" visible="true" audio="background1.mp3" onTouch="" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000'; this.removeClone='.cloned-element'" onEntry="" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" dropAttr="diagonal">
|
|
37
|
-
<lido-row visible="true" width="landscape.100%, portrait.338px" onEntry="" height="landscape.100%, portrait." y="landscape.340px, portrait.300px" x="landscape.,portrait.520px" direction="landscape.row, portrait.column">
|
|
38
|
-
<lido-flash-card x="50" y="200" width="220px" height="140px">
|
|
39
|
-
<lido-text slot="front" width="400px" height="200px" display="flex" onEntry="" font-family="" font-size="48px" z="1" font-color="black" fontWeight="bold" color="#000000" string="lion" visible="true" y="landscape.35px, portrait.15px" bg-color="red">
|
|
40
|
-
</lido-text>
|
|
41
|
-
<lido-text slot="back" width="300px" height="200px" display="flex" onEntry="" font-family="" font-size="48px" z="1" font-color="black" fontWeight="bold" color="#000000" string="tiger" visible="true" y="landscape.35px, portrait.15px" bg-color="yellow">
|
|
42
|
-
</lido-text>
|
|
43
|
-
</lido-flash-card>
|
|
44
|
-
</lido-row>
|
|
45
|
-
</lido-container>
|
|
35
|
+
const xml = `<main>
|
|
36
|
+
<lido-container id="lido-container" tab-index="1" value="mainContainer3" objective="lion,crocodile,cow" bg-color="#B1BEFD" aria-label="" height="100vh" width="100vw" x="0" y="0" z="0" visible="true" audio="background1.mp3" onTouch="" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000'; this.removeClone='.cloned-element'" onEntry="" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" dropAttr="diagonal">
|
|
37
|
+
<lido-row visible="true" width="landscape.100%, portrait.338px" onEntry="" height="landscape.100%, portrait." y="landscape.340px, portrait.300px" x="landscape.,portrait.520px" direction="landscape.row, portrait.column">
|
|
38
|
+
<lido-flash-card x="50" y="200" width="220px" height="140px">
|
|
39
|
+
<lido-text slot="front" width="400px" height="200px" display="flex" onEntry="" font-family="" font-size="48px" z="1" font-color="black" fontWeight="bold" color="#000000" string="lion" visible="true" y="landscape.35px, portrait.15px" bg-color="red">
|
|
40
|
+
</lido-text>
|
|
41
|
+
<lido-text slot="back" width="300px" height="200px" display="flex" onEntry="" font-family="" font-size="48px" z="1" font-color="black" fontWeight="bold" color="#000000" string="tiger" visible="true" y="landscape.35px, portrait.15px" bg-color="yellow">
|
|
42
|
+
</lido-text>
|
|
43
|
+
</lido-flash-card>
|
|
44
|
+
</lido-row>
|
|
45
|
+
</lido-container>
|
|
46
46
|
</main>`;
|
|
47
47
|
return html `<lido-home xml-data="${xml}" xmlData="${xml}"></lido-home>`;
|
|
48
48
|
},
|
|
@@ -50,17 +50,17 @@ export const BothText = {
|
|
|
50
50
|
export const BothImages = {
|
|
51
51
|
args: {},
|
|
52
52
|
render: _ => {
|
|
53
|
-
const xml = `<main>
|
|
54
|
-
<lido-container id="lido-container" tab-index="1" value="mainContainer3" objective="lion,crocodile,cow" bg-color="#B1BEFD" aria-label="" height="100vh" width="100vw" x="0" y="0" z="0" visible="true" audio="background1.mp3" onTouch="" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000'; this.removeClone='.cloned-element'" onEntry="" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" dropAttr="diagonal">
|
|
55
|
-
<lido-row visible="true" width="landscape.100%, portrait.338px" onEntry="" height="landscape.100%, portrait." y="landscape.340px, portrait.300px" x="landscape.,portrait.520px" direction="landscape.row, portrait.column">
|
|
56
|
-
<lido-flash-card x="50" y="200" width="220px" height="140px">
|
|
57
|
-
<lido-image visible="true" slot="front" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/thumbnails/sticker/Bird_Blue.png" z="0" width="200px" height="300px" onEntry="">
|
|
58
|
-
</lido-image>
|
|
59
|
-
<lido-image visible="true" slot="back" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/thumbnails/sticker/Boat.png" z="0" width="200px" height="300px" onEntry="">
|
|
60
|
-
</lido-image>
|
|
61
|
-
</lido-flash-card>
|
|
62
|
-
</lido-row>
|
|
63
|
-
</lido-container>
|
|
53
|
+
const xml = `<main>
|
|
54
|
+
<lido-container id="lido-container" tab-index="1" value="mainContainer3" objective="lion,crocodile,cow" bg-color="#B1BEFD" aria-label="" height="100vh" width="100vw" x="0" y="0" z="0" visible="true" audio="background1.mp3" onTouch="" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000'; this.removeClone='.cloned-element'" onEntry="" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" dropAttr="diagonal">
|
|
55
|
+
<lido-row visible="true" width="landscape.100%, portrait.338px" onEntry="" height="landscape.100%, portrait." y="landscape.340px, portrait.300px" x="landscape.,portrait.520px" direction="landscape.row, portrait.column">
|
|
56
|
+
<lido-flash-card x="50" y="200" width="220px" height="140px">
|
|
57
|
+
<lido-image visible="true" slot="front" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/thumbnails/sticker/Bird_Blue.png" z="0" width="200px" height="300px" onEntry="">
|
|
58
|
+
</lido-image>
|
|
59
|
+
<lido-image visible="true" slot="back" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/thumbnails/sticker/Boat.png" z="0" width="200px" height="300px" onEntry="">
|
|
60
|
+
</lido-image>
|
|
61
|
+
</lido-flash-card>
|
|
62
|
+
</lido-row>
|
|
63
|
+
</lido-container>
|
|
64
64
|
</main>`;
|
|
65
65
|
return html `<lido-home xml-data="${xml}" xmlData="${xml}"></lido-home>`;
|
|
66
66
|
},
|
|
@@ -68,17 +68,17 @@ export const BothImages = {
|
|
|
68
68
|
export const FrontImageBackText = {
|
|
69
69
|
args: {},
|
|
70
70
|
render: _ => {
|
|
71
|
-
const xml = `<main>
|
|
72
|
-
<lido-container id="lido-container" tab-index="1" value="mainContainer3" objective="lion,crocodile,cow" bg-color="#B1BEFD" aria-label="" height="100vh" width="100vw" x="0" y="0" z="0" visible="true" audio="background1.mp3" onTouch="" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000'; this.removeClone='.cloned-element'" onEntry="" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" dropAttr="diagonal">
|
|
73
|
-
<lido-row visible="true" width="landscape.100%, portrait.338px" onEntry="" height="landscape.100%, portrait." y="landscape.340px, portrait.300px" x="landscape.,portrait.520px" direction="landscape.row, portrait.column">
|
|
74
|
-
<lido-flash-card x="50" y="200" width="220px" height="140px">
|
|
75
|
-
<lido-image visible="true" slot="front" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/thumbnails/sticker/Bird_Blue.png" z="0" width="200px" height="300px" onEntry="">
|
|
76
|
-
</lido-image>
|
|
77
|
-
<lido-text slot="back" width="300px" height="200px" display="flex" onEntry="" font-family="" font-size="48px" z="1" font-color="black" fontWeight="bold" color="#000000" string="Bird" visible="true" y="landscape.35px, portrait.15px" bg-color="yellow">
|
|
78
|
-
</lido-text>
|
|
79
|
-
</lido-flash-card>
|
|
80
|
-
</lido-row>
|
|
81
|
-
</lido-container>
|
|
71
|
+
const xml = `<main>
|
|
72
|
+
<lido-container id="lido-container" tab-index="1" value="mainContainer3" objective="lion,crocodile,cow" bg-color="#B1BEFD" aria-label="" height="100vh" width="100vw" x="0" y="0" z="0" visible="true" audio="background1.mp3" onTouch="" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000'; this.removeClone='.cloned-element'" onEntry="" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" dropAttr="diagonal">
|
|
73
|
+
<lido-row visible="true" width="landscape.100%, portrait.338px" onEntry="" height="landscape.100%, portrait." y="landscape.340px, portrait.300px" x="landscape.,portrait.520px" direction="landscape.row, portrait.column">
|
|
74
|
+
<lido-flash-card x="50" y="200" width="220px" height="140px">
|
|
75
|
+
<lido-image visible="true" slot="front" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/thumbnails/sticker/Bird_Blue.png" z="0" width="200px" height="300px" onEntry="">
|
|
76
|
+
</lido-image>
|
|
77
|
+
<lido-text slot="back" width="300px" height="200px" display="flex" onEntry="" font-family="" font-size="48px" z="1" font-color="black" fontWeight="bold" color="#000000" string="Bird" visible="true" y="landscape.35px, portrait.15px" bg-color="yellow">
|
|
78
|
+
</lido-text>
|
|
79
|
+
</lido-flash-card>
|
|
80
|
+
</lido-row>
|
|
81
|
+
</lido-container>
|
|
82
82
|
</main>`;
|
|
83
83
|
return html `<lido-home xml-data="${xml}" xmlData="${xml}"></lido-home>`;
|
|
84
84
|
},
|
|
@@ -24,15 +24,15 @@ export const Keyboard = {
|
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
26
|
const getContainerXml = args => {
|
|
27
|
-
return `<main>
|
|
28
|
-
<lido-container objective="${args.objective}" is-continue-on-correct="true" drop-action="infinite-drop" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onInCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';">
|
|
29
|
-
<!-- Chimple Avatar -->
|
|
30
|
-
<lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="305px" width="227px" x="-50px" y="landscape.560px, portrait.1220px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="">
|
|
31
|
-
<lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="462px" width="356px" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}">
|
|
32
|
-
</lido-avatar>
|
|
33
|
-
</lido-cell>
|
|
34
|
-
${args.type === 'drag' ? `<lido-text visible="true" string="Drag the letters to this boxes." font-family="'Baloo Bhai 2'" font-size="36px" bg-color="transparent" margin="0 0 20px 0" type="drop"></lido-text>` : ""}
|
|
35
|
-
<lido-keyboard visible="true" keys="${args.keys}" type="${args.type}" width="1000px" height="300px" keyboard-input="${args.keyboardInput === "enable" ? "true" : "false"}"></lido-keyboard>
|
|
36
|
-
</lido-container>
|
|
27
|
+
return `<main>
|
|
28
|
+
<lido-container objective="${args.objective}" is-continue-on-correct="true" drop-action="infinite-drop" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onInCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';">
|
|
29
|
+
<!-- Chimple Avatar -->
|
|
30
|
+
<lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="305px" width="227px" x="-50px" y="landscape.560px, portrait.1220px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="">
|
|
31
|
+
<lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="462px" width="356px" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}">
|
|
32
|
+
</lido-avatar>
|
|
33
|
+
</lido-cell>
|
|
34
|
+
${args.type === 'drag' ? `<lido-text visible="true" string="Drag the letters to this boxes." font-family="'Baloo Bhai 2'" font-size="36px" bg-color="transparent" margin="0 0 20px 0" type="drop"></lido-text>` : ""}
|
|
35
|
+
<lido-keyboard visible="true" keys="${args.keys}" type="${args.type}" width="1000px" height="300px" keyboard-input="${args.keyboardInput === "enable" ? "true" : "false"}"></lido-keyboard>
|
|
36
|
+
</lido-container>
|
|
37
37
|
</main>`;
|
|
38
38
|
};
|
|
@@ -32,9 +32,9 @@ export const QuestionAndOptions = {
|
|
|
32
32
|
};
|
|
33
33
|
function getContainerXml(args) {
|
|
34
34
|
const { src, fillPercentage, fillDirection, min, max, division, numberType } = args;
|
|
35
|
-
return `<main>
|
|
36
|
-
<lido-container id="lido-container" tab-index="1" value="mainContainer1" objective="..." aria-label="" height="100vh" width="100vw" x="0" y="0" z="0" bg-color="black" visible="true">
|
|
37
|
-
<lido-slide-fill fill="${fillPercentage}" width="500px" src="${src}" fillDirection="${fillDirection}" numberType="${numberType}" min="${min}" max="${max}" division="${division}" ></lido-slider-fill>
|
|
38
|
-
</lido-container>
|
|
35
|
+
return `<main>
|
|
36
|
+
<lido-container id="lido-container" tab-index="1" value="mainContainer1" objective="..." aria-label="" height="100vh" width="100vw" x="0" y="0" z="0" bg-color="black" visible="true">
|
|
37
|
+
<lido-slide-fill fill="${fillPercentage}" width="500px" src="${src}" fillDirection="${fillDirection}" numberType="${numberType}" min="${min}" max="${max}" division="${division}" ></lido-slider-fill>
|
|
38
|
+
</lido-container>
|
|
39
39
|
</main>`;
|
|
40
40
|
}
|
|
@@ -20,10 +20,10 @@ export const QuestionAndOptions = {
|
|
|
20
20
|
function getContainerXml(args) {
|
|
21
21
|
let svgText = args.svgFile[0];
|
|
22
22
|
let mode = args.mode;
|
|
23
|
-
return `<main>
|
|
24
|
-
<lido-container id="lido-container" tab-index="1" value="mainContainer1" objective="D-6ba518e3,D-5a192ba3,D-b686f882,D-9095b74f,D-e0a32c78,D-1e4e88f1" aria-label="" height="100vh" width="100vw" x="0" y="0" z="0" bg-color="#FFB742" visible="true" audio="background1.mp3" onTouch="" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true">
|
|
25
|
-
<lido-trace id="image1" tab-index="2" value="image1" visible="true" svgSource="${svgText}" mode="${mode}" z="0" width="1600px" height="900px" onEntry="" alt-text="{backgroundImage}">
|
|
26
|
-
</lido-trace>
|
|
27
|
-
</lido-container>
|
|
23
|
+
return `<main>
|
|
24
|
+
<lido-container id="lido-container" tab-index="1" value="mainContainer1" objective="D-6ba518e3,D-5a192ba3,D-b686f882,D-9095b74f,D-e0a32c78,D-1e4e88f1" aria-label="" height="100vh" width="100vw" x="0" y="0" z="0" bg-color="#FFB742" visible="true" audio="background1.mp3" onTouch="" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onEntry="" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true">
|
|
25
|
+
<lido-trace id="image1" tab-index="2" value="image1" visible="true" svgSource="${svgText}" mode="${mode}" z="0" width="1600px" height="900px" onEntry="" alt-text="{backgroundImage}">
|
|
26
|
+
</lido-trace>
|
|
27
|
+
</lido-container>
|
|
28
28
|
</main>`;
|
|
29
29
|
}
|
|
@@ -16,6 +16,7 @@ export class AudioPlayer {
|
|
|
16
16
|
this.currentTargetElement = null;
|
|
17
17
|
this.pendingReplayElement = null;
|
|
18
18
|
this.playbackHasStarted = false;
|
|
19
|
+
this.playbackSequence = 0;
|
|
19
20
|
this.highlightOverlay = null;
|
|
20
21
|
this.wordRects = [];
|
|
21
22
|
this.activeWordIndex = -1;
|
|
@@ -114,7 +115,7 @@ export class AudioPlayer {
|
|
|
114
115
|
return el;
|
|
115
116
|
return el.closest('lido-text');
|
|
116
117
|
}
|
|
117
|
-
async play(targetElement, suppressHighlight = false) {
|
|
118
|
+
async play(targetElement, suppressHighlight = false, playbackContext) {
|
|
118
119
|
this.registerVisibilityEvents();
|
|
119
120
|
this.playbackHasStarted = false;
|
|
120
121
|
if (!this.isWindowVisible()) {
|
|
@@ -126,6 +127,7 @@ export class AudioPlayer {
|
|
|
126
127
|
}
|
|
127
128
|
this.pendingReplayElement = null;
|
|
128
129
|
}
|
|
130
|
+
const playbackId = ++this.playbackSequence;
|
|
129
131
|
// Stop any currently playing audio first if target element has audio given
|
|
130
132
|
try {
|
|
131
133
|
await AudioPlayer.getI().stop();
|
|
@@ -149,7 +151,7 @@ export class AudioPlayer {
|
|
|
149
151
|
targetElement = textElement;
|
|
150
152
|
}
|
|
151
153
|
this.currentTargetElement = targetElement;
|
|
152
|
-
window.dispatchEvent(new CustomEvent('lidoAudioStarted', { detail: { target: targetElement } }));
|
|
154
|
+
window.dispatchEvent(new CustomEvent('lidoAudioStarted', { detail: { target: targetElement, playbackId, playbackContext } }));
|
|
153
155
|
// then play the target element audio.
|
|
154
156
|
let audioUrl = targetElement.getAttribute('audio') || '';
|
|
155
157
|
// If no direct audio attribute, check childrens for audio
|
|
@@ -168,6 +170,7 @@ export class AudioPlayer {
|
|
|
168
170
|
this.audioElement.src = audioUrl;
|
|
169
171
|
this.audioElement.onplaying = () => {
|
|
170
172
|
this.playbackHasStarted = true;
|
|
173
|
+
window.dispatchEvent(new CustomEvent('lidoAudioPlaying', { detail: { target: targetElement, playbackId, playbackContext } }));
|
|
171
174
|
};
|
|
172
175
|
this.audioElement.onpause = () => {
|
|
173
176
|
if (this.playbackHasStarted && !this.audioElement.ended) {
|
|
@@ -246,13 +249,13 @@ export class AudioPlayer {
|
|
|
246
249
|
await this.waitUntilWindowIsVisible();
|
|
247
250
|
if (this.pendingReplayElement === targetElement) {
|
|
248
251
|
this.pendingReplayElement = null;
|
|
249
|
-
return this.play(targetElement);
|
|
252
|
+
return this.play(targetElement, suppressHighlight, playbackContext);
|
|
250
253
|
}
|
|
251
254
|
}
|
|
252
255
|
if (this.currentTargetElement === targetElement) {
|
|
253
256
|
this.currentTargetElement = null;
|
|
254
257
|
}
|
|
255
|
-
window.dispatchEvent(new CustomEvent('lidoAudioEnded', { detail: { target: targetElement } }));
|
|
258
|
+
window.dispatchEvent(new CustomEvent('lidoAudioEnded', { detail: { target: targetElement, playbackId, playbackContext } }));
|
|
256
259
|
}
|
|
257
260
|
// GLOBAL STOP EVENTS (container change, activity change…)
|
|
258
261
|
registerGlobalStopEvents() {
|
|
@@ -8,7 +8,7 @@ import { categoriseCompleted, enableReorderDrag, resetElementStyles } from "./ut
|
|
|
8
8
|
import { slideAnimation, slidingWithScaling } from "./utilsHandlers/slideHandler";
|
|
9
9
|
import { enableDraggingWithScaling, enableOptionArea, getElementScale, handleDropElement, appendingDragElementsInDrop, multiplyBeedsCalculation, animateDragToTarget } from "./utilsHandlers/dragDropHandler";
|
|
10
10
|
import { enableFreeMove } from "./utilsHandlers/moveHandler";
|
|
11
|
-
import { addClickListenerForClickType, onTouchListenerForOnTouch } from "./utilsHandlers/clickHandler";
|
|
11
|
+
import { addClickListenerForClickType, initializeClickableElementStyle, onTouchListenerForOnTouch } from "./utilsHandlers/clickHandler";
|
|
12
12
|
import { evaluate, isArray } from "mathjs";
|
|
13
13
|
import { fillSlideHandle } from "./utilsHandlers/floatHandler";
|
|
14
14
|
import { highlightElement, stopHighlightForSpeakingElement } from "./utilsHandlers/highlightHandler";
|
|
@@ -53,6 +53,34 @@ export function getSortedValuesArrayFromMap(map) {
|
|
|
53
53
|
export function format(first, middle, last) {
|
|
54
54
|
return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
|
|
55
55
|
}
|
|
56
|
+
// These actions have side effects beyond declarative element styling. They must
|
|
57
|
+
// not run while the player is being displayed in edit mode.
|
|
58
|
+
const nonVisualActions = new Set([
|
|
59
|
+
'revealImageValue',
|
|
60
|
+
'scrollCellAfterEquationSolved',
|
|
61
|
+
'alignMatch',
|
|
62
|
+
'removeClone',
|
|
63
|
+
'speak',
|
|
64
|
+
'fill-slide',
|
|
65
|
+
'nextBtn',
|
|
66
|
+
'prevBtn',
|
|
67
|
+
'stop',
|
|
68
|
+
'sleep',
|
|
69
|
+
'avatarAnimate',
|
|
70
|
+
'cellBorderAnimate',
|
|
71
|
+
'vibrate',
|
|
72
|
+
'highlightStarsAndDisapper',
|
|
73
|
+
'boxAnimationOneByOne',
|
|
74
|
+
'questionBoxAnimate',
|
|
75
|
+
'slideAnimation',
|
|
76
|
+
'showBalanceSymbol',
|
|
77
|
+
'hideBalanceSymbol',
|
|
78
|
+
'sumTogetherAnimation',
|
|
79
|
+
'addText',
|
|
80
|
+
'disableType',
|
|
81
|
+
'updateCountBlender',
|
|
82
|
+
'updateCalculatorAnswer',
|
|
83
|
+
]);
|
|
56
84
|
export const initEventsForElement = async (element, type) => {
|
|
57
85
|
const container = document.getElementById(LidoContainer);
|
|
58
86
|
if (!container) {
|
|
@@ -62,10 +90,29 @@ export const initEventsForElement = async (element, type) => {
|
|
|
62
90
|
return;
|
|
63
91
|
}
|
|
64
92
|
const onEntry = element.getAttribute('onEntry');
|
|
65
|
-
|
|
93
|
+
const canPlay = container.getAttribute('canplay') !== 'false';
|
|
94
|
+
await executeActions(onEntry, element, undefined, { visualOnly: !canPlay });
|
|
95
|
+
// Free movement is an editor interaction and is intentionally available in
|
|
96
|
+
// edit mode; all gameplay handlers below remain disabled there.
|
|
66
97
|
if (element.getAttribute('move') === 'true') {
|
|
67
98
|
enableFreeMove(element);
|
|
68
99
|
}
|
|
100
|
+
// The click visual treatment is independent from the click listener. Edit
|
|
101
|
+
// mode needs the class and custom properties that draw the configured button
|
|
102
|
+
// background/shadow, but must not install answer-selection behavior.
|
|
103
|
+
if (!canPlay && type === 'click') {
|
|
104
|
+
initializeClickableElementStyle(element);
|
|
105
|
+
}
|
|
106
|
+
// Edit mode still needs visual initialization, but must not install any
|
|
107
|
+
// gameplay or touch handlers. In play mode, avoid duplicating listeners if a
|
|
108
|
+
// component invokes its load hook more than once.
|
|
109
|
+
if (!canPlay)
|
|
110
|
+
return;
|
|
111
|
+
const initializedElement = element;
|
|
112
|
+
const initializationKey = `${type || ''}:${canPlay}`;
|
|
113
|
+
if (initializedElement.__lidoInitializationKey === initializationKey)
|
|
114
|
+
return;
|
|
115
|
+
initializedElement.__lidoInitializationKey = initializationKey;
|
|
69
116
|
switch (type) {
|
|
70
117
|
case 'drag': {
|
|
71
118
|
enableDraggingWithScaling(element);
|
|
@@ -105,12 +152,14 @@ export const initEventsForElement = async (element, type) => {
|
|
|
105
152
|
onTouchListenerForOnTouch(element);
|
|
106
153
|
};
|
|
107
154
|
// Function to execute actions parsed from the onMatch string
|
|
108
|
-
export const executeActions = async (actionsString, thisElement, element) => {
|
|
109
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
155
|
+
export const executeActions = async (actionsString, thisElement, element, options = {}) => {
|
|
156
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
110
157
|
const actions = parseActions(actionsString);
|
|
111
158
|
// body.style.pointerEvents = 'none';
|
|
112
159
|
for (let i = 0; i < actions.length; i++) {
|
|
113
160
|
const action = actions[i];
|
|
161
|
+
if (options.visualOnly && nonVisualActions.has(action.action))
|
|
162
|
+
continue;
|
|
114
163
|
const queriedElement = document.querySelector(action.actor);
|
|
115
164
|
const targetElement = action.actor === 'this' ? thisElement : action.actor === 'element' ? element : queriedElement ? queriedElement : document.getElementById(action.actor);
|
|
116
165
|
if (targetElement) {
|
|
@@ -231,7 +280,14 @@ export const executeActions = async (actionsString, thisElement, element) => {
|
|
|
231
280
|
const riveService = RiveService.getInstance();
|
|
232
281
|
const riveInstance = riveService.getRiveInstance();
|
|
233
282
|
if (riveInstance && action.value) {
|
|
234
|
-
riveInstance
|
|
283
|
+
const input = (_b = riveInstance
|
|
284
|
+
.stateMachineInputs('State Machine 1')) === null || _b === void 0 ? void 0 : _b.find(input => input.name === action.value);
|
|
285
|
+
if (input) {
|
|
286
|
+
input.fire();
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
console.warn(`Avatar reaction input "${action.value}" was not found in State Machine 1.`);
|
|
290
|
+
}
|
|
235
291
|
}
|
|
236
292
|
break;
|
|
237
293
|
}
|
|
@@ -278,8 +334,8 @@ export const executeActions = async (actionsString, thisElement, element) => {
|
|
|
278
334
|
const balanceEl = document.querySelector('lido-balance');
|
|
279
335
|
if (!balanceEl)
|
|
280
336
|
break;
|
|
281
|
-
const leftVal = Number((
|
|
282
|
-
const rightVal = Number((
|
|
337
|
+
const leftVal = Number((_c = balanceEl.leftVal) !== null && _c !== void 0 ? _c : Number((_e = (_d = balanceEl.dataset) === null || _d === void 0 ? void 0 : _d.leftVal) !== null && _e !== void 0 ? _e : 0));
|
|
338
|
+
const rightVal = Number((_f = balanceEl.rightVal) !== null && _f !== void 0 ? _f : Number((_h = (_g = balanceEl.dataset) === null || _g === void 0 ? void 0 : _g.rightVal) !== null && _h !== void 0 ? _h : 0));
|
|
283
339
|
const symbol = leftVal > rightVal ? '>' : leftVal < rightVal ? '<' : '=';
|
|
284
340
|
balanceEl.balanceSymbol = symbol;
|
|
285
341
|
balanceEl.dataset.balanceSymbol = symbol;
|
|
@@ -399,11 +455,11 @@ const afterDropDragHandling = (dragElement, dropElement) => {
|
|
|
399
455
|
}
|
|
400
456
|
dummyElement.setAttribute('id', dragElement.getAttribute('id'));
|
|
401
457
|
dragElement.replaceWith(dummyElement);
|
|
402
|
-
const keyframes = `
|
|
403
|
-
@keyframes widthDecrease {
|
|
404
|
-
0% { width: ${dragElement.style.width}; height: ${dragElement.style.height}; margin: ${dragElement.style.margin}; }
|
|
405
|
-
100% { width: 0px; height: 0px; margin: 0px;}
|
|
406
|
-
}
|
|
458
|
+
const keyframes = `
|
|
459
|
+
@keyframes widthDecrease {
|
|
460
|
+
0% { width: ${dragElement.style.width}; height: ${dragElement.style.height}; margin: ${dragElement.style.margin}; }
|
|
461
|
+
100% { width: 0px; height: 0px; margin: 0px;}
|
|
462
|
+
}
|
|
407
463
|
`;
|
|
408
464
|
if (!isInfinite) {
|
|
409
465
|
dummyElement.style.width = element.style.width;
|
|
@@ -754,7 +810,7 @@ const storeActivityScore = (score) => {
|
|
|
754
810
|
activityScore[activityScoreKey] = score;
|
|
755
811
|
//send Custom Event to parent
|
|
756
812
|
// window.dispatchEvent(new CustomEvent(ActivityEndKey, { detail: { index: index, totalIndex: totalIndex, score: score } }));
|
|
757
|
-
const actualActivitySeconds =
|
|
813
|
+
const actualActivitySeconds = Number((Timer.getI().getElapsed() / 1000).toFixed(1));
|
|
758
814
|
ACTIVYTY_TIME_SPEND_ARRAY.push(actualActivitySeconds);
|
|
759
815
|
console.log(`[Utils][Activity Time] Activity ${index + 1}/${totalIndex} - Time spent: ${actualActivitySeconds}s`);
|
|
760
816
|
const lessonTrackingParams = getLessonTrackingParams();
|
|
@@ -766,7 +822,7 @@ const storeActivityScore = (score) => {
|
|
|
766
822
|
gameScore.finalScore = Math.floor(finalScore);
|
|
767
823
|
console.log('Total Score : ', gameScore.finalScore);
|
|
768
824
|
// window.dispatchEvent(new CustomEvent(LessonEndKey, { detail: { score: finalScore } }));
|
|
769
|
-
const timeSpendForLesson = ACTIVYTY_TIME_SPEND_ARRAY.reduce((sum, current) => sum + current, 0);
|
|
825
|
+
const timeSpendForLesson = Number(ACTIVYTY_TIME_SPEND_ARRAY.reduce((sum, current) => sum + current, 0).toFixed(1));
|
|
770
826
|
console.log(`[Utils][Lesson Time] Total lesson time spent: ${timeSpendForLesson}s`);
|
|
771
827
|
dispatchLessonEndEvent(totalIndex, gameScore.totalRightMovesCount, gameScore.totalWrongMovesCount, finalScore, timeSpendForLesson, lessonTrackingParams);
|
|
772
828
|
gameScore.totalRightMovesCount = 0;
|
|
@@ -212,11 +212,12 @@ export function addClickListenerForClickType(element) {
|
|
|
212
212
|
}, 50);
|
|
213
213
|
}
|
|
214
214
|
});
|
|
215
|
-
|
|
215
|
+
initializeClickableElementStyle(element);
|
|
216
216
|
}
|
|
217
|
-
const
|
|
217
|
+
export const initializeClickableElementStyle = (element) => {
|
|
218
218
|
var _a;
|
|
219
|
-
const
|
|
219
|
+
const elementHeight = Number.isFinite(element.offsetHeight) ? element.offsetHeight : 0;
|
|
220
|
+
const elementShadow = elementHeight * 0.08;
|
|
220
221
|
const backGroundColor = ((_a = element.style) === null || _a === void 0 ? void 0 : _a.backgroundColor) || '#FFB742';
|
|
221
222
|
element.style.setProperty('--btn-bg-color', backGroundColor);
|
|
222
223
|
element.style.setProperty('--btn-shadow-px', `0px ${elementShadow}px 0px`);
|