masoneffect 2.0.19 → 2.0.21
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/README.md +2 -2
- package/dist/core/count/index.d.ts.map +1 -1
- package/dist/core/count/index.test.d.ts +2 -0
- package/dist/core/count/index.test.d.ts.map +1 -0
- package/dist/core/index.d.ts +5 -14
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/scrollFadeIn/index.d.ts.map +1 -1
- package/dist/core/textSpin/index.d.ts.map +1 -1
- package/dist/core/textToParticle/index.d.ts.map +1 -1
- package/dist/core/typing/index.d.ts.map +1 -1
- package/dist/count/core/count/index.d.ts.map +1 -1
- package/dist/count/core/count/index.test.d.ts +2 -0
- package/dist/count/core/count/index.test.d.ts.map +1 -0
- package/dist/count/core/index.d.ts +5 -14
- package/dist/count/core/index.d.ts.map +1 -1
- package/dist/count/core/scrollFadeIn/index.d.ts.map +1 -1
- package/dist/count/core/textSpin/index.d.ts.map +1 -1
- package/dist/count/core/textToParticle/index.d.ts.map +1 -1
- package/dist/count/core/typing/index.d.ts.map +1 -1
- package/dist/count/index.d.ts +0 -9
- package/dist/count/index.d.ts.map +1 -1
- package/dist/count/index.umd.d.ts +0 -4
- package/dist/count/index.umd.d.ts.map +1 -1
- package/dist/count/react/MasonEffect.d.ts.map +1 -1
- package/dist/count/react/count/Count.d.ts.map +1 -1
- package/dist/count/react/index.d.ts +1 -4
- package/dist/count/react/index.d.ts.map +1 -1
- package/dist/count/react/scrollFadeIn/ScrollFadeIn.d.ts.map +1 -1
- package/dist/count/react/textSpin/TextSpin.d.ts.map +1 -1
- package/dist/count/react/textSpin/index.d.ts +0 -1
- package/dist/count/react/textSpin/index.d.ts.map +1 -1
- package/dist/count/react/textToParticle/TextToParticle.d.ts.map +1 -1
- package/dist/count/react/typing/Typing.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.umd.d.ts +0 -4
- package/dist/index.umd.d.ts.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/react/MasonEffect.d.ts.map +1 -1
- package/dist/react/core/count/index.test.d.ts +1 -0
- package/dist/react/core/index.d.ts +5 -14
- package/dist/react/count/Count.d.ts.map +1 -1
- package/dist/react/count/core/count/index.d.ts.map +1 -1
- package/dist/react/count/core/count/index.test.d.ts +2 -0
- package/dist/react/count/core/count/index.test.d.ts.map +1 -0
- package/dist/react/count/core/index.d.ts +5 -14
- package/dist/react/count/core/index.d.ts.map +1 -1
- package/dist/react/count/core/scrollFadeIn/index.d.ts.map +1 -1
- package/dist/react/count/core/textSpin/index.d.ts.map +1 -1
- package/dist/react/count/core/textToParticle/index.d.ts.map +1 -1
- package/dist/react/count/core/typing/index.d.ts.map +1 -1
- package/dist/react/count/index.cjs +1 -1
- package/dist/react/count/index.d.ts +0 -9
- package/dist/react/count/index.d.ts.map +1 -1
- package/dist/react/count/index.mjs +1 -1
- package/dist/react/count/index.umd.d.ts +0 -4
- package/dist/react/count/index.umd.d.ts.map +1 -1
- package/dist/react/count/react/MasonEffect.d.ts.map +1 -1
- package/dist/react/count/react/count/Count.d.ts.map +1 -1
- package/dist/react/count/react/index.d.ts +1 -4
- package/dist/react/count/react/index.d.ts.map +1 -1
- package/dist/react/count/react/scrollFadeIn/ScrollFadeIn.d.ts.map +1 -1
- package/dist/react/count/react/textSpin/TextSpin.d.ts.map +1 -1
- package/dist/react/count/react/textSpin/index.d.ts +0 -1
- package/dist/react/count/react/textSpin/index.d.ts.map +1 -1
- package/dist/react/count/react/textToParticle/TextToParticle.d.ts.map +1 -1
- package/dist/react/count/react/typing/Typing.d.ts.map +1 -1
- package/dist/react/index.d.ts +12 -2
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.umd.d.ts +0 -4
- package/dist/react/react/index.d.ts +1 -4
- package/dist/react/react/textSpin/index.d.ts +0 -1
- package/dist/react/scrollFadeIn/ScrollFadeIn.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/core/count/index.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/core/count/index.test.d.ts +2 -0
- package/dist/react/scrollFadeIn/core/count/index.test.d.ts.map +1 -0
- package/dist/react/scrollFadeIn/core/index.d.ts +5 -14
- package/dist/react/scrollFadeIn/core/index.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/core/scrollFadeIn/index.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/core/textSpin/index.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/core/textToParticle/index.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/core/typing/index.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/index.cjs +1 -1
- package/dist/react/scrollFadeIn/index.d.ts +0 -9
- package/dist/react/scrollFadeIn/index.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/index.mjs +1 -1
- package/dist/react/scrollFadeIn/index.umd.d.ts +0 -4
- package/dist/react/scrollFadeIn/index.umd.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/react/MasonEffect.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/react/count/Count.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/react/index.d.ts +1 -4
- package/dist/react/scrollFadeIn/react/index.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/react/scrollFadeIn/ScrollFadeIn.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/react/textSpin/TextSpin.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/react/textSpin/index.d.ts +0 -1
- package/dist/react/scrollFadeIn/react/textSpin/index.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/react/textToParticle/TextToParticle.d.ts.map +1 -1
- package/dist/react/scrollFadeIn/react/typing/Typing.d.ts.map +1 -1
- package/dist/react/textSpin/TextSpin.d.ts.map +1 -1
- package/dist/react/textSpin/core/count/index.d.ts.map +1 -1
- package/dist/react/textSpin/core/count/index.test.d.ts +2 -0
- package/dist/react/textSpin/core/count/index.test.d.ts.map +1 -0
- package/dist/react/textSpin/core/index.d.ts +5 -14
- package/dist/react/textSpin/core/index.d.ts.map +1 -1
- package/dist/react/textSpin/core/scrollFadeIn/index.d.ts.map +1 -1
- package/dist/react/textSpin/core/textSpin/index.d.ts.map +1 -1
- package/dist/react/textSpin/core/textToParticle/index.d.ts.map +1 -1
- package/dist/react/textSpin/core/typing/index.d.ts.map +1 -1
- package/dist/react/textSpin/index.cjs +1 -1
- package/dist/react/textSpin/index.d.ts +0 -9
- package/dist/react/textSpin/index.d.ts.map +1 -1
- package/dist/react/textSpin/index.mjs +1 -1
- package/dist/react/textSpin/index.umd.d.ts +0 -4
- package/dist/react/textSpin/index.umd.d.ts.map +1 -1
- package/dist/react/textSpin/react/MasonEffect.d.ts.map +1 -1
- package/dist/react/textSpin/react/count/Count.d.ts.map +1 -1
- package/dist/react/textSpin/react/index.d.ts +1 -4
- package/dist/react/textSpin/react/index.d.ts.map +1 -1
- package/dist/react/textSpin/react/scrollFadeIn/ScrollFadeIn.d.ts.map +1 -1
- package/dist/react/textSpin/react/textSpin/TextSpin.d.ts.map +1 -1
- package/dist/react/textSpin/react/textSpin/index.d.ts +0 -1
- package/dist/react/textSpin/react/textSpin/index.d.ts.map +1 -1
- package/dist/react/textSpin/react/textToParticle/TextToParticle.d.ts.map +1 -1
- package/dist/react/textSpin/react/typing/Typing.d.ts.map +1 -1
- package/dist/react/textToParticle/TextToParticle.d.ts.map +1 -1
- package/dist/react/textToParticle/core/count/index.d.ts.map +1 -1
- package/dist/react/textToParticle/core/count/index.test.d.ts +2 -0
- package/dist/react/textToParticle/core/count/index.test.d.ts.map +1 -0
- package/dist/react/textToParticle/core/index.d.ts +5 -14
- package/dist/react/textToParticle/core/index.d.ts.map +1 -1
- package/dist/react/textToParticle/core/scrollFadeIn/index.d.ts.map +1 -1
- package/dist/react/textToParticle/core/textSpin/index.d.ts.map +1 -1
- package/dist/react/textToParticle/core/textToParticle/index.d.ts.map +1 -1
- package/dist/react/textToParticle/core/typing/index.d.ts.map +1 -1
- package/dist/react/textToParticle/index.cjs +1 -1
- package/dist/react/textToParticle/index.d.ts +0 -9
- package/dist/react/textToParticle/index.d.ts.map +1 -1
- package/dist/react/textToParticle/index.mjs +1 -1
- package/dist/react/textToParticle/index.umd.d.ts +0 -4
- package/dist/react/textToParticle/index.umd.d.ts.map +1 -1
- package/dist/react/textToParticle/react/MasonEffect.d.ts.map +1 -1
- package/dist/react/textToParticle/react/count/Count.d.ts.map +1 -1
- package/dist/react/textToParticle/react/index.d.ts +1 -4
- package/dist/react/textToParticle/react/index.d.ts.map +1 -1
- package/dist/react/textToParticle/react/scrollFadeIn/ScrollFadeIn.d.ts.map +1 -1
- package/dist/react/textToParticle/react/textSpin/TextSpin.d.ts.map +1 -1
- package/dist/react/textToParticle/react/textSpin/index.d.ts +0 -1
- package/dist/react/textToParticle/react/textSpin/index.d.ts.map +1 -1
- package/dist/react/textToParticle/react/textToParticle/TextToParticle.d.ts.map +1 -1
- package/dist/react/textToParticle/react/typing/Typing.d.ts.map +1 -1
- package/dist/react/typing/Typing.d.ts.map +1 -1
- package/dist/react/typing/core/count/index.d.ts.map +1 -1
- package/dist/react/typing/core/count/index.test.d.ts +2 -0
- package/dist/react/typing/core/count/index.test.d.ts.map +1 -0
- package/dist/react/typing/core/index.d.ts +5 -14
- package/dist/react/typing/core/index.d.ts.map +1 -1
- package/dist/react/typing/core/scrollFadeIn/index.d.ts.map +1 -1
- package/dist/react/typing/core/textSpin/index.d.ts.map +1 -1
- package/dist/react/typing/core/textToParticle/index.d.ts.map +1 -1
- package/dist/react/typing/core/typing/index.d.ts.map +1 -1
- package/dist/react/typing/index.cjs +1 -1
- package/dist/react/typing/index.d.ts +0 -9
- package/dist/react/typing/index.d.ts.map +1 -1
- package/dist/react/typing/index.mjs +1 -1
- package/dist/react/typing/index.umd.d.ts +0 -4
- package/dist/react/typing/index.umd.d.ts.map +1 -1
- package/dist/react/typing/react/MasonEffect.d.ts.map +1 -1
- package/dist/react/typing/react/count/Count.d.ts.map +1 -1
- package/dist/react/typing/react/index.d.ts +1 -4
- package/dist/react/typing/react/index.d.ts.map +1 -1
- package/dist/react/typing/react/scrollFadeIn/ScrollFadeIn.d.ts.map +1 -1
- package/dist/react/typing/react/textSpin/TextSpin.d.ts.map +1 -1
- package/dist/react/typing/react/textSpin/index.d.ts +0 -1
- package/dist/react/typing/react/textSpin/index.d.ts.map +1 -1
- package/dist/react/typing/react/textToParticle/TextToParticle.d.ts.map +1 -1
- package/dist/react/typing/react/typing/Typing.d.ts.map +1 -1
- package/dist/scrollFadeIn/core/count/index.d.ts.map +1 -1
- package/dist/scrollFadeIn/core/count/index.test.d.ts +2 -0
- package/dist/scrollFadeIn/core/count/index.test.d.ts.map +1 -0
- package/dist/scrollFadeIn/core/index.d.ts +5 -14
- package/dist/scrollFadeIn/core/index.d.ts.map +1 -1
- package/dist/scrollFadeIn/core/scrollFadeIn/index.d.ts.map +1 -1
- package/dist/scrollFadeIn/core/textSpin/index.d.ts.map +1 -1
- package/dist/scrollFadeIn/core/textToParticle/index.d.ts.map +1 -1
- package/dist/scrollFadeIn/core/typing/index.d.ts.map +1 -1
- package/dist/scrollFadeIn/index.cjs +1 -1
- package/dist/scrollFadeIn/index.d.ts +0 -9
- package/dist/scrollFadeIn/index.d.ts.map +1 -1
- package/dist/scrollFadeIn/index.mjs +1 -1
- package/dist/scrollFadeIn/index.umd.d.ts +0 -4
- package/dist/scrollFadeIn/index.umd.d.ts.map +1 -1
- package/dist/scrollFadeIn/react/MasonEffect.d.ts.map +1 -1
- package/dist/scrollFadeIn/react/count/Count.d.ts.map +1 -1
- package/dist/scrollFadeIn/react/index.d.ts +1 -4
- package/dist/scrollFadeIn/react/index.d.ts.map +1 -1
- package/dist/scrollFadeIn/react/scrollFadeIn/ScrollFadeIn.d.ts.map +1 -1
- package/dist/scrollFadeIn/react/textSpin/TextSpin.d.ts.map +1 -1
- package/dist/scrollFadeIn/react/textSpin/index.d.ts +0 -1
- package/dist/scrollFadeIn/react/textSpin/index.d.ts.map +1 -1
- package/dist/scrollFadeIn/react/textToParticle/TextToParticle.d.ts.map +1 -1
- package/dist/scrollFadeIn/react/typing/Typing.d.ts.map +1 -1
- package/dist/svelte/index.cjs +1 -1
- package/dist/svelte/index.mjs +168 -17
- package/dist/svelte/scrollFadeIn/index.cjs +1 -1
- package/dist/svelte/scrollFadeIn/index.mjs +4 -2
- package/dist/svelte/textSpin/index.cjs +1 -1
- package/dist/svelte/textSpin/index.mjs +1 -2
- package/dist/svelte/textToParticle/index.cjs +1 -1
- package/dist/svelte/textToParticle/index.mjs +7 -5
- package/dist/svelte/typing/index.mjs +156 -8
- package/dist/textSpin/core/count/index.d.ts.map +1 -1
- package/dist/textSpin/core/count/index.test.d.ts +2 -0
- package/dist/textSpin/core/count/index.test.d.ts.map +1 -0
- package/dist/textSpin/core/index.d.ts +5 -14
- package/dist/textSpin/core/index.d.ts.map +1 -1
- package/dist/textSpin/core/scrollFadeIn/index.d.ts.map +1 -1
- package/dist/textSpin/core/textSpin/index.d.ts.map +1 -1
- package/dist/textSpin/core/textToParticle/index.d.ts.map +1 -1
- package/dist/textSpin/core/typing/index.d.ts.map +1 -1
- package/dist/textSpin/index.cjs +1 -1
- package/dist/textSpin/index.d.ts +0 -9
- package/dist/textSpin/index.d.ts.map +1 -1
- package/dist/textSpin/index.mjs +1 -1
- package/dist/textSpin/index.umd.d.ts +0 -4
- package/dist/textSpin/index.umd.d.ts.map +1 -1
- package/dist/textSpin/react/MasonEffect.d.ts.map +1 -1
- package/dist/textSpin/react/count/Count.d.ts.map +1 -1
- package/dist/textSpin/react/index.d.ts +1 -4
- package/dist/textSpin/react/index.d.ts.map +1 -1
- package/dist/textSpin/react/scrollFadeIn/ScrollFadeIn.d.ts.map +1 -1
- package/dist/textSpin/react/textSpin/TextSpin.d.ts.map +1 -1
- package/dist/textSpin/react/textSpin/index.d.ts +0 -1
- package/dist/textSpin/react/textSpin/index.d.ts.map +1 -1
- package/dist/textSpin/react/textToParticle/TextToParticle.d.ts.map +1 -1
- package/dist/textSpin/react/typing/Typing.d.ts.map +1 -1
- package/dist/textToParticle/core/count/index.d.ts.map +1 -1
- package/dist/textToParticle/core/count/index.test.d.ts +2 -0
- package/dist/textToParticle/core/count/index.test.d.ts.map +1 -0
- package/dist/textToParticle/core/index.d.ts +5 -14
- package/dist/textToParticle/core/index.d.ts.map +1 -1
- package/dist/textToParticle/core/scrollFadeIn/index.d.ts.map +1 -1
- package/dist/textToParticle/core/textSpin/index.d.ts.map +1 -1
- package/dist/textToParticle/core/textToParticle/index.d.ts.map +1 -1
- package/dist/textToParticle/core/typing/index.d.ts.map +1 -1
- package/dist/textToParticle/index.cjs +1 -1
- package/dist/textToParticle/index.d.ts +0 -9
- package/dist/textToParticle/index.d.ts.map +1 -1
- package/dist/textToParticle/index.mjs +1 -1
- package/dist/textToParticle/index.umd.d.ts +0 -4
- package/dist/textToParticle/index.umd.d.ts.map +1 -1
- package/dist/textToParticle/react/MasonEffect.d.ts.map +1 -1
- package/dist/textToParticle/react/count/Count.d.ts.map +1 -1
- package/dist/textToParticle/react/index.d.ts +1 -4
- package/dist/textToParticle/react/index.d.ts.map +1 -1
- package/dist/textToParticle/react/scrollFadeIn/ScrollFadeIn.d.ts.map +1 -1
- package/dist/textToParticle/react/textSpin/TextSpin.d.ts.map +1 -1
- package/dist/textToParticle/react/textSpin/index.d.ts +0 -1
- package/dist/textToParticle/react/textSpin/index.d.ts.map +1 -1
- package/dist/textToParticle/react/textToParticle/TextToParticle.d.ts.map +1 -1
- package/dist/textToParticle/react/typing/Typing.d.ts.map +1 -1
- package/dist/typing/core/count/index.d.ts.map +1 -1
- package/dist/typing/core/count/index.test.d.ts +2 -0
- package/dist/typing/core/count/index.test.d.ts.map +1 -0
- package/dist/typing/core/index.d.ts +5 -14
- package/dist/typing/core/index.d.ts.map +1 -1
- package/dist/typing/core/scrollFadeIn/index.d.ts.map +1 -1
- package/dist/typing/core/textSpin/index.d.ts.map +1 -1
- package/dist/typing/core/textToParticle/index.d.ts.map +1 -1
- package/dist/typing/core/typing/index.d.ts.map +1 -1
- package/dist/typing/index.d.ts +0 -9
- package/dist/typing/index.d.ts.map +1 -1
- package/dist/typing/index.umd.d.ts +0 -4
- package/dist/typing/index.umd.d.ts.map +1 -1
- package/dist/typing/react/MasonEffect.d.ts.map +1 -1
- package/dist/typing/react/count/Count.d.ts.map +1 -1
- package/dist/typing/react/index.d.ts +1 -4
- package/dist/typing/react/index.d.ts.map +1 -1
- package/dist/typing/react/scrollFadeIn/ScrollFadeIn.d.ts.map +1 -1
- package/dist/typing/react/textSpin/TextSpin.d.ts.map +1 -1
- package/dist/typing/react/textSpin/index.d.ts +0 -1
- package/dist/typing/react/textSpin/index.d.ts.map +1 -1
- package/dist/typing/react/textToParticle/TextToParticle.d.ts.map +1 -1
- package/dist/typing/react/typing/Typing.d.ts.map +1 -1
- package/dist/vue/index.cjs +1 -1
- package/dist/vue/index.mjs +172 -21
- package/dist/vue/scrollFadeIn/index.cjs +1 -1
- package/dist/vue/scrollFadeIn/index.mjs +4 -2
- package/dist/vue/textSpin/index.cjs +1 -1
- package/dist/vue/textSpin/index.mjs +1 -2
- package/dist/vue/textToParticle/index.cjs +1 -1
- package/dist/vue/textToParticle/index.mjs +7 -5
- package/dist/vue/typing/index.cjs +1 -1
- package/dist/vue/typing/index.mjs +160 -12
- package/package.json +36 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=Object.defineProperty,i=(i,e,n)=>((i,e,n)=>e in i?t(i,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[e]=n)(i,"symbol"!=typeof e?e+"":e,n);const e=require("svelte");function n(){}function s(t){return t()}function o(){return Object.create(null)}function h(t){t.forEach(s)}function a(t){return"function"==typeof t}function r(t,i){return t!=t?i==i:t!==i||t&&"object"==typeof t||"function"==typeof t}function l(t){t.parentNode&&t.parentNode.removeChild(t)}function c(t,i,e){null==e?t.removeAttribute(i):t.getAttribute(i)!==e&&t.setAttribute(i,e)}let d;function u(t){d=t}const f=[],p=[];let g=[];const m=[],v=Promise.resolve();let y=!1;function x(t){g.push(t)}const b=new Set;let w=0;function M(){if(0!==w)return;const t=d;do{try{for(;w<f.length;){const t=f[w];w++,u(t),$(t.$$)}}catch(i){throw f.length=0,w=0,i}for(u(null),f.length=0,w=0;p.length;)p.pop()();for(let t=0;t<g.length;t+=1){const i=g[t];b.has(i)||(b.add(i),i())}g.length=0}while(f.length);for(;m.length;)m.pop()();y=!1,b.clear(),u(t)}function $(t){if(null!==t.fragment){t.update(),h(t.before_update);const i=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,i),t.after_update.forEach(x)}}const C=new Set;function R(t,i){const e=t.$$;null!==e.fragment&&(!function(t){const i=[],e=[];g.forEach(n=>-1===t.indexOf(n)?i.push(n):e.push(n)),e.forEach(t=>t()),g=i}(e.after_update),h(e.on_destroy),e.fragment&&e.fragment.d(i),e.on_destroy=e.fragment=null,e.ctx=[])}function P(t,i){-1===t.$$.dirty[0]&&(f.push(t),y||(y=!0,v.then(M)),t.$$.dirty.fill(0)),t.$$.dirty[i/31|0]|=1<<i%31}function S(t,i,e,r,c,f,p=null,g=[-1]){const m=d;u(t);const v=t.$$={fragment:null,ctx:[],props:f,update:n,not_equal:c,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(m?m.$$.context:[])),callbacks:o(),dirty:g,skip_bound:!1,root:i.target||m.$$.root};p&&p(v.root);let y=!1;if(v.ctx=e?e(t,i.props||{},(i,e,...n)=>{const s=n.length?n[0]:e;return v.ctx&&c(v.ctx[i],v.ctx[i]=s)&&(!v.skip_bound&&v.bound[i]&&v.bound[i](s),y&&P(t,i)),e}):[],v.update(),y=!0,h(v.before_update),v.fragment=!!r&&r(v.ctx),i.target){if(i.hydrate){const t=($=i.target,Array.from($.childNodes));v.fragment&&v.fragment.l(t),t.forEach(l)}else v.fragment&&v.fragment.c();i.intro&&((b=t.$$.fragment)&&b.i&&(C.delete(b),b.i(w))),function(t,i,e){const{fragment:n,after_update:o}=t.$$;n&&n.m(i,e),x(()=>{const i=t.$$.on_mount.map(s).filter(a);t.$$.on_destroy?t.$$.on_destroy.push(...i):h(i),t.$$.on_mount=[]}),o.forEach(x)}(t,i.target,i.anchor),M()}var b,w,$;u(m)}class H{constructor(){i(this,"$$"),i(this,"$$set")}$destroy(){R(this,1),this.$destroy=n}$on(t,i){if(!a(i))return n;const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(i),()=>{const t=e.indexOf(i);-1!==t&&e.splice(t,1)}}$set(t){var i;this.$$set&&(i=t,0!==Object.keys(i).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class _{constructor(t,i={}){this.container=t,this.options={threshold:i.threshold??.1,rootMargin:i.rootMargin??"0px",root:i.root??null,onVisible:i.onVisible,onHidden:i.onHidden},this.intersectionObserver=null,this.visibilityChangeHandler=null,this.isVisible=!1,this.isPageVisible="undefined"==typeof document||!document.hidden,this.setupIntersectionObserver(),this.setupPageVisibility()}setupIntersectionObserver(){if("undefined"==typeof window||void 0===window.IntersectionObserver)return this.isVisible=!0,void(this.isPageVisible&&this.options.onVisible&&this.options.onVisible());this.intersectionObserver=new IntersectionObserver(t=>{for(const i of t)i.target===this.container&&(i.isIntersecting?(this.isVisible=!0,this.isPageVisible&&this.options.onVisible&&this.options.onVisible()):(this.isVisible=!1,this.options.onHidden&&this.options.onHidden()))},{threshold:this.options.threshold,rootMargin:this.options.rootMargin,root:this.options.root||null}),this.intersectionObserver.observe(this.container)}setupPageVisibility(){"undefined"!=typeof document&&(this.visibilityChangeHandler=()=>{const t=this.isPageVisible;this.isPageVisible=!document.hidden,document.hidden?this.options.onHidden&&this.options.onHidden():t!==this.isPageVisible&&this.isVisible&&this.options.onVisible&&this.options.onVisible()},document.addEventListener("visibilitychange",this.visibilityChangeHandler),document.hidden&&this.isVisible&&this.options.onHidden&&this.options.onHidden())}getIsVisible(){return this.isVisible&&this.isPageVisible}updateOptions(t){this.options={...this.options,...t},this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null),this.setupIntersectionObserver()}destroy(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null),this.visibilityChangeHandler&&"undefined"!=typeof document&&(document.removeEventListener("visibilitychange",this.visibilityChangeHandler),this.visibilityChangeHandler=null)}}function z(t,i){let e=null;return function(...n){null!==e&&clearTimeout(e),e=setTimeout(()=>{e=null,t.apply(this,n)},i)}}class E{constructor(t,i={}){if(this.container="string"==typeof t?document.querySelector(t):t,!this.container)throw new Error("Container element not found");this.config={text:i.text||"mason effect",densityStep:i.densityStep??2,maxParticles:i.maxParticles??3200,pointSize:i.pointSize??.5,ease:i.ease??.05,repelRadius:i.repelRadius??150,repelStrength:i.repelStrength??1,particleColor:i.particleColor||"#fff",fontFamily:i.fontFamily||"Inter, system-ui, Arial",fontSize:i.fontSize||null,width:i.width||null,height:i.height||null,devicePixelRatio:i.devicePixelRatio??null,onReady:i.onReady||null,onUpdate:i.onUpdate||null},this.canvas=document.createElement("canvas");const e=this.canvas.getContext("2d",{willReadFrequently:!0});if(!e)throw new Error("Canvas context not available");this.ctx=e,this.container.appendChild(this.canvas),this.canvas.style.display="block",this.offCanvas=document.createElement("canvas");const n=this.offCanvas.getContext("2d",{willReadFrequently:!0});if(!n)throw new Error("Offscreen canvas context not available");this.offCtx=n,this.W=0,this.H=0,this.DPR=this.config.devicePixelRatio||Math.min(window.devicePixelRatio||1,1.8),this.particles=[],this.mouse={x:0,y:0,down:!1},this.animationId=null,this.isRunning=!1,this.visibilityManager=null,this.debounceDelay=i.debounceDelay??150;const s=this.handleResize.bind(this);this.handleResize=z(s,this.debounceDelay),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this._debouncedMorph=z(this._morphInternal.bind(this),this.debounceDelay),this._debouncedUpdateConfig=z(this._updateConfigInternal.bind(this),this.debounceDelay),this.init()}init(){this.resize(),this.setupEventListeners(),this.setupVisibilityManager(),this.config.onReady&&this.config.onReady(this)}setupVisibilityManager(){this.visibilityManager=new _(this.container,{threshold:.1,onVisible:()=>{this.start()},onHidden:()=>{this.stop()}})}resize(){const t=this.container.getBoundingClientRect(),i=this.config.width||t.width||this.container.clientWidth||window.innerWidth,e=this.config.height||t.height||this.container.clientHeight||.7*window.innerHeight;if(i<=0||e<=0)return;this.W=Math.floor(i*this.DPR),this.H=Math.floor(e*this.DPR);const n=4096;if(this.W>n||this.H>n){const t=Math.min(n/this.W,n/this.H);this.W=Math.floor(this.W*t),this.H=Math.floor(this.H*t),this.DPR=this.DPR*t}this.canvas.width=this.W,this.canvas.height=this.H,this.canvas.style.width=i+"px",this.canvas.style.height=e+"px",this.W>0&&this.H>0&&(this.buildTargets(),this.particles.length||this.initParticles())}measureTextFit(t,i,e,n){this.offCtx.font=`400 ${t}px ${this.config.fontFamily}`;const s=i.split("\n"),o=t,h=.1*t,a=.05*t;let r=0;for(const c of s){if(0===c.length)continue;const t=this.offCtx.measureText(c).width+a*(c.length>0?c.length-1:0);r=Math.max(r,t)}const l=s.length>0?o*s.length+h*(s.length-1):o;return{width:r,height:l,fits:r<=e&&l<=n}}findOptimalFontSize(t,i,e,n){if(this.measureTextFit(n,t,i,e).fits)return n;if(n<=12)return 12;let s=12,o=n,h=12;for(;s<=o;){const n=Math.floor((s+o)/2);this.measureTextFit(n,t,i,e).fits?(h=n,s=n+1):o=n-1}return h}buildTargets(){if(this.W<=0||this.H<=0)return;const t=this.config.text;this.offCanvas.width=this.W,this.offCanvas.height=this.H,this.offCtx.clearRect(0,0,this.offCanvas.width,this.offCanvas.height);const i=Math.min(this.W,this.H),e=this.config.fontSize||Math.max(80,Math.floor(.18*i)),n=this.W-80,s=this.H-80,o=this.findOptimalFontSize(t,n,s,e);this.offCtx.fillStyle="#ffffff",this.offCtx.textAlign="center",this.offCtx.textBaseline="middle",this.offCtx.font=`400 ${o}px ${this.config.fontFamily}`;const h=t.split("\n"),a=o,r=.1*o,l=.05*o,c=h.length>0?a*h.length+r*(h.length-1):a;let d=this.H/2-c/2+a/2;for(const g of h){if(0===g.length){d+=a+r;continue}const t=g.split(""),i=this.offCtx.measureText(g).width+l*(t.length>0?t.length-1:0);let e=this.W/2-i/2;for(const n of t)this.offCtx.fillText(n,e+this.offCtx.measureText(n).width/2,d),e+=this.offCtx.measureText(n).width+l;d+=a+r}const u=Math.max(2,this.config.densityStep),f=this.offCtx.getImageData(0,0,this.W,this.H).data,p=[];for(let g=0;g<this.H;g+=u)for(let t=0;t<this.W;t+=u){const i=4*(g*this.W+t);f[i]+f[i+1]+f[i+2]>600&&p.push({x:t,y:g})}for(;p.length>this.config.maxParticles;)p.splice(Math.floor(Math.random()*p.length),1);if(this.particles.length<p.length){const t=p.length-this.particles.length;for(let i=0;i<t;i++)this.particles.push(this.makeParticle())}else this.particles.length>p.length&&(this.particles.length=p.length);for(let g=0;g<this.particles.length;g++){const t=this.particles[g],i=p[g];t.tx=i.x,t.ty=i.y}}makeParticle(){const t=Math.random()*this.W,i=Math.random()*this.H;return{x:t,y:i,vx:0,vy:0,tx:t,ty:i,initialX:t,initialY:i,j:Math.random()*Math.PI*2}}initParticles(){for(const t of this.particles){const i=Math.random()*this.W,e=Math.random()*this.H;t.x=i,t.y=e,t.vx=t.vy=0,t.initialX=i,t.initialY=e}}scatter(){for(const t of this.particles)void 0!==t.initialX&&void 0!==t.initialY?(t.tx=t.initialX,t.ty=t.initialY):(t.initialX=t.x,t.initialY=t.y,t.tx=t.initialX,t.ty=t.initialY)}morph(t){this._debouncedMorph(t)}_morphInternal(t){if(0!==this.W&&0!==this.H||this.resize(),"string"==typeof t)this.config.text=t,this.buildTargets();else if(t&&"object"==typeof t){const i=void 0!==t.text;this.config={...this.config,...t},i&&this.buildTargets()}else this.buildTargets()}update(){this.ctx.clearRect(0,0,this.W,this.H);for(const n of this.particles){let t=(n.tx-n.x)*this.config.ease,i=(n.ty-n.y)*this.config.ease;if(this.mouse.x||this.mouse.y){const e=n.x-this.mouse.x,s=n.y-this.mouse.y,o=e*e+s*s,h=this.config.repelRadius*this.DPR;if(o<h*h){const n=Math.sqrt(o)+1e-4,a=(this.mouse.down?-1:1)*this.config.repelStrength*(1-n/h);t+=e/n*a*6,i+=s/n*a*6}}n.j+=2,t+=.05*Math.cos(n.j),i+=.05*Math.sin(1.3*n.j),n.vx=(n.vx+t)*Math.random(),n.vy=(n.vy+i)*Math.random(),n.x+=n.vx,n.y+=n.vy}this.ctx.fillStyle=this.config.particleColor;const t=Math.min(this.W,this.H)/this.DPR,i=Math.max(.5,Math.min(2,t/1920)),e=this.config.pointSize*this.DPR*i;for(const n of this.particles)this.ctx.beginPath(),this.ctx.arc(n.x,n.y,e,0,2*Math.PI),this.ctx.fill();this.config.onUpdate&&this.config.onUpdate(this)}animate(){this.isRunning&&(this.update(),this.animationId=requestAnimationFrame(()=>this.animate()))}start(){this.isRunning||(this.isRunning=!0,this.animate())}stop(){this.isRunning=!1,this.animationId&&(cancelAnimationFrame(this.animationId),this.animationId=null)}setupEventListeners(){window.addEventListener("resize",this.handleResize),this.canvas.addEventListener("mousemove",this.handleMouseMove),this.canvas.addEventListener("mouseleave",this.handleMouseLeave),this.canvas.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("mouseup",this.handleMouseUp)}removeEventListeners(){window.removeEventListener("resize",this.handleResize),this.canvas.removeEventListener("mousemove",this.handleMouseMove),this.canvas.removeEventListener("mouseleave",this.handleMouseLeave),this.canvas.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("mouseup",this.handleMouseUp)}handleResize(){this.resize()}handleMouseMove(t){const i=this.canvas.getBoundingClientRect();this.mouse.x=(t.clientX-i.left)*this.DPR,this.mouse.y=(t.clientY-i.top)*this.DPR}handleMouseLeave(){this.mouse.x=this.mouse.y=0}handleMouseDown(){this.mouse.down=!0}handleMouseUp(){this.mouse.down=!1}updateConfig(t){this._debouncedUpdateConfig(t)}_updateConfigInternal(t){this.config={...this.config,...t},t.text&&this.buildTargets()}destroy(){this.stop(),this.removeEventListeners(),this.visibilityManager&&(this.visibilityManager.destroy(),this.visibilityManager=null),this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)}}function V(t){let i;return{c(){var e;e="div",i=document.createElement(e),c(i,"class",t[0]),c(i,"style",t[1])},m(e,n){!function(t,i,e){t.insertBefore(i,e||null)}(e,i,n),t[21](i)},p(t,[e]){1&e&&c(i,"class",t[0]),2&e&&c(i,"style",t[1])},i:n,o:n,d(e){e&&l(i),t[21](null)}}}function D(t,i,n){let{text:s="mason effect"}=i,{densityStep:o=2}=i,{maxParticles:h=3200}=i,{pointSize:a=.5}=i,{ease:r=.05}=i,{repelRadius:l=150}=i,{repelStrength:c=1}=i,{particleColor:d="#fff"}=i,{fontFamily:u="Inter, system-ui, Arial"}=i,{fontSize:f=null}=i,{width:g=null}=i,{height:m=null}=i,{devicePixelRatio:v=null}=i,{className:y=""}=i,{style:x={}}=i;const b=e.createEventDispatcher();let w,M=null;return e.onMount(()=>{if(!w)return;n(20,M=new E(w,{text:s,densityStep:o,maxParticles:h,pointSize:a,ease:r,repelRadius:l,repelStrength:c,particleColor:d,fontFamily:u,fontSize:f,width:g,height:m,devicePixelRatio:v,onReady:t=>{b("ready",t)},onUpdate:t=>{b("update",t)}}))}),e.onDestroy(()=>{M&&(M.destroy(),n(20,M=null))}),t.$$set=t=>{"text"in t&&n(3,s=t.text),"densityStep"in t&&n(4,o=t.densityStep),"maxParticles"in t&&n(5,h=t.maxParticles),"pointSize"in t&&n(6,a=t.pointSize),"ease"in t&&n(7,r=t.ease),"repelRadius"in t&&n(8,l=t.repelRadius),"repelStrength"in t&&n(9,c=t.repelStrength),"particleColor"in t&&n(10,d=t.particleColor),"fontFamily"in t&&n(11,u=t.fontFamily),"fontSize"in t&&n(12,f=t.fontSize),"width"in t&&n(13,g=t.width),"height"in t&&n(14,m=t.height),"devicePixelRatio"in t&&n(15,v=t.devicePixelRatio),"className"in t&&n(0,y=t.className),"style"in t&&n(1,x=t.style)},t.$$.update=()=>{1114104&t.$$.dirty&&M&&M.updateConfig({text:s,densityStep:o,maxParticles:h,pointSize:a,ease:r,repelRadius:l,repelStrength:c,particleColor:d,fontFamily:u,fontSize:f,width:g,height:m,devicePixelRatio:v})},[y,x,w,s,o,h,a,r,l,c,d,u,f,g,m,v,function(t){M&&M.morph(t)},function(){M&&M.scatter()},function(t){M&&M.updateConfig(t)},function(){M&&(M.destroy(),n(20,M=null))},M,function(t){p[t?"unshift":"push"](()=>{w=t,n(2,w)})}]}module.exports=class extends H{constructor(t){super(),S(this,t,D,V,r,{text:3,densityStep:4,maxParticles:5,pointSize:6,ease:7,repelRadius:8,repelStrength:9,particleColor:10,fontFamily:11,fontSize:12,width:13,height:14,devicePixelRatio:15,className:0,style:1,morph:16,scatter:17,updateConfig:18,destroy:19})}get morph(){return this.$$.ctx[16]}get scatter(){return this.$$.ctx[17]}get updateConfig(){return this.$$.ctx[18]}get destroy(){return this.$$.ctx[19]}};
|
|
1
|
+
"use strict";var t=Object.defineProperty,i=(i,e,n)=>((i,e,n)=>e in i?t(i,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[e]=n)(i,"symbol"!=typeof e?e+"":e,n);const e=require("svelte");function n(){}function s(t){return t()}function o(){return Object.create(null)}function h(t){t.forEach(s)}function a(t){return"function"==typeof t}function r(t,i){return t!=t?i==i:t!==i||t&&"object"==typeof t||"function"==typeof t}function l(t){t.parentNode&&t.parentNode.removeChild(t)}function c(t,i,e){null==e?t.removeAttribute(i):t.getAttribute(i)!==e&&t.setAttribute(i,e)}let d;function u(t){d=t}const f=[],p=[];let g=[];const m=[],v=Promise.resolve();let y=!1;function x(t){g.push(t)}const b=new Set;let w=0;function M(){if(0!==w)return;const t=d;do{try{for(;w<f.length;){const t=f[w];w++,u(t),$(t.$$)}}catch(i){throw f.length=0,w=0,i}for(u(null),f.length=0,w=0;p.length;)p.pop()();for(let t=0;t<g.length;t+=1){const i=g[t];b.has(i)||(b.add(i),i())}g.length=0}while(f.length);for(;m.length;)m.pop()();y=!1,b.clear(),u(t)}function $(t){if(null!==t.fragment){t.update(),h(t.before_update);const i=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,i),t.after_update.forEach(x)}}const C=new Set;function R(t,i){const e=t.$$;null!==e.fragment&&(!function(t){const i=[],e=[];g.forEach(n=>-1===t.indexOf(n)?i.push(n):e.push(n)),e.forEach(t=>t()),g=i}(e.after_update),h(e.on_destroy),e.fragment&&e.fragment.d(i),e.on_destroy=e.fragment=null,e.ctx=[])}function P(t,i){-1===t.$$.dirty[0]&&(f.push(t),y||(y=!0,v.then(M)),t.$$.dirty.fill(0)),t.$$.dirty[i/31|0]|=1<<i%31}function S(t,i,e,r,c,f,p=null,g=[-1]){const m=d;u(t);const v=t.$$={fragment:null,ctx:[],props:f,update:n,not_equal:c,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(m?m.$$.context:[])),callbacks:o(),dirty:g,skip_bound:!1,root:i.target||m.$$.root};p&&p(v.root);let y=!1;if(v.ctx=e?e(t,i.props||{},(i,e,...n)=>{const s=n.length?n[0]:e;return v.ctx&&c(v.ctx[i],v.ctx[i]=s)&&(!v.skip_bound&&v.bound[i]&&v.bound[i](s),y&&P(t,i)),e}):[],v.update(),y=!0,h(v.before_update),v.fragment=!!r&&r(v.ctx),i.target){if(i.hydrate){const t=($=i.target,Array.from($.childNodes));v.fragment&&v.fragment.l(t),t.forEach(l)}else v.fragment&&v.fragment.c();i.intro&&((b=t.$$.fragment)&&b.i&&(C.delete(b),b.i(w))),function(t,i,e){const{fragment:n,after_update:o}=t.$$;n&&n.m(i,e),x(()=>{const i=t.$$.on_mount.map(s).filter(a);t.$$.on_destroy?t.$$.on_destroy.push(...i):h(i),t.$$.on_mount=[]}),o.forEach(x)}(t,i.target,i.anchor),M()}var b,w,$;u(m)}class H{constructor(){i(this,"$$"),i(this,"$$set")}$destroy(){R(this,1),this.$destroy=n}$on(t,i){if(!a(i))return n;const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(i),()=>{const t=e.indexOf(i);-1!==t&&e.splice(t,1)}}$set(t){var i;this.$$set&&(i=t,0!==Object.keys(i).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class _{constructor(t,i={}){this.container=t,this.options={threshold:i.threshold??.1,rootMargin:i.rootMargin??"0px",root:i.root??null,onVisible:i.onVisible,onHidden:i.onHidden},this.intersectionObserver=null,this.visibilityChangeHandler=null,this.isVisible=!1,this.isPageVisible="undefined"==typeof document||!document.hidden,this.setupIntersectionObserver(),this.setupPageVisibility()}setupIntersectionObserver(){if("undefined"==typeof window||void 0===window.IntersectionObserver)return this.isVisible=!0,void(this.isPageVisible&&this.options.onVisible&&this.options.onVisible());this.intersectionObserver=new IntersectionObserver(t=>{for(const i of t)i.target===this.container&&(i.isIntersecting?(this.isVisible=!0,this.isPageVisible&&this.options.onVisible&&this.options.onVisible()):(this.isVisible=!1,this.options.onHidden&&this.options.onHidden()))},{threshold:this.options.threshold,rootMargin:this.options.rootMargin,root:this.options.root||null}),this.intersectionObserver.observe(this.container)}setupPageVisibility(){"undefined"!=typeof document&&(this.visibilityChangeHandler=()=>{const t=this.isPageVisible;this.isPageVisible=!document.hidden,document.hidden?this.options.onHidden&&this.options.onHidden():t!==this.isPageVisible&&this.isVisible&&this.options.onVisible&&this.options.onVisible()},document.addEventListener("visibilitychange",this.visibilityChangeHandler),document.hidden&&this.isVisible&&this.options.onHidden&&this.options.onHidden())}getIsVisible(){return this.isVisible&&this.isPageVisible}updateOptions(t){this.options={...this.options,...t},this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null),this.setupIntersectionObserver()}destroy(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null),this.visibilityChangeHandler&&"undefined"!=typeof document&&(document.removeEventListener("visibilitychange",this.visibilityChangeHandler),this.visibilityChangeHandler=null)}}function z(t,i){let e=null;return function(...n){null!==e&&clearTimeout(e),e=setTimeout(()=>{e=null,t.apply(this,n)},i)}}class E{constructor(t,i={}){if(this.container="string"==typeof t?document.querySelector(t):t,!this.container)throw new Error("Container element not found");this.config={text:i.text||"mason effect",densityStep:i.densityStep??2,maxParticles:i.maxParticles??3200,pointSize:i.pointSize??.5,ease:i.ease??.05,repelRadius:i.repelRadius??150,repelStrength:i.repelStrength??1,particleColor:i.particleColor||"#fff",fontFamily:i.fontFamily||"Inter, system-ui, Arial",fontSize:i.fontSize||null,width:i.width||null,height:i.height||null,devicePixelRatio:i.devicePixelRatio??null,onReady:i.onReady||null,onUpdate:i.onUpdate||null},this.canvas=document.createElement("canvas");const e=this.canvas.getContext("2d",{willReadFrequently:!0});if(!e)throw new Error("Canvas context not available");this.ctx=e,this.container.appendChild(this.canvas),this.canvas.style.display="block",this.offCanvas=document.createElement("canvas");const n=this.offCanvas.getContext("2d",{willReadFrequently:!0});if(!n)throw new Error("Offscreen canvas context not available");this.offCtx=n,this.W=0,this.H=0,this.DPR=this.config.devicePixelRatio||Math.min(window.devicePixelRatio||1,1.8),this.particles=[],this.mouse={x:0,y:0,down:!1},this.animationId=null,this.isRunning=!1,this.visibilityManager=null,this.debounceDelay=i.debounceDelay??150;const s=this.handleResize.bind(this);this.handleResize=z(s,this.debounceDelay),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this._debouncedMorph=z(this._morphInternal.bind(this),this.debounceDelay),this._debouncedUpdateConfig=z(this._updateConfigInternal.bind(this),this.debounceDelay),this.init()}init(){this.resize(),this.setupEventListeners(),this.setupVisibilityManager(),this.config.onReady&&this.config.onReady(this)}setupVisibilityManager(){this.visibilityManager=new _(this.container,{threshold:.1,onVisible:()=>{this.start()},onHidden:()=>{this.stop()}})}resize(){const t=this.container.getBoundingClientRect(),i=this.config.width||t.width||this.container.clientWidth||window.innerWidth,e=this.config.height||t.height||this.container.clientHeight||.7*window.innerHeight;if(i<=0||e<=0)return;this.W=Math.floor(i*this.DPR),this.H=Math.floor(e*this.DPR);const n=4096;if(this.W>n||this.H>n){const t=Math.min(n/this.W,n/this.H);this.W=Math.floor(this.W*t),this.H=Math.floor(this.H*t),this.DPR=this.DPR*t}this.canvas.width=this.W,this.canvas.height=this.H,this.canvas.style.width=i+"px",this.canvas.style.height=e+"px",this.W>0&&this.H>0&&(this.buildTargets(),this.particles.length||this.initParticles())}measureTextFit(t,i,e,n){this.offCtx.font=`400 ${t}px ${this.config.fontFamily}`;const s=i.split("\n"),o=t,h=.1*t,a=.05*t;let r=0;for(const c of s){if(0===c.length)continue;const t=this.offCtx.measureText(c).width+a*(c.length>0?c.length-1:0);r=Math.max(r,t)}const l=s.length>0?o*s.length+h*(s.length-1):o;return{width:r,height:l,fits:r<=e&&l<=n}}findOptimalFontSize(t,i,e,n){if(this.measureTextFit(n,t,i,e).fits)return n;if(n<=12)return 12;let s=12,o=n,h=12;for(;s<=o;){const n=Math.floor((s+o)/2);this.measureTextFit(n,t,i,e).fits?(h=n,s=n+1):o=n-1}return h}buildTargets(){if(this.W<=0||this.H<=0)return;const t=this.config.text;this.offCanvas.width=this.W,this.offCanvas.height=this.H,this.offCtx.clearRect(0,0,this.offCanvas.width,this.offCanvas.height);const i=Math.min(this.W,this.H),e=this.config.fontSize||Math.max(80,Math.floor(.18*i)),n=this.W-80,s=this.H-80,o=this.findOptimalFontSize(t,n,s,e);this.offCtx.fillStyle="#ffffff",this.offCtx.textAlign="center",this.offCtx.textBaseline="middle",this.offCtx.font=`400 ${o}px ${this.config.fontFamily}`;const h=t.split("\n"),a=o,r=.1*o,l=.05*o,c=h.length>0?a*h.length+r*(h.length-1):a;let d=this.H/2-c/2+a/2;for(const g of h){if(0===g.length){d+=a+r;continue}const t=g.split(""),i=this.offCtx.measureText(g).width+l*(t.length>0?t.length-1:0);let e=this.W/2-i/2;for(const n of t)this.offCtx.fillText(n,e+this.offCtx.measureText(n).width/2,d),e+=this.offCtx.measureText(n).width+l;d+=a+r}const u=Math.max(2,Math.round(this.config.densityStep*this.DPR)),f=this.offCtx.getImageData(0,0,this.W,this.H).data,p=[];for(let g=0;g<this.H;g+=u)for(let t=0;t<this.W;t+=u){const i=4*(g*this.W+t);f[i]+f[i+1]+f[i+2]>600&&p.push({x:t,y:g})}for(;p.length>this.config.maxParticles;)p.splice(Math.floor(Math.random()*p.length),1);if(this.particles.length<p.length){const t=p.length-this.particles.length;for(let i=0;i<t;i++)this.particles.push(this.makeParticle())}else this.particles.length>p.length&&(this.particles.length=p.length);for(let g=0;g<this.particles.length;g++){const t=this.particles[g],i=p[g];t.tx=i.x,t.ty=i.y}}makeParticle(){const t=Math.random()*this.W,i=Math.random()*this.H;return{x:t,y:i,vx:0,vy:0,tx:t,ty:i,initialX:t,initialY:i,j:Math.random()*Math.PI*2}}initParticles(){for(const t of this.particles){const i=Math.random()*this.W,e=Math.random()*this.H;t.x=i,t.y=e,t.vx=t.vy=0,t.initialX=i,t.initialY=e}}scatter(){for(const t of this.particles)void 0!==t.initialX&&void 0!==t.initialY?(t.tx=t.initialX,t.ty=t.initialY):(t.initialX=t.x,t.initialY=t.y,t.tx=t.initialX,t.ty=t.initialY)}morph(t){this._debouncedMorph(t)}_morphInternal(t){if(0!==this.W&&0!==this.H||this.resize(),"string"==typeof t)this.config.text=t,this.buildTargets();else if(t&&"object"==typeof t){const i=void 0!==t.text;this.config={...this.config,...t},i&&this.buildTargets()}else this.buildTargets()}update(){this.ctx.clearRect(0,0,this.W,this.H);for(const n of this.particles){let t=(n.tx-n.x)*this.config.ease,i=(n.ty-n.y)*this.config.ease;if(this.mouse.x||this.mouse.y){const e=n.x-this.mouse.x,s=n.y-this.mouse.y,o=e*e+s*s,h=this.config.repelRadius*this.DPR;if(o<h*h){const n=Math.sqrt(o)+1e-4,a=(this.mouse.down?-1:1)*this.config.repelStrength*(1-n/h);t+=e/n*a*6,i+=s/n*a*6}}n.j+=2,t+=.05*Math.cos(n.j),i+=.05*Math.sin(1.3*n.j),n.vx=(n.vx+t)*Math.random(),n.vy=(n.vy+i)*Math.random(),n.x+=n.vx,n.y+=n.vy}this.ctx.fillStyle=this.config.particleColor;const t=Math.min(this.W,this.H)/this.DPR,i=Math.max(.5,Math.min(3,t/300)),e=this.config.pointSize*this.DPR*i;for(const n of this.particles)this.ctx.beginPath(),this.ctx.arc(n.x,n.y,e,0,2*Math.PI),this.ctx.fill();this.config.onUpdate&&this.config.onUpdate(this)}animate(){this.isRunning&&(this.update(),this.animationId=requestAnimationFrame(()=>this.animate()))}start(){this.isRunning||(this.isRunning=!0,this.animate())}stop(){this.isRunning=!1,this.animationId&&(cancelAnimationFrame(this.animationId),this.animationId=null)}setupEventListeners(){window.addEventListener("resize",this.handleResize),this.canvas.addEventListener("mousemove",this.handleMouseMove),this.canvas.addEventListener("mouseleave",this.handleMouseLeave),this.canvas.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("mouseup",this.handleMouseUp)}removeEventListeners(){window.removeEventListener("resize",this.handleResize),this.canvas.removeEventListener("mousemove",this.handleMouseMove),this.canvas.removeEventListener("mouseleave",this.handleMouseLeave),this.canvas.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("mouseup",this.handleMouseUp)}handleResize(){this.resize()}handleMouseMove(t){const i=this.canvas.getBoundingClientRect();this.mouse.x=(t.clientX-i.left)*this.DPR,this.mouse.y=(t.clientY-i.top)*this.DPR}handleMouseLeave(){this.mouse.x=this.mouse.y=0}handleMouseDown(){this.mouse.down=!0}handleMouseUp(){this.mouse.down=!1}updateConfig(t){this._debouncedUpdateConfig(t)}_updateConfigInternal(t){this.config={...this.config,...t},t.text&&this.buildTargets()}destroy(){this.stop(),this.removeEventListeners(),this.visibilityManager&&(this.visibilityManager.destroy(),this.visibilityManager=null),this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)}}function V(t){let i;return{c(){var e;e="div",i=document.createElement(e),c(i,"class",t[0]),c(i,"style",t[1])},m(e,n){!function(t,i,e){t.insertBefore(i,e||null)}(e,i,n),t[21](i)},p(t,[e]){1&e&&c(i,"class",t[0]),2&e&&c(i,"style",t[1])},i:n,o:n,d(e){e&&l(i),t[21](null)}}}function D(t,i,n){let{text:s="mason effect"}=i,{densityStep:o=2}=i,{maxParticles:h=3200}=i,{pointSize:a=.5}=i,{ease:r=.05}=i,{repelRadius:l=150}=i,{repelStrength:c=1}=i,{particleColor:d="#fff"}=i,{fontFamily:u="Inter, system-ui, Arial"}=i,{fontSize:f=null}=i,{width:g=null}=i,{height:m=null}=i,{devicePixelRatio:v=null}=i,{className:y=""}=i,{style:x={}}=i;const b=e.createEventDispatcher();let w,M=null;return e.onMount(()=>{if(!w)return;n(20,M=new E(w,{text:s,densityStep:o,maxParticles:h,pointSize:a,ease:r,repelRadius:l,repelStrength:c,particleColor:d,fontFamily:u,fontSize:f,width:g,height:m,devicePixelRatio:v,onReady:t=>{b("ready",t)},onUpdate:t=>{b("update",t)}}))}),e.onDestroy(()=>{M&&(M.destroy(),n(20,M=null))}),t.$$set=t=>{"text"in t&&n(3,s=t.text),"densityStep"in t&&n(4,o=t.densityStep),"maxParticles"in t&&n(5,h=t.maxParticles),"pointSize"in t&&n(6,a=t.pointSize),"ease"in t&&n(7,r=t.ease),"repelRadius"in t&&n(8,l=t.repelRadius),"repelStrength"in t&&n(9,c=t.repelStrength),"particleColor"in t&&n(10,d=t.particleColor),"fontFamily"in t&&n(11,u=t.fontFamily),"fontSize"in t&&n(12,f=t.fontSize),"width"in t&&n(13,g=t.width),"height"in t&&n(14,m=t.height),"devicePixelRatio"in t&&n(15,v=t.devicePixelRatio),"className"in t&&n(0,y=t.className),"style"in t&&n(1,x=t.style)},t.$$.update=()=>{1114104&t.$$.dirty&&M&&M.updateConfig({text:s,densityStep:o,maxParticles:h,pointSize:a,ease:r,repelRadius:l,repelStrength:c,particleColor:d,fontFamily:u,fontSize:f,width:g,height:m,devicePixelRatio:v})},[y,x,w,s,o,h,a,r,l,c,d,u,f,g,m,v,function(t){M&&M.morph(t)},function(){M&&M.scatter()},function(t){M&&M.updateConfig(t)},function(){M&&(M.destroy(),n(20,M=null))},M,function(t){p[t?"unshift":"push"](()=>{w=t,n(2,w)})}]}module.exports=class extends H{constructor(t){super(),S(this,t,D,V,r,{text:3,densityStep:4,maxParticles:5,pointSize:6,ease:7,repelRadius:8,repelStrength:9,particleColor:10,fontFamily:11,fontSize:12,width:13,height:14,devicePixelRatio:15,className:0,style:1,morph:16,scatter:17,updateConfig:18,destroy:19})}get morph(){return this.$$.ctx[16]}get scatter(){return this.$$.ctx[17]}get updateConfig(){return this.$$.ctx[18]}get destroy(){return this.$$.ctx[19]}};
|
|
@@ -434,7 +434,10 @@ class TextToParticle {
|
|
|
434
434
|
this.handleMouseDown = this.handleMouseDown.bind(this);
|
|
435
435
|
this.handleMouseUp = this.handleMouseUp.bind(this);
|
|
436
436
|
this._debouncedMorph = debounce(this._morphInternal.bind(this), this.debounceDelay);
|
|
437
|
-
this._debouncedUpdateConfig = debounce(
|
|
437
|
+
this._debouncedUpdateConfig = debounce(
|
|
438
|
+
this._updateConfigInternal.bind(this),
|
|
439
|
+
this.debounceDelay
|
|
440
|
+
);
|
|
438
441
|
this.init();
|
|
439
442
|
}
|
|
440
443
|
init() {
|
|
@@ -578,7 +581,7 @@ class TextToParticle {
|
|
|
578
581
|
}
|
|
579
582
|
startY += lineHeight + lineSpacing;
|
|
580
583
|
}
|
|
581
|
-
const step = Math.max(2, this.config.densityStep);
|
|
584
|
+
const step = Math.max(2, Math.round(this.config.densityStep * this.DPR));
|
|
582
585
|
const img = this.offCtx.getImageData(0, 0, this.W, this.H).data;
|
|
583
586
|
const targets = [];
|
|
584
587
|
for (let y = 0; y < this.H; y += step) {
|
|
@@ -693,9 +696,8 @@ class TextToParticle {
|
|
|
693
696
|
p.y += p.vy;
|
|
694
697
|
}
|
|
695
698
|
this.ctx.fillStyle = this.config.particleColor;
|
|
696
|
-
const
|
|
697
|
-
const
|
|
698
|
-
const sizeRatio = Math.max(0.5, Math.min(2, currentSize / baseSize));
|
|
699
|
+
const cssMin = Math.min(this.W, this.H) / this.DPR;
|
|
700
|
+
const sizeRatio = Math.max(0.5, Math.min(3, cssMin / 300));
|
|
699
701
|
const r = this.config.pointSize * this.DPR * sizeRatio;
|
|
700
702
|
for (const p of this.particles) {
|
|
701
703
|
this.ctx.beginPath();
|
|
@@ -390,9 +390,80 @@ function decomposeHangul(char) {
|
|
|
390
390
|
const initial = Math.floor(base / (21 * 28));
|
|
391
391
|
const medial = Math.floor(base % (21 * 28) / 28);
|
|
392
392
|
const final = base % 28;
|
|
393
|
-
const initialChars = [
|
|
394
|
-
|
|
395
|
-
|
|
393
|
+
const initialChars = [
|
|
394
|
+
"ㄱ",
|
|
395
|
+
"ㄲ",
|
|
396
|
+
"ㄴ",
|
|
397
|
+
"ㄷ",
|
|
398
|
+
"ㄸ",
|
|
399
|
+
"ㄹ",
|
|
400
|
+
"ㅁ",
|
|
401
|
+
"ㅂ",
|
|
402
|
+
"ㅃ",
|
|
403
|
+
"ㅅ",
|
|
404
|
+
"ㅆ",
|
|
405
|
+
"ㅇ",
|
|
406
|
+
"ㅈ",
|
|
407
|
+
"ㅉ",
|
|
408
|
+
"ㅊ",
|
|
409
|
+
"ㅋ",
|
|
410
|
+
"ㅌ",
|
|
411
|
+
"ㅍ",
|
|
412
|
+
"ㅎ"
|
|
413
|
+
];
|
|
414
|
+
const medialChars = [
|
|
415
|
+
"ㅏ",
|
|
416
|
+
"ㅐ",
|
|
417
|
+
"ㅑ",
|
|
418
|
+
"ㅒ",
|
|
419
|
+
"ㅓ",
|
|
420
|
+
"ㅔ",
|
|
421
|
+
"ㅕ",
|
|
422
|
+
"ㅖ",
|
|
423
|
+
"ㅗ",
|
|
424
|
+
"ㅘ",
|
|
425
|
+
"ㅙ",
|
|
426
|
+
"ㅚ",
|
|
427
|
+
"ㅛ",
|
|
428
|
+
"ㅜ",
|
|
429
|
+
"ㅝ",
|
|
430
|
+
"ㅞ",
|
|
431
|
+
"ㅟ",
|
|
432
|
+
"ㅠ",
|
|
433
|
+
"ㅡ",
|
|
434
|
+
"ㅢ",
|
|
435
|
+
"ㅣ"
|
|
436
|
+
];
|
|
437
|
+
const finalChars = [
|
|
438
|
+
"",
|
|
439
|
+
"ㄱ",
|
|
440
|
+
"ㄲ",
|
|
441
|
+
"ㄳ",
|
|
442
|
+
"ㄴ",
|
|
443
|
+
"ㄵ",
|
|
444
|
+
"ㄶ",
|
|
445
|
+
"ㄷ",
|
|
446
|
+
"ㄹ",
|
|
447
|
+
"ㄺ",
|
|
448
|
+
"ㄻ",
|
|
449
|
+
"ㄼ",
|
|
450
|
+
"ㄽ",
|
|
451
|
+
"ㄾ",
|
|
452
|
+
"ㄿ",
|
|
453
|
+
"ㅀ",
|
|
454
|
+
"ㅁ",
|
|
455
|
+
"ㅂ",
|
|
456
|
+
"ㅄ",
|
|
457
|
+
"ㅅ",
|
|
458
|
+
"ㅆ",
|
|
459
|
+
"ㅇ",
|
|
460
|
+
"ㅈ",
|
|
461
|
+
"ㅊ",
|
|
462
|
+
"ㅋ",
|
|
463
|
+
"ㅌ",
|
|
464
|
+
"ㅍ",
|
|
465
|
+
"ㅎ"
|
|
466
|
+
];
|
|
396
467
|
const result = [];
|
|
397
468
|
result.push(initialChars[initial]);
|
|
398
469
|
result.push(medialChars[medial]);
|
|
@@ -402,9 +473,80 @@ function decomposeHangul(char) {
|
|
|
402
473
|
return result;
|
|
403
474
|
}
|
|
404
475
|
function composeHangul(initial, medial, final) {
|
|
405
|
-
const initialChars = [
|
|
406
|
-
|
|
407
|
-
|
|
476
|
+
const initialChars = [
|
|
477
|
+
"ㄱ",
|
|
478
|
+
"ㄲ",
|
|
479
|
+
"ㄴ",
|
|
480
|
+
"ㄷ",
|
|
481
|
+
"ㄸ",
|
|
482
|
+
"ㄹ",
|
|
483
|
+
"ㅁ",
|
|
484
|
+
"ㅂ",
|
|
485
|
+
"ㅃ",
|
|
486
|
+
"ㅅ",
|
|
487
|
+
"ㅆ",
|
|
488
|
+
"ㅇ",
|
|
489
|
+
"ㅈ",
|
|
490
|
+
"ㅉ",
|
|
491
|
+
"ㅊ",
|
|
492
|
+
"ㅋ",
|
|
493
|
+
"ㅌ",
|
|
494
|
+
"ㅍ",
|
|
495
|
+
"ㅎ"
|
|
496
|
+
];
|
|
497
|
+
const medialChars = [
|
|
498
|
+
"ㅏ",
|
|
499
|
+
"ㅐ",
|
|
500
|
+
"ㅑ",
|
|
501
|
+
"ㅒ",
|
|
502
|
+
"ㅓ",
|
|
503
|
+
"ㅔ",
|
|
504
|
+
"ㅕ",
|
|
505
|
+
"ㅖ",
|
|
506
|
+
"ㅗ",
|
|
507
|
+
"ㅘ",
|
|
508
|
+
"ㅙ",
|
|
509
|
+
"ㅚ",
|
|
510
|
+
"ㅛ",
|
|
511
|
+
"ㅜ",
|
|
512
|
+
"ㅝ",
|
|
513
|
+
"ㅞ",
|
|
514
|
+
"ㅟ",
|
|
515
|
+
"ㅠ",
|
|
516
|
+
"ㅡ",
|
|
517
|
+
"ㅢ",
|
|
518
|
+
"ㅣ"
|
|
519
|
+
];
|
|
520
|
+
const finalChars = [
|
|
521
|
+
"",
|
|
522
|
+
"ㄱ",
|
|
523
|
+
"ㄲ",
|
|
524
|
+
"ㄳ",
|
|
525
|
+
"ㄴ",
|
|
526
|
+
"ㄵ",
|
|
527
|
+
"ㄶ",
|
|
528
|
+
"ㄷ",
|
|
529
|
+
"ㄹ",
|
|
530
|
+
"ㄺ",
|
|
531
|
+
"ㄻ",
|
|
532
|
+
"ㄼ",
|
|
533
|
+
"ㄽ",
|
|
534
|
+
"ㄾ",
|
|
535
|
+
"ㄿ",
|
|
536
|
+
"ㅀ",
|
|
537
|
+
"ㅁ",
|
|
538
|
+
"ㅂ",
|
|
539
|
+
"ㅄ",
|
|
540
|
+
"ㅅ",
|
|
541
|
+
"ㅆ",
|
|
542
|
+
"ㅇ",
|
|
543
|
+
"ㅈ",
|
|
544
|
+
"ㅊ",
|
|
545
|
+
"ㅋ",
|
|
546
|
+
"ㅌ",
|
|
547
|
+
"ㅍ",
|
|
548
|
+
"ㅎ"
|
|
549
|
+
];
|
|
408
550
|
const initialIndex = initialChars.indexOf(initial);
|
|
409
551
|
const medialIndex = medialChars.indexOf(medial);
|
|
410
552
|
const finalIndex = final ? finalChars.indexOf(final) : 0;
|
|
@@ -587,10 +729,16 @@ class Typing {
|
|
|
587
729
|
this.updateDisplay("");
|
|
588
730
|
}
|
|
589
731
|
updateDisplay(text) {
|
|
590
|
-
const textWithoutCursor = text.replace(
|
|
732
|
+
const textWithoutCursor = text.replace(
|
|
733
|
+
new RegExp(this.escapeHtml(this.config.cursorChar) + "$"),
|
|
734
|
+
""
|
|
735
|
+
);
|
|
591
736
|
const hasCursor = text.endsWith(this.config.cursorChar);
|
|
592
737
|
const previousTextContent = this.container.textContent || "";
|
|
593
|
-
const previousTextWithoutCursor = previousTextContent.replace(
|
|
738
|
+
const previousTextWithoutCursor = previousTextContent.replace(
|
|
739
|
+
new RegExp(this.config.cursorChar + "$"),
|
|
740
|
+
""
|
|
741
|
+
);
|
|
594
742
|
let html = "";
|
|
595
743
|
for (let i = 0; i < textWithoutCursor.length; i++) {
|
|
596
744
|
const char = textWithoutCursor[i];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/count/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,WAAW,YAAY;IAC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MAAM,GAAG,IAAI;IAKlC,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAMnC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI;IA2BpD,QAAQ,IAAI,MAAM;IAKlB,OAAO,IAAI,IAAI;CAOhB;AAGD,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../../src/core/count/index.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,22 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
* MasonEffect Core - 모든 이펙트를 export하는 메인 파일
|
|
3
|
-
*
|
|
4
|
-
* 주의: tree-shaking을 위해 각 이펙트를 직접 import하는 것을 권장합니다:
|
|
5
|
-
* - import { TextToParticle } from 'masoneffect/textToParticle'
|
|
6
|
-
* - import { Count } from 'masoneffect/count'
|
|
7
|
-
*
|
|
8
|
-
* 이 파일은 하위 호환성을 위해 제공됩니다.
|
|
9
|
-
*/
|
|
10
|
-
export { TextToParticle, default as TextToParticleDefault } from './textToParticle/index.js';
|
|
1
|
+
export { TextToParticle } from './textToParticle/index.js';
|
|
11
2
|
export type { TextToParticleOptions, Particle } from './textToParticle/index.js';
|
|
12
|
-
export { Count
|
|
3
|
+
export { Count } from './count/index.js';
|
|
13
4
|
export type { CountOptions } from './count/index.js';
|
|
14
5
|
export { easingFunctions } from './count/index.js';
|
|
15
|
-
export { Typing
|
|
6
|
+
export { Typing } from './typing/index.js';
|
|
16
7
|
export type { TypingOptions } from './typing/index.js';
|
|
17
|
-
export { ScrollFadeIn
|
|
8
|
+
export { ScrollFadeIn } from './scrollFadeIn/index.js';
|
|
18
9
|
export type { ScrollFadeInOptions } from './scrollFadeIn/index.js';
|
|
19
|
-
export { TextSpin
|
|
10
|
+
export { TextSpin } from './textSpin/index.js';
|
|
20
11
|
export type { TextSpinOptions } from './textSpin/index.js';
|
|
21
12
|
export { TextToParticle as MasonEffect } from './textToParticle/index.js';
|
|
22
13
|
export type { TextToParticleOptions as MasonEffectOptions } from './textToParticle/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,YAAY,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAEjF,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,cAAc,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC1E,YAAY,EAAE,qBAAqB,IAAI,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE7F,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/scrollFadeIn/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,WAAW,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index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/typing/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AA0OD,qBAAa,MAAM;IACjB,SAAS,EAAE,WAAW,CAAC;IACvB,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,YAAY,CAAC,CAAC,GAAG;QACjE,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;QACpC,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;KACzC,CAAC;IACF,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,cAAc,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACzE,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,GAAG,IAAI,CAAC;IAChD,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC5C,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;gBAET,SAAS,EAAE,WAAW,GAAG,MAAM,EAAE,OAAO,EAAE,aAAa;IA8CnE,IAAI,IAAI,IAAI;IAWZ,OAAO,CAAC,YAAY;IAuBpB,sBAAsB,IAAI,IAAI;IAmB9B,OAAO,CAAC,kBAAkB;IAgD1B,KAAK,IAAI,IAAI;IASb,QAAQ,IAAI,IAAI;IAuChB,IAAI,IAAI,IAAI;IAQZ,KAAK,IAAI,IAAI;IAQb,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAuDjC,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAa9B,OAAO,IAAI,IAAI;CAOhB;AAGD,eAAe,MAAM,CAAC"}
|
package/dist/textSpin/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"t",{value:!0});class t{constructor(t,s={}){this.container=t,this.options={threshold:s.threshold??.1,rootMargin:s.rootMargin??"0px",root:s.root??null,onVisible:s.onVisible,onHidden:s.onHidden},this.intersectionObserver=null,this.visibilityChangeHandler=null,this.isVisible=!1,this.isPageVisible="undefined"==typeof document||!document.hidden,this.setupIntersectionObserver(),this.setupPageVisibility()}setupIntersectionObserver(){if("undefined"==typeof window||void 0===window.IntersectionObserver)return this.isVisible=!0,void(this.isPageVisible&&this.options.onVisible&&this.options.onVisible());this.intersectionObserver=new IntersectionObserver(t=>{for(const s of t)s.target===this.container&&(s.isIntersecting?(this.isVisible=!0,this.isPageVisible&&this.options.onVisible&&this.options.onVisible()):(this.isVisible=!1,this.options.onHidden&&this.options.onHidden()))},{threshold:this.options.threshold,rootMargin:this.options.rootMargin,root:this.options.root||null}),this.intersectionObserver.observe(this.container)}setupPageVisibility(){"undefined"!=typeof document&&(this.visibilityChangeHandler=()=>{const t=this.isPageVisible;this.isPageVisible=!document.hidden,document.hidden?this.options.onHidden&&this.options.onHidden():t!==this.isPageVisible&&this.isVisible&&this.options.onVisible&&this.options.onVisible()},document.addEventListener("visibilitychange",this.visibilityChangeHandler),document.hidden&&this.isVisible&&this.options.onHidden&&this.options.onHidden())}getIsVisible(){return this.isVisible&&this.isPageVisible}updateOptions(t){this.options={...this.options,...t},this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null),this.setupIntersectionObserver()}destroy(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null),this.visibilityChangeHandler&&"undefined"!=typeof document&&(document.removeEventListener("visibilitychange",this.visibilityChangeHandler),this.visibilityChangeHandler=null)}}class s{constructor(t,s){if(this.container="string"==typeof t?document.querySelector(t):t,!this.container)throw new Error("Container element not found");if(!s.text)throw new Error("Text is required");this.config={text:s.text,delay:s.delay??.2,duration:s.duration??.6,randomDelay:s.randomDelay??2,threshold:s.threshold??.1,rootMargin:s.rootMargin??"0px",root:s.root??null,triggerOnce:s.triggerOnce??!1,enabled:s.enabled??!0,onStart:s.onStart||null,onComplete:s.onComplete||null},this.visibilityManager=null,this.textElements=[],this.randomPoints=[],this.hasTriggered=!1,this.isActive=!1,this.init()}init(){this.injectStyles(),this.createTextStructure(),this.setupVisibilityManager()}injectStyles(){if(document.getElementById("masoneffect-textspin-styles"))return;const t=document.createElement("style");t.id="masoneffect-textspin-styles",t.textContent="\n .masoneffect-textspin {\n display: inline-block;\n }\n .masoneffect-textspin-char {\n display: inline-block;\n opacity: 0;\n transform: rotateY(90deg);\n }\n .masoneffect-textspin-char.active {\n opacity: 1;\n transform: rotateY(0deg);\n }\n .masoneffect-textspin-char.space {\n width: 0.25em;\n }\n ",document.head.appendChild(t)}createTextStructure(){this.container.innerHTML="",this.textElements=[],this.randomPoints=[];const t=this.config.text.split("");t.forEach(()=>{this.randomPoints.push(Math.random())}),t.forEach(
|
|
1
|
+
Object.defineProperty(exports,"t",{value:!0});class t{constructor(t,s={}){this.container=t,this.options={threshold:s.threshold??.1,rootMargin:s.rootMargin??"0px",root:s.root??null,onVisible:s.onVisible,onHidden:s.onHidden},this.intersectionObserver=null,this.visibilityChangeHandler=null,this.isVisible=!1,this.isPageVisible="undefined"==typeof document||!document.hidden,this.setupIntersectionObserver(),this.setupPageVisibility()}setupIntersectionObserver(){if("undefined"==typeof window||void 0===window.IntersectionObserver)return this.isVisible=!0,void(this.isPageVisible&&this.options.onVisible&&this.options.onVisible());this.intersectionObserver=new IntersectionObserver(t=>{for(const s of t)s.target===this.container&&(s.isIntersecting?(this.isVisible=!0,this.isPageVisible&&this.options.onVisible&&this.options.onVisible()):(this.isVisible=!1,this.options.onHidden&&this.options.onHidden()))},{threshold:this.options.threshold,rootMargin:this.options.rootMargin,root:this.options.root||null}),this.intersectionObserver.observe(this.container)}setupPageVisibility(){"undefined"!=typeof document&&(this.visibilityChangeHandler=()=>{const t=this.isPageVisible;this.isPageVisible=!document.hidden,document.hidden?this.options.onHidden&&this.options.onHidden():t!==this.isPageVisible&&this.isVisible&&this.options.onVisible&&this.options.onVisible()},document.addEventListener("visibilitychange",this.visibilityChangeHandler),document.hidden&&this.isVisible&&this.options.onHidden&&this.options.onHidden())}getIsVisible(){return this.isVisible&&this.isPageVisible}updateOptions(t){this.options={...this.options,...t},this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null),this.setupIntersectionObserver()}destroy(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null),this.visibilityChangeHandler&&"undefined"!=typeof document&&(document.removeEventListener("visibilitychange",this.visibilityChangeHandler),this.visibilityChangeHandler=null)}}class s{constructor(t,s){if(this.container="string"==typeof t?document.querySelector(t):t,!this.container)throw new Error("Container element not found");if(!s.text)throw new Error("Text is required");this.config={text:s.text,delay:s.delay??.2,duration:s.duration??.6,randomDelay:s.randomDelay??2,threshold:s.threshold??.1,rootMargin:s.rootMargin??"0px",root:s.root??null,triggerOnce:s.triggerOnce??!1,enabled:s.enabled??!0,onStart:s.onStart||null,onComplete:s.onComplete||null},this.visibilityManager=null,this.textElements=[],this.randomPoints=[],this.hasTriggered=!1,this.isActive=!1,this.init()}init(){this.injectStyles(),this.createTextStructure(),this.setupVisibilityManager()}injectStyles(){if(document.getElementById("masoneffect-textspin-styles"))return;const t=document.createElement("style");t.id="masoneffect-textspin-styles",t.textContent="\n .masoneffect-textspin {\n display: inline-block;\n }\n .masoneffect-textspin-char {\n display: inline-block;\n opacity: 0;\n transform: rotateY(90deg);\n }\n .masoneffect-textspin-char.active {\n opacity: 1;\n transform: rotateY(0deg);\n }\n .masoneffect-textspin-char.space {\n width: 0.25em;\n }\n ",document.head.appendChild(t)}createTextStructure(){this.container.innerHTML="",this.textElements=[],this.randomPoints=[];const t=this.config.text.split("");t.forEach(()=>{this.randomPoints.push(Math.random())}),t.forEach(t=>{const s=document.createElement("span");s.className="masoneffect-textspin-char",s.style.transition=`opacity ${this.config.duration}s ease-out, transform ${this.config.duration}s ease-out`," "===t?(s.classList.add("space"),s.innerHTML=" "):s.textContent=t,this.container.appendChild(s),this.textElements.push(s)}),this.container.classList.add("masoneffect-textspin")}setupVisibilityManager(){this.visibilityManager=new t(this.container,{threshold:this.config.threshold,rootMargin:this.config.rootMargin,root:this.config.root,onVisible:()=>{this.config.enabled&&(this.config.triggerOnce&&this.hasTriggered||(this.hasTriggered=!0,this.start()))},onHidden:()=>{this.config.enabled&&(this.stop(),this.config.triggerOnce||(this.hasTriggered=!1))}})}start(){if(this.isActive)return;this.isActive=!0,this.config.onStart&&this.config.onStart(),this.textElements.forEach((t,s)=>{const i=this.config.delay+this.randomPoints[s]*this.config.randomDelay;t.style.transitionDelay=`${i}s`,requestAnimationFrame(()=>{t.classList.add("active")})});const t=this.config.delay+this.config.randomDelay+this.config.duration;setTimeout(()=>{this.config.onComplete&&this.config.onComplete()},1e3*t)}stop(){this.isActive&&(this.isActive=!1,this.textElements.forEach(t=>{t.classList.remove("active"),t.style.transitionDelay=""}))}reset(){this.stop(),this.hasTriggered=!1}updateText(t){this.config.text=t,this.createTextStructure(),this.isActive&&this.start()}updateTransitions(){this.textElements.forEach(t=>{t.style.transition=`opacity ${this.config.duration}s ease-out, transform ${this.config.duration}s ease-out`})}updateConfig(t){const s=this.isActive,i=void 0!==t.enabled&&t.enabled!==this.config.enabled;(i&&!1===t.enabled||s)&&this.stop(),this.config={...this.config,...t,text:t.text??this.config.text,onStart:t.onStart??this.config.onStart,onComplete:t.onComplete??this.config.onComplete},void 0!==t.text?this.createTextStructure():void 0!==t.duration&&this.updateTransitions(),void 0===t.threshold&&void 0===t.rootMargin&&void 0===t.root||(this.visibilityManager&&(this.visibilityManager.destroy(),this.visibilityManager=null),this.setupVisibilityManager()),this.config.enabled&&(s||i&&!0===t.enabled)&&this.visibilityManager?.getIsVisible()&&this.start()}destroy(){this.stop(),this.visibilityManager&&(this.visibilityManager.destroy(),this.visibilityManager=null),this.container.innerHTML="",this.container.classList.remove("masoneffect-textspin")}}exports.TextSpin=s,exports.default=s;
|
package/dist/textSpin/index.d.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MasonEffect - 메인 엔트리 포인트
|
|
3
|
-
*
|
|
4
|
-
* 주의: tree-shaking을 위해 각 이펙트를 직접 import하는 것을 권장합니다:
|
|
5
|
-
* - import { TextToParticle } from 'masoneffect/textToParticle'
|
|
6
|
-
* - import { Count } from 'masoneffect/count'
|
|
7
|
-
*
|
|
8
|
-
* 이 파일은 하위 호환성을 위해 제공됩니다.
|
|
9
|
-
*/
|
|
10
1
|
export { TextToParticle, MasonEffect } from './core/index.js';
|
|
11
2
|
export type { TextToParticleOptions, MasonEffectOptions, Particle } from './core/index.js';
|
|
12
3
|
export { Count } from './core/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9D,YAAY,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3F,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/textSpin/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
class t{constructor(t,s={}){this.container=t,this.options={threshold:s.threshold??.1,rootMargin:s.rootMargin??"0px",root:s.root??null,onVisible:s.onVisible,onHidden:s.onHidden},this.intersectionObserver=null,this.visibilityChangeHandler=null,this.isVisible=!1,this.isPageVisible="undefined"==typeof document||!document.hidden,this.setupIntersectionObserver(),this.setupPageVisibility()}setupIntersectionObserver(){if("undefined"==typeof window||void 0===window.IntersectionObserver)return this.isVisible=!0,void(this.isPageVisible&&this.options.onVisible&&this.options.onVisible());this.intersectionObserver=new IntersectionObserver(t=>{for(const s of t)s.target===this.container&&(s.isIntersecting?(this.isVisible=!0,this.isPageVisible&&this.options.onVisible&&this.options.onVisible()):(this.isVisible=!1,this.options.onHidden&&this.options.onHidden()))},{threshold:this.options.threshold,rootMargin:this.options.rootMargin,root:this.options.root||null}),this.intersectionObserver.observe(this.container)}setupPageVisibility(){"undefined"!=typeof document&&(this.visibilityChangeHandler=()=>{const t=this.isPageVisible;this.isPageVisible=!document.hidden,document.hidden?this.options.onHidden&&this.options.onHidden():t!==this.isPageVisible&&this.isVisible&&this.options.onVisible&&this.options.onVisible()},document.addEventListener("visibilitychange",this.visibilityChangeHandler),document.hidden&&this.isVisible&&this.options.onHidden&&this.options.onHidden())}getIsVisible(){return this.isVisible&&this.isPageVisible}updateOptions(t){this.options={...this.options,...t},this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null),this.setupIntersectionObserver()}destroy(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null),this.visibilityChangeHandler&&"undefined"!=typeof document&&(document.removeEventListener("visibilitychange",this.visibilityChangeHandler),this.visibilityChangeHandler=null)}}class s{constructor(t,s){if(this.container="string"==typeof t?document.querySelector(t):t,!this.container)throw new Error("Container element not found");if(!s.text)throw new Error("Text is required");this.config={text:s.text,delay:s.delay??.2,duration:s.duration??.6,randomDelay:s.randomDelay??2,threshold:s.threshold??.1,rootMargin:s.rootMargin??"0px",root:s.root??null,triggerOnce:s.triggerOnce??!1,enabled:s.enabled??!0,onStart:s.onStart||null,onComplete:s.onComplete||null},this.visibilityManager=null,this.textElements=[],this.randomPoints=[],this.hasTriggered=!1,this.isActive=!1,this.init()}init(){this.injectStyles(),this.createTextStructure(),this.setupVisibilityManager()}injectStyles(){if(document.getElementById("masoneffect-textspin-styles"))return;const t=document.createElement("style");t.id="masoneffect-textspin-styles",t.textContent="\n .masoneffect-textspin {\n display: inline-block;\n }\n .masoneffect-textspin-char {\n display: inline-block;\n opacity: 0;\n transform: rotateY(90deg);\n }\n .masoneffect-textspin-char.active {\n opacity: 1;\n transform: rotateY(0deg);\n }\n .masoneffect-textspin-char.space {\n width: 0.25em;\n }\n ",document.head.appendChild(t)}createTextStructure(){this.container.innerHTML="",this.textElements=[],this.randomPoints=[];const t=this.config.text.split("");t.forEach(()=>{this.randomPoints.push(Math.random())}),t.forEach(
|
|
1
|
+
class t{constructor(t,s={}){this.container=t,this.options={threshold:s.threshold??.1,rootMargin:s.rootMargin??"0px",root:s.root??null,onVisible:s.onVisible,onHidden:s.onHidden},this.intersectionObserver=null,this.visibilityChangeHandler=null,this.isVisible=!1,this.isPageVisible="undefined"==typeof document||!document.hidden,this.setupIntersectionObserver(),this.setupPageVisibility()}setupIntersectionObserver(){if("undefined"==typeof window||void 0===window.IntersectionObserver)return this.isVisible=!0,void(this.isPageVisible&&this.options.onVisible&&this.options.onVisible());this.intersectionObserver=new IntersectionObserver(t=>{for(const s of t)s.target===this.container&&(s.isIntersecting?(this.isVisible=!0,this.isPageVisible&&this.options.onVisible&&this.options.onVisible()):(this.isVisible=!1,this.options.onHidden&&this.options.onHidden()))},{threshold:this.options.threshold,rootMargin:this.options.rootMargin,root:this.options.root||null}),this.intersectionObserver.observe(this.container)}setupPageVisibility(){"undefined"!=typeof document&&(this.visibilityChangeHandler=()=>{const t=this.isPageVisible;this.isPageVisible=!document.hidden,document.hidden?this.options.onHidden&&this.options.onHidden():t!==this.isPageVisible&&this.isVisible&&this.options.onVisible&&this.options.onVisible()},document.addEventListener("visibilitychange",this.visibilityChangeHandler),document.hidden&&this.isVisible&&this.options.onHidden&&this.options.onHidden())}getIsVisible(){return this.isVisible&&this.isPageVisible}updateOptions(t){this.options={...this.options,...t},this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null),this.setupIntersectionObserver()}destroy(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null),this.visibilityChangeHandler&&"undefined"!=typeof document&&(document.removeEventListener("visibilitychange",this.visibilityChangeHandler),this.visibilityChangeHandler=null)}}class s{constructor(t,s){if(this.container="string"==typeof t?document.querySelector(t):t,!this.container)throw new Error("Container element not found");if(!s.text)throw new Error("Text is required");this.config={text:s.text,delay:s.delay??.2,duration:s.duration??.6,randomDelay:s.randomDelay??2,threshold:s.threshold??.1,rootMargin:s.rootMargin??"0px",root:s.root??null,triggerOnce:s.triggerOnce??!1,enabled:s.enabled??!0,onStart:s.onStart||null,onComplete:s.onComplete||null},this.visibilityManager=null,this.textElements=[],this.randomPoints=[],this.hasTriggered=!1,this.isActive=!1,this.init()}init(){this.injectStyles(),this.createTextStructure(),this.setupVisibilityManager()}injectStyles(){if(document.getElementById("masoneffect-textspin-styles"))return;const t=document.createElement("style");t.id="masoneffect-textspin-styles",t.textContent="\n .masoneffect-textspin {\n display: inline-block;\n }\n .masoneffect-textspin-char {\n display: inline-block;\n opacity: 0;\n transform: rotateY(90deg);\n }\n .masoneffect-textspin-char.active {\n opacity: 1;\n transform: rotateY(0deg);\n }\n .masoneffect-textspin-char.space {\n width: 0.25em;\n }\n ",document.head.appendChild(t)}createTextStructure(){this.container.innerHTML="",this.textElements=[],this.randomPoints=[];const t=this.config.text.split("");t.forEach(()=>{this.randomPoints.push(Math.random())}),t.forEach(t=>{const s=document.createElement("span");s.className="masoneffect-textspin-char",s.style.transition=`opacity ${this.config.duration}s ease-out, transform ${this.config.duration}s ease-out`," "===t?(s.classList.add("space"),s.innerHTML=" "):s.textContent=t,this.container.appendChild(s),this.textElements.push(s)}),this.container.classList.add("masoneffect-textspin")}setupVisibilityManager(){this.visibilityManager=new t(this.container,{threshold:this.config.threshold,rootMargin:this.config.rootMargin,root:this.config.root,onVisible:()=>{this.config.enabled&&(this.config.triggerOnce&&this.hasTriggered||(this.hasTriggered=!0,this.start()))},onHidden:()=>{this.config.enabled&&(this.stop(),this.config.triggerOnce||(this.hasTriggered=!1))}})}start(){if(this.isActive)return;this.isActive=!0,this.config.onStart&&this.config.onStart(),this.textElements.forEach((t,s)=>{const i=this.config.delay+this.randomPoints[s]*this.config.randomDelay;t.style.transitionDelay=`${i}s`,requestAnimationFrame(()=>{t.classList.add("active")})});const t=this.config.delay+this.config.randomDelay+this.config.duration;setTimeout(()=>{this.config.onComplete&&this.config.onComplete()},1e3*t)}stop(){this.isActive&&(this.isActive=!1,this.textElements.forEach(t=>{t.classList.remove("active"),t.style.transitionDelay=""}))}reset(){this.stop(),this.hasTriggered=!1}updateText(t){this.config.text=t,this.createTextStructure(),this.isActive&&this.start()}updateTransitions(){this.textElements.forEach(t=>{t.style.transition=`opacity ${this.config.duration}s ease-out, transform ${this.config.duration}s ease-out`})}updateConfig(t){const s=this.isActive,i=void 0!==t.enabled&&t.enabled!==this.config.enabled;(i&&!1===t.enabled||s)&&this.stop(),this.config={...this.config,...t,text:t.text??this.config.text,onStart:t.onStart??this.config.onStart,onComplete:t.onComplete??this.config.onComplete},void 0!==t.text?this.createTextStructure():void 0!==t.duration&&this.updateTransitions(),void 0===t.threshold&&void 0===t.rootMargin&&void 0===t.root||(this.visibilityManager&&(this.visibilityManager.destroy(),this.visibilityManager=null),this.setupVisibilityManager()),this.config.enabled&&(s||i&&!0===t.enabled)&&this.visibilityManager?.getIsVisible()&&this.start()}destroy(){this.stop(),this.visibilityManager&&(this.visibilityManager.destroy(),this.visibilityManager=null),this.container.innerHTML="",this.container.classList.remove("masoneffect-textspin")}}export{s as TextSpin,s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.d.ts","sourceRoot":"","sources":["../../src/index.umd.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.umd.d.ts","sourceRoot":"","sources":["../../src/index.umd.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAE1C,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MasonEffect.d.ts","sourceRoot":"","sources":["../../../src/react/MasonEffect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,KAAK,IAAI,CAAC;CAC5C;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,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QAAA,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"Count.d.ts","sourceRoot":"","sources":["../../../../src/react/count/Count.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,MAAM,CAAC;IACvB,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IACtD,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,UAAU,UAAW,SAAQ,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,YAAY,CAAC;IACxE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,QAAA,MAAM,cAAc,6EAwDlB,CAAC;AAIH,eAAe,cAAc,CAAC"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MasonEffect React - 모든 React 컴포넌트를 export하는 메인 파일
|
|
3
|
-
*/
|
|
4
1
|
export { default as TextToParticle } from './textToParticle/index.js';
|
|
5
2
|
export type { TextToParticleRef, TextToParticleOptions } from './textToParticle/index.js';
|
|
6
3
|
export { default as Count } from './count/index.js';
|
|
@@ -13,6 +10,6 @@ export type { ScrollFadeInRef, ScrollFadeInOptions } from './scrollFadeIn/index.
|
|
|
13
10
|
export { default as TextSpin } from './textSpin/index.js';
|
|
14
11
|
export type { TextSpinRef, TextSpinOptions } from './textSpin/index.js';
|
|
15
12
|
export { default as MasonEffect } from './textToParticle/index.js';
|
|
16
|
-
export type { TextToParticleRef as MasonEffectRef, TextToParticleOptions as MasonEffectOptions } from './textToParticle/index.js';
|
|
13
|
+
export type { TextToParticleRef as MasonEffectRef, TextToParticleOptions as MasonEffectOptions, } from './textToParticle/index.js';
|
|
17
14
|
export { default } from './textToParticle/index.js';
|
|
18
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACtE,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAE1F,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACtD,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAClE,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEpF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAExE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,YAAY,EACV,iBAAiB,IAAI,cAAc,EACnC,qBAAqB,IAAI,kBAAkB,GAC5C,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollFadeIn.d.ts","sourceRoot":"","sources":["../../../../src/react/scrollFadeIn/ScrollFadeIn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAElF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAC7D,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,UAAU,iBAAkB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,YAAY,CAAC;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,QAAA,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ScrollFadeIn.d.ts","sourceRoot":"","sources":["../../../../src/react/scrollFadeIn/ScrollFadeIn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAElF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC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AAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,QAAA,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"TextSpin.d.ts","sourceRoot":"","sources":["../../../../src/react/textSpin/TextSpin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAElF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEpE,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;IACzD,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,UAAU,aAAc,SAAQ,IAAI,CAAC,eAAe,EAAE,SAAS,GAAG,YAAY,CAAC;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,QAAA,MAAM,iBAAiB,mFAwDrB,CAAC;AAIH,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/textSpin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/textSpin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,YAAY,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextToParticle.d.ts","sourceRoot":"","sources":["../../../../src/react/textToParticle/TextToParticle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAElF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,KAAK,IAAI,CAAC;IACzE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,qBAAqB,CAAC,KAAK,IAAI,CAAC;IAC/D,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,UAAU,mBAAoB,SAAQ,qBAAqB;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,QAAA,MAAM,uBAAuB,+
|
|
1
|
+
{"version":3,"file":"TextToParticle.d.ts","sourceRoot":"","sources":["../../../../src/react/textToParticle/TextToParticle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAElF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,KAAK,IAAI,CAAC;IACzE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,qBAAqB,CAAC,KAAK,IAAI,CAAC;IAC/D,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,UAAU,mBAAoB,SAAQ,qBAAqB;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,QAAA,MAAM,uBAAuB,+FA8G3B,CAAC;AAIH,eAAe,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typing.d.ts","sourceRoot":"","sources":["../../../../src/react/typing/Typing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,UAAU,WAAY,SAAQ,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,YAAY,CAAC;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,QAAA,MAAM,eAAe,+
|
|
1
|
+
{"version":3,"file":"Typing.d.ts","sourceRoot":"","sources":["../../../../src/react/typing/Typing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IA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