{"project":"confetti","branch":"main","commit":"9a7e8cdf53361373d6fa71a39d31749711c2ac7e","component":{"name":"Confetti","nodes":{"root":{"tag":"div","type":"element","children":["orop13NNFpR68ovc8HsBY"],"classes":{"bTqdax":{"formula":{"type":"value","value":true}}},"customProperties":{}},"0TUTfOGbRussUL8zl1iQT":{"type":"text","value":{"type":"value","value":"Number (default: 1): How quickly the particles are pulled down. 1 is full gravity, 0.5 is half gravity, etc., but there are no limits. You can even make particles go up if you'd like.\n"}},"1vJJTIgDibOKD-rSf5s7c":{"tag":"td","type":"element","children":["Ppt8V43bsJilw24i9fGhh"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2Fa__-TP58dM0kaYpS9nO":{"tag":"td","type":"element","children":["Jt_6qgwObmUmtvvxDl1wB"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2Zkq7CAW0hyFxJZetL87A":{"type":"text","value":{"type":"value","value":"Number (default: 200): How many times the confetti will move. This is abstract... but play with it if the confetti disappear too quickly for you.\n"}},"2haHncqvyyPabRy-YMGVl":{"tag":"td","type":"element","children":["EpTLEmNiEImhbfMPD8rek"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2qxHUrBSE2naRgbT2EIhE":{"tag":"p","type":"element","children":["Jx88j7aWNsMXYOp29kLkA","nS2bwEstYm0R27x9zCmCU"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"4t-SvP2dGnq04VxBxV__i":{"tag":"section","type":"element","children":["gW4eayMk5G47lOdDbk_o1","aZGsuP0E2sP1hBAUx2uzL"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"5bLv7bOILBdhTehI-ilYK":{"type":"text","value":{"type":"value","value":"Actions"}},"5bNzbd69GsFlAfOBQ9rh1":{"type":"text","value":{"type":"value","value":" a confetti fireworks show 🎆🎉"}},"6JzUCbPY8pzQYwcQpJk6o":{"type":"text","value":{"type":"value","value":"flat\n"}},"6MxGqPGUq00BJUfbPn01X":{"type":"text","value":{"type":"value","value":"Array<String>: An array of color strings, in the HEX format... you know, like #bada55.\n"}},"6oOLpusBf8d2_z0LaiNlD":{"type":"text","value":{"type":"value","value":"Confetti"}},"7b1JvFMfz1PVlI2saR-y8":{"tag":"td","type":"element","children":["aeh0coavN6afmZcLLuA_Q"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"9VA1MwkDqdPlUFh3aNErb":{"tag":"td","type":"element","children":["w-3WaMEEh49XCvOZdFz5S"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"9ccpmsMYt3SOF4MllfV2s":{"tag":"p","type":"element","children":["O2Gq5Pd2NaBWOyPVrP227"],"classes":{"sahaH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ASmXQLhFeeJ_m_grIfjJg":{"tag":"h2","type":"element","children":["5bLv7bOILBdhTehI-ilYK"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Ac21umiyCJ7JGiZR40tCB":{"tag":"tr","type":"element","children":["XwPG8P2ALYL4WucSnhLpB","Fc1iNOeE7nEsvrKZM6d3m"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Ak99CvH2QtAtnpVFRkHup":{"tag":"tr","type":"element","children":["JqBV6JCa6FLBecaXfV0qE","xvm9TVzt0XuzoKCvUDN8B"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"BCM4Y-gzi2O6kpry6mygr":{"type":"text","value":{"type":"value","value":" or view "}},"CMktc7aRKdJHy0O4kglQW":{"type":"text","value":{"type":"value","value":"gravity\n"}},"DBbvwJq0VHL3nSnHPirYW":{"tag":"li","type":"element","value":{"type":"value","value":"\nChanging arguments or calling the action multiple times with different values can achieve interesting effects, such as"},"children":["Z7U_g23g9LBI1H499IrXc","2qxHUrBSE2naRgbT2EIhE","u__7HCLLVFIHLMNSwUIsq","FBjWbDH8Fr7Uk8ELC63bP"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"DQADpB2ZpeEWOSE4fwzh9":{"tag":"p","type":"element","children":["Y7_85xY--k9ro8-Q7BkUi","EJF4DCU4rx0_1bjiTONWV","VA0bKsP9ZAvbXo2UdQGns","jMvTBEEfq_eL2EotAEy-d","BCM4Y-gzi2O6kpry6mygr","HB8y_na_w3ETQkcRTyPf0","dNWOgKLn9ERT_9F697InW"],"classes":{"sahaH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"EJF4DCU4rx0_1bjiTONWV":{"tag":"a","type":"element","attrs":{"href":{"type":"value","value":"https://github.com/catdad/canvas-confetti"},"target":{"type":"value","value":"_blank"}},"children":["PALkProds5r8Nu8cl91Gz"],"classes":{"DQNTU":{"formula":{"type":"value","value":true}}},"customProperties":{}},"EpTLEmNiEImhbfMPD8rek":{"type":"text","value":{"type":"value","value":"angle\n"}},"FBjWbDH8Fr7Uk8ELC63bP":{"tag":"div","type":"element","children":["OpFa5Tm5nnXYwLkKa7cWU"],"classes":{"ecwgFB":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Fc1iNOeE7nEsvrKZM6d3m":{"tag":"td","type":"element","children":["6MxGqPGUq00BJUfbPn01X"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"FjLsCqwg9vJEy6XxZQ0Tu":{"type":"text","value":{"type":"value","value":"startVelocity\n"}},"HB8y_na_w3ETQkcRTyPf0":{"tag":"a","type":"element","attrs":{"href":{"type":"value","value":"https://www.kirilv.com/canvas-confetti/"},"target":{"type":"value","value":"_blank"}},"children":["fieq_25EqiHSrkiMHrgFm"],"classes":{"DQNTU":{"formula":{"type":"value","value":true}}},"customProperties":{}},"HWOSnh8Nc4lo5_zAu95K5":{"tag":"td","type":"element","children":["VA403l1JQbmWasnPvdWUx"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"IpX2nE89VLAqGnRcE4Fzk":{"tag":"tr","type":"element","children":["blU1CO0uhMDsM0D2aF7a0","2Fa__-TP58dM0kaYpS9nO"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Jg5U2x4KcXJKFZlQGe8CM":{"tag":"td","type":"element","children":["CMktc7aRKdJHy0O4kglQW"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"JqBV6JCa6FLBecaXfV0qE":{"tag":"td","type":"element","children":["j7f0DTViMeVT3ww5IJEwZ"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Jt_6qgwObmUmtvvxDl1wB":{"type":"text","value":{"type":"value","value":"Number (default: 0.9): How quickly the confetti will lose speed. Keep this number between 0 and 1, otherwise the confetti will gain speed. Better yet, just never change it.\n"}},"Jx88j7aWNsMXYOp29kLkA":{"type":"text","value":{"type":"value","value":"Changing arguments or calling the action multiple times with different values can achieve interesting effects, such as"}},"KFgCzeTPb12h9yQ1Jg1uh":{"tag":"div","type":"element","value":{"type":"value","value":"Unleash the confetti!"},"children":["VPVYE3uQYsopsUtfLBkqa","9ccpmsMYt3SOF4MllfV2s"],"classes":{"eozNhk":{"formula":{"type":"value","value":true}}},"customProperties":{}},"LaS9PhoLfr5JDPmIllg0Y":{"type":"text","value":{"type":"value","value":"colors\n"}},"M3rzonZ1XR0N8y2XdjP0i":{"tag":"div","type":"element","events":{"click":{"actions":[{"name":"confetti","version":2,"exported":true,"arguments":[{"name":"origin","formula":{"type":"object","arguments":[{"Name":0,"name":"x","formula":{"name":"@toddle/divide","type":"function","arguments":[{"name":"Dividend","type":{"type":"Number"},"formula":{"path":["Event","pageX"],"type":"path"}},{"name":"Divisor","type":{"type":"Number"},"formula":{"name":"@toddle/get","type":"function","arguments":[{"name":"Object","type":{"type":"Union","types":[{"type":"Object"},{"type":"Array"},{"type":"String"}]},"formula":{"name":"viewportDimensions","type":"function","arguments":[]}},{"name":"Path","type":{"type":"Union","types":[{"type":"Array","ofType":{"type":"String"}},{"type":"String"},{"type":"Number"}]},"formula":{"type":"value","value":"innerWidth"}}],"display_name":"Get"}}],"display_name":"Divide"}},{"Name":0,"name":"y","formula":{"name":"@toddle/divide","type":"function","arguments":[{"name":"Dividend","type":{"type":"Number"},"formula":{"path":["Event","pageY"],"type":"path"}},{"name":"Divisor","type":{"type":"Number"},"formula":{"name":"@toddle/get","type":"function","arguments":[{"name":"Object","type":{"type":"Union","types":[{"type":"Object"},{"type":"Array"},{"type":"String"}]},"formula":{"name":"viewportDimensions","type":"function","arguments":[]}},{"name":"Path","type":{"type":"Union","types":[{"type":"Array","ofType":{"type":"String"}},{"type":"String"},{"type":"Number"}]},"formula":{"type":"value","value":"innerHeight"}}],"display_name":"Get"}}],"display_name":"Divide"}}]}},{"name":"particleCount","formula":null},{"name":"angle","formula":null},{"name":"spread","formula":null},{"name":"startVelocity","formula":null},{"name":"decay","formula":null},{"name":"gravity","formula":null},{"name":"drift","formula":null},{"name":"flat","formula":null},{"name":"ticks","formula":null},{"name":"colors","formula":null},{"name":"shapes","formula":null},{"name":"scalar","formula":null},{"name":"zIndex","formula":null},{"name":"disableForReducedMotion"}],"handlerRaw":"const OPTIONS_DEFAULT = {\n    disableForReducedMotion: true,\n    // use toddle logo colors by default\n    colors: [\"#3686ff\", \"#1ed688\", \"#f2396a\", \"#fccc26\"],\n}\n\nasync function confetti(args, ctx) {\n  const cavasConfetti = await import('https://cdn.jsdelivr.net/npm/canvas-confetti@1.9.2/+esm');\n  cavasConfetti.default({\n    ...OPTIONS_DEFAULT,\n    ...args\n  });\n}"}],"trigger":"click"}},"children":["zniAH_csBFBnCVcxu61aR"],"classes":{"ebtMYU":{"formula":{"type":"value","value":true}}},"customProperties":{}},"MkEGCJCa4Jr8fOIggFMza":{"type":"text","value":{"type":"value","value":"Intro"}},"O2Gq5Pd2NaBWOyPVrP227":{"type":"text","value":{"type":"value","value":"An action you can use anywhere in your App. Great for celebrating a successful API response, or to lighten the mood if it returns an error. Once installed, you can add the confetti action to any event. Fire it from your cursor, as fireworks, or from the side. The sky is the limit, and you can even control the amount and the speed.Once installed, you can add the confetti action to any event. Fire it from your cursor, as fireworks, or from the side. The sky is the limit, and you can even control the amount and the speed.\n\nGive it a go in the examples below  🎉\n\n"}},"OpFa5Tm5nnXYwLkKa7cWU":{"tag":"button","type":"element","attrs":{"type":{"type":"value","value":"button"}},"events":{"click":{"actions":[{"name":"confetti","version":2,"exported":true,"arguments":[{"name":"origin","formula":{"type":"object","arguments":[{"Name":0,"name":"x","formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"1.1"}}],"display_name":"Number"}},{"Name":0,"name":"y","formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"0.5"}}],"display_name":"Number"}}]}},{"name":"particleCount","formula":null},{"name":"angle","formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"135"}}],"display_name":"Number"}},{"name":"spread","formula":null},{"name":"startVelocity","formula":null},{"name":"decay","formula":null},{"name":"gravity","formula":null},{"name":"drift","formula":null},{"name":"flat","formula":null},{"name":"ticks","formula":null},{"name":"colors","formula":null},{"name":"shapes","formula":null},{"name":"scalar","formula":null},{"name":"zIndex","formula":null},{"name":"disableForReducedMotion"}],"handlerRaw":"const OPTIONS_DEFAULT = {\n    disableForReducedMotion: true,\n    // use toddle logo colors by default\n    colors: [\"#3686ff\", \"#1ed688\", \"#f2396a\", \"#fccc26\"],\n}\n\nasync function confetti(args, ctx) {\n  const cavasConfetti = await import('https://cdn.jsdelivr.net/npm/canvas-confetti@1.9.2/+esm');\n  cavasConfetti.default({\n    ...OPTIONS_DEFAULT,\n    ...args\n  });\n}"},{"name":"confetti","version":2,"exported":true,"arguments":[{"name":"origin","formula":{"type":"object","arguments":[{"Name":0,"name":"x","formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"-0.1"}}],"display_name":"Number"}},{"Name":0,"name":"y","formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"0.5"}}],"display_name":"Number"}}]}},{"name":"particleCount","formula":null},{"name":"angle","formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"45"}}],"display_name":"Number"}},{"name":"spread","formula":null},{"name":"startVelocity","formula":null},{"name":"decay","formula":null},{"name":"gravity","formula":null},{"name":"drift","formula":null},{"name":"flat","formula":null},{"name":"ticks","formula":null},{"name":"colors","formula":null},{"name":"shapes","formula":null},{"name":"scalar","formula":null},{"name":"zIndex","formula":null},{"name":"disableForReducedMotion"}],"handlerRaw":"const OPTIONS_DEFAULT = {\n    disableForReducedMotion: true,\n    // use toddle logo colors by default\n    colors: [\"#3686ff\", \"#1ed688\", \"#f2396a\", \"#fccc26\"],\n}\n\nasync function confetti(args, ctx) {\n  const cavasConfetti = await import('https://cdn.jsdelivr.net/npm/canvas-confetti@1.9.2/+esm');\n  cavasConfetti.default({\n    ...OPTIONS_DEFAULT,\n    ...args\n  });\n}"}],"trigger":"click"}},"children":["xMjQcOfZ0x1XpWUoY_1EH"],"classes":{"eDxYGd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"PALkProds5r8Nu8cl91Gz":{"type":"text","value":{"type":"value","value":"catdad/canvas-confetti "}},"Ppt8V43bsJilw24i9fGhh":{"type":"text","value":{"type":"value","value":"Number (default: 45): How fast the confetti will start going, in pixels.\n"}},"RzC467ESG7Zii1GR0xBK8":{"tag":"section","type":"element","children":["ASmXQLhFeeJ_m_grIfjJg","xNGjw5sJqhhp9IlQQmjRR"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"U5eNDQl7FxP3GXhYxFkhp":{"tag":"table","type":"element","children":["bsCJI3p94mjrcVqo8_OFH","x4gh5LXuFxh2UZ1q01-bT","Ak99CvH2QtAtnpVFRkHup","kNZVdfSwvTU84twAoF2xB","IpX2nE89VLAqGnRcE4Fzk","pLfkdR2OFVwRpdWMnVz17","g7qAZIfV-aSS7F7JZW6bp","tysqllNpnmwLSfKY9K59x","yMRK8nijAEzwpZwqCRwmV","tLNmH9_ichT35wChVdOnW","Ac21umiyCJ7JGiZR40tCB"],"classes":{"eqyXTA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"UZSNBRomw1DlcZdBLGAwf":{"type":"text","value":{"type":"value","value":"Boolean (default: false): Optionally turns off the tilt and wobble that three dimensional confetti would have in the real world. Yeah, they look a little sad, but y'all asked for them, so don't blame me.\n"}},"V5__007A01oL2XeZWfZXW":{"tag":"h4","type":"element","children":["WiHKD_2h0L9Bi_h134yLG"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"VA0bKsP9ZAvbXo2UdQGns":{"type":"text","value":{"type":"value","value":". Read more on "}},"VA403l1JQbmWasnPvdWUx":{"type":"text","value":{"type":"value","value":"particleCount\n"}},"VPVYE3uQYsopsUtfLBkqa":{"tag":"h3","type":"element","children":["wzgGUZd7JYq-GXX9dDqFP"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"WiHKD_2h0L9Bi_h134yLG":{"type":"text","value":{"type":"value","value":"Arguments"}},"XwPG8P2ALYL4WucSnhLpB":{"tag":"td","type":"element","children":["LaS9PhoLfr5JDPmIllg0Y"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Y5JlwqHZzecBIBUZfH5vP":{"tag":"td","type":"element","children":["kv4Bi_UArBsZEpuG_yR0T"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Y7_85xY--k9ro8-Q7BkUi":{"type":"text","value":{"type":"value","value":"Based on "}},"YiQROHCKvRSV2Zf05vzX7":{"tag":"td","type":"element","children":["mjHJ7aIsZf0Sn5ZkSsLYZ"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Z7U_g23g9LBI1H499IrXc":{"tag":"h3","type":"element","children":["6oOLpusBf8d2_z0LaiNlD"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"aZGsuP0E2sP1hBAUx2uzL":{"tag":"div","type":"element","children":["oHc1_TklNvV8_tThAmRYn","KFgCzeTPb12h9yQ1Jg1uh"],"classes":{"bCauLL":{"formula":{"type":"value","value":true}}},"customProperties":{}},"aeh0coavN6afmZcLLuA_Q":{"type":"text","value":{"type":"value","value":"drift\n"}},"blU1CO0uhMDsM0D2aF7a0":{"tag":"td","type":"element","children":["nS0iR6AdTwHItK0VqXo3P"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"bsCJI3p94mjrcVqo8_OFH":{"tag":"tr","type":"element","children":["HWOSnh8Nc4lo5_zAu95K5","Y5JlwqHZzecBIBUZfH5vP"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"dNWOgKLn9ERT_9F697InW":{"type":"text","value":{"type":"value","value":"!"}},"dx-DIDFWytohbi-YNcCrw":{"tag":"td","type":"element","children":["FjLsCqwg9vJEy6XxZQ0Tu"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"eYA9T4Ite1Q78dlLSi0fj":{"tag":"td","type":"element","children":["6JzUCbPY8pzQYwcQpJk6o"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"f9BrFk7dOI78A4AY6sNub":{"type":"text","value":{"type":"value","value":"Click anywhere here to shoot some confetti"}},"fieq_25EqiHSrkiMHrgFm":{"type":"text","value":{"type":"value","value":"more examples"}},"g7qAZIfV-aSS7F7JZW6bp":{"tag":"tr","type":"element","children":["7b1JvFMfz1PVlI2saR-y8","pT1nw-aRPfcYQmwg5d9Kk"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"gW4eayMk5G47lOdDbk_o1":{"tag":"h2","type":"element","children":["MkEGCJCa4Jr8fOIggFMza"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"gaztaWiXeDOMeLwIqfx-l":{"type":"text","value":{"type":"value","value":"options"}},"hWUwA0HO-UcHoNXJ0eMzR":{"type":"text","value":{"type":"value","value":"Number (default: 90): The angle in which to launch the confetti, in degrees. 90 is straight up.\n"}},"iXHkGiaxhOA4--HvpseIZ":{"tag":"td","type":"element","children":["UZSNBRomw1DlcZdBLGAwf"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"j7f0DTViMeVT3ww5IJEwZ":{"type":"text","value":{"type":"value","value":"spread\n"}},"jMvTBEEfq_eL2EotAEy-d":{"tag":"a","type":"element","attrs":{"href":{"type":"value","value":"https://github.com/catdad/canvas-confetti?tab=readme-ov-file#options"},"target":{"type":"value","value":"_blank"}},"children":["gaztaWiXeDOMeLwIqfx-l"],"classes":{"DQNTU":{"formula":{"type":"value","value":true}}},"customProperties":{}},"jtx9C8fB68J0laqIyU0g3":{"type":"text","value":{"type":"value","value":"Number (default: 45): How far off center the confetti can go, in degrees. 45 means the confetti will launch at the defined angle plus or minus 22.5 degrees.\n"}},"k4PgIWf5LfwI6TTEH6l7s":{"tag":"h2","type":"element","children":["mAe-8lmz7IjeYiBhn6HiI"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"kNZVdfSwvTU84twAoF2xB":{"tag":"tr","type":"element","children":["dx-DIDFWytohbi-YNcCrw","1vJJTIgDibOKD-rSf5s7c"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"kv4Bi_UArBsZEpuG_yR0T":{"type":"text","value":{"type":"value","value":"Number (default: 50): The number of confetti to launch. More is always fun... but be cool, there's a lot of math involved.\n"}},"l13v7KxhNFIc2RSJyRgb9":{"tag":"td","type":"element","value":{"type":"value","value":"Object: Where to start firing confetti from. Feel free to launch off-screen if you'd like.\n\nx: "},"children":["oUd_UZ_7dsmknolRr1sH2"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"mAe-8lmz7IjeYiBhn6HiI":{"type":"text","value":{"type":"value","value":"Demo"}},"mdlaALdbLQ3jcc1DH1VKL":{"tag":"div","type":"element","children":["M3rzonZ1XR0N8y2XdjP0i"],"classes":{"YTJFj":{"formula":{"type":"value","value":true}}},"customProperties":{}},"mjHJ7aIsZf0Sn5ZkSsLYZ":{"type":"text","value":{"type":"value","value":"ticks\n"}},"nS0iR6AdTwHItK0VqXo3P":{"type":"text","value":{"type":"value","value":"decay\n"}},"nS2bwEstYm0R27x9zCmCU":{"tag":"a","type":"element","attrs":{"href":{"type":"value","value":"/"}},"events":{"click":{"actions":[{"name":"@toddle/preventDefault"},{"type":"TriggerWorkflow","workflow":"Jg7hYi","parameters":{"times":{"formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"12"}}],"display_name":"Number"}}}}],"trigger":"click"}},"children":["5bNzbd69GsFlAfOBQ9rh1"],"classes":{"DQNTU":{"formula":{"type":"value","value":true}}},"customProperties":{}},"oHc1_TklNvV8_tThAmRYn":{"tag":"iframe","type":"element","attrs":{"src":{"type":"value","value":"https://www.youtube.com/embed/eyQtsCmq0IM?si=ZeAfztpDaJh-PfWr"},"allow":{"type":"value","value":"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"},"title":{"type":"value","value":"How to use this package!"},"height":{"type":"value","value":"100%"},"frameborder":{"type":"value","value":"0"},"allowfullscreen":{"type":"value","value":""}},"classes":{"cVtOXD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"oUd_UZ_7dsmknolRr1sH2":{"type":"text","value":{"type":"value","value":"origin\n"}},"orop13NNFpR68ovc8HsBY":{"tag":"main","type":"element","children":["4t-SvP2dGnq04VxBxV__i","pKQH5W3YKDUydTgIo7-OF","RzC467ESG7Zii1GR0xBK8","DQADpB2ZpeEWOSE4fwzh9"],"classes":{"drWRwT":{"formula":{"type":"value","value":true}}},"customProperties":{}},"pKQH5W3YKDUydTgIo7-OF":{"tag":"section","type":"element","children":["k4PgIWf5LfwI6TTEH6l7s","mdlaALdbLQ3jcc1DH1VKL"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"pLfkdR2OFVwRpdWMnVz17":{"tag":"tr","type":"element","children":["Jg5U2x4KcXJKFZlQGe8CM","qFZJz3ZuuBsuppfFgoKRz"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"pT1nw-aRPfcYQmwg5d9Kk":{"tag":"td","type":"element","children":["sr8Eh77UA_8OyTTk93tt2"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qFZJz3ZuuBsuppfFgoKRz":{"tag":"td","type":"element","children":["0TUTfOGbRussUL8zl1iQT"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"sr8Eh77UA_8OyTTk93tt2":{"type":"text","value":{"type":"value","value":"Number (default: 0): How much to the side the confetti will drift. The default is 0, meaning that they will fall straight down. Use a negative number for left and positive number for right.\n"}},"t49vNn3JS4jOmTHmlN2Vn":{"tag":"td","type":"element","children":["2Zkq7CAW0hyFxJZetL87A"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"tLNmH9_ichT35wChVdOnW":{"tag":"tr","type":"element","children":["l13v7KxhNFIc2RSJyRgb9","9VA1MwkDqdPlUFh3aNErb"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"tysqllNpnmwLSfKY9K59x":{"tag":"tr","type":"element","children":["eYA9T4Ite1Q78dlLSi0fj","iXHkGiaxhOA4--HvpseIZ"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"u__7HCLLVFIHLMNSwUIsq":{"tag":"div","type":"element","children":["V5__007A01oL2XeZWfZXW","U5eNDQl7FxP3GXhYxFkhp"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"vx70ZyZmkS2JmEavzCqiw":{"tag":"td","type":"element","children":["hWUwA0HO-UcHoNXJ0eMzR"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"w-3WaMEEh49XCvOZdFz5S":{"type":"text","value":{"type":"value","value":"Object: Where to start firing confetti from. Feel free to launch off-screen if you'd like.\n\norigin.x: Number (default: 0.5): The x position on the page, with 0 being the left edge and 1 being the right edge.\n\norigin.y: Number (default: 0.5): The y position on the page, with 0 being the top edge and 1 being the bottom edge."}},"wzgGUZd7JYq-GXX9dDqFP":{"type":"text","value":{"type":"value","value":"Unleash all the confetti!"}},"x4gh5LXuFxh2UZ1q01-bT":{"tag":"tr","type":"element","children":["2haHncqvyyPabRy-YMGVl","vx70ZyZmkS2JmEavzCqiw"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"xMjQcOfZ0x1XpWUoY_1EH":{"type":"text","value":{"type":"value","value":"Shoot confetti\n"},"events":null},"xNGjw5sJqhhp9IlQQmjRR":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["DBbvwJq0VHL3nSnHPirYW"],"classes":{"erbmxD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"xvm9TVzt0XuzoKCvUDN8B":{"tag":"td","type":"element","children":["jtx9C8fB68J0laqIyU0g3"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"yMRK8nijAEzwpZwqCRwmV":{"tag":"tr","type":"element","children":["YiQROHCKvRSV2Zf05vzX7","t49vNn3JS4jOmTHmlN2Vn"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"zniAH_csBFBnCVcxu61aR":{"tag":"p","type":"element","children":["f9BrFk7dOI78A4AY6sNub"],"classes":{"fmlsuQ":{"formula":{"type":"value","value":true}}},"customProperties":{}}},"route":{"info":{"title":{"formula":{"type":"value","value":"Confetti"}},"description":{"formula":{"type":"value","value":"Custom action to unleash confetti on users!"}}},"path":[],"query":{}},"onLoad":{"actions":[],"trigger":"load"},"functions":{},"workflows":{"Jg7hYi":{"name":"Shoot recursively","actions":[{"type":"Switch","cases":[{"actions":[{"name":"@toddle/sleep","events":{"tick":{"actions":[{"type":"TriggerWorkflow","workflow":"Jg7hYi","parameters":{"times":{"formula":{"name":"@toddle/minus","type":"function","arguments":[{"name":"Minuend","type":{"type":"Number"},"formula":{"path":["Parameters","times"],"type":"path"}},{"name":"Substrahend","type":{"type":"Number"},"formula":{"type":"value","value":1}}],"display_name":"Minus"}}}}],"trigger":"tick"}},"arguments":[{"name":"Delay in milliseconds","formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"100"}}],"display_name":"Number"}}]},{"name":"confetti","version":2,"exported":true,"arguments":[{"name":"origin","formula":{"type":"object","arguments":[{"Name":0,"name":"x","formula":{"name":"@toddle/randomNumber","type":"function","display_name":"Random number"}},{"Name":0,"name":"y","formula":{"name":"@toddle/add","type":"function","arguments":[{"name":"Minuend","type":{"type":"Number"},"formula":{"name":"@toddle/randomNumber","type":"function","arguments":[],"display_name":"Random number"}},{"name":"Substrahend","type":{"type":"Number"},"formula":{"type":"value","value":-0.2}}],"display_name":"Add","variableArguments":true}}]}},{"name":"particleCount","formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"100"}}],"display_name":"Number"}},{"name":"angle","formula":null},{"name":"spread","formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"360"}}],"display_name":"Number"}},{"name":"startVelocity","formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"30"}}],"display_name":"Number"}},{"name":"decay","formula":null},{"name":"gravity","formula":null},{"name":"drift","formula":null},{"name":"flat","formula":null},{"name":"ticks","formula":null},{"name":"colors","formula":null},{"name":"shapes","formula":null},{"name":"scalar","formula":null},{"name":"zIndex","formula":null},{"name":"disableForReducedMotion"}],"handlerRaw":"const OPTIONS_DEFAULT = {\n    disableForReducedMotion: true,\n    // use toddle logo colors by default\n    colors: [\"#3686ff\", \"#1ed688\", \"#f2396a\", \"#fccc26\"],\n}\n\nasync function confetti(args, ctx) {\n  const cavasConfetti = await import('https://cdn.jsdelivr.net/npm/canvas-confetti@1.9.2/+esm');\n  cavasConfetti.default({\n    ...OPTIONS_DEFAULT,\n    ...args\n  });\n}"}],"condition":{"name":"@toddle/greaterThan","type":"function","label":"Madness not over?","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"path":["Parameters","times"],"type":"path","label":null}},{"name":"Second","type":{"type":"Number"},"formula":{"type":"value","value":0}}],"display_name":"Greater than"}}],"default":{"actions":[]}}],"parameters":[{"name":"times"}],"exposeInContext":false}}},"components":[]}