@clypra-studio/engine 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-B2KQXJLS.js → chunk-JP44RJUI.js} +2 -2
- package/dist/{chunk-NG4F55V7.js → chunk-V5VSY64D.js} +2 -2
- package/dist/{chunk-7ORA5BPW.js → chunk-YBOYDQU5.js} +199 -2
- package/dist/chunk-YBOYDQU5.js.map +1 -0
- package/dist/index.cjs +539 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -43
- package/dist/index.d.ts +43 -43
- package/dist/index.js +368 -27
- package/dist/index.js.map +1 -1
- package/dist/rendering/index.cjs +198 -0
- package/dist/rendering/index.cjs.map +1 -1
- package/dist/rendering/index.js +2 -2
- package/dist/textEffects/index.cjs +198 -1
- package/dist/textEffects/index.cjs.map +1 -1
- package/dist/textEffects/index.js +2 -2
- package/package.json +12 -12
- package/dist/chunk-7ORA5BPW.js.map +0 -1
- /package/dist/{chunk-B2KQXJLS.js.map → chunk-JP44RJUI.js.map} +0 -0
- /package/dist/{chunk-NG4F55V7.js.map → chunk-V5VSY64D.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
evaluateScene,
|
|
7
7
|
sceneToConfig,
|
|
8
8
|
textEffectConfigToScene
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YBOYDQU5.js";
|
|
10
10
|
|
|
11
11
|
// src/templates/keyframes.ts
|
|
12
12
|
function cubicBezier(x1, y1, x2, y2) {
|
|
@@ -2108,4 +2108,4 @@ export {
|
|
|
2108
2108
|
renderTextTemplateToCanvas,
|
|
2109
2109
|
renderCanonicalToCanvas
|
|
2110
2110
|
};
|
|
2111
|
-
//# sourceMappingURL=chunk-
|
|
2111
|
+
//# sourceMappingURL=chunk-JP44RJUI.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveFontFamilyName
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YBOYDQU5.js";
|
|
4
4
|
|
|
5
5
|
// src/fontLoader.ts
|
|
6
6
|
var FONT_VARIANTS = [
|
|
@@ -297,4 +297,4 @@ export {
|
|
|
297
297
|
resetFontLoader,
|
|
298
298
|
ensureFontsLoaded
|
|
299
299
|
};
|
|
300
|
-
//# sourceMappingURL=chunk-
|
|
300
|
+
//# sourceMappingURL=chunk-V5VSY64D.js.map
|
|
@@ -1815,7 +1815,204 @@ function createBlankTextEffectConfig() {
|
|
|
1815
1815
|
}))
|
|
1816
1816
|
};
|
|
1817
1817
|
}
|
|
1818
|
-
var builtInPresets = [
|
|
1818
|
+
var builtInPresets = [
|
|
1819
|
+
{
|
|
1820
|
+
id: "classic-yellow",
|
|
1821
|
+
name: "Classic Yellow",
|
|
1822
|
+
category: "caption",
|
|
1823
|
+
config: {
|
|
1824
|
+
...defaultConfig,
|
|
1825
|
+
text: "SAMPLE CAPTION",
|
|
1826
|
+
effectName: "Classic Yellow",
|
|
1827
|
+
fontFamily: "Outfit Variable",
|
|
1828
|
+
fontWeight: 800,
|
|
1829
|
+
fontSize: 64,
|
|
1830
|
+
fillColor: "#FFE600",
|
|
1831
|
+
strokeEnabled: true,
|
|
1832
|
+
strokeColor: "#000000",
|
|
1833
|
+
strokeWidth: 5,
|
|
1834
|
+
strokePosition: "outside",
|
|
1835
|
+
strokeOpacity: 100,
|
|
1836
|
+
shadowEnabled: true,
|
|
1837
|
+
shadowColor: "#000000",
|
|
1838
|
+
shadowBlur: 6,
|
|
1839
|
+
shadowOffsetX: 0,
|
|
1840
|
+
shadowOffsetY: 3,
|
|
1841
|
+
shadowOpacity: 85
|
|
1842
|
+
}
|
|
1843
|
+
},
|
|
1844
|
+
{
|
|
1845
|
+
id: "dark-pill",
|
|
1846
|
+
name: "Dark Pill",
|
|
1847
|
+
category: "caption",
|
|
1848
|
+
config: {
|
|
1849
|
+
...defaultConfig,
|
|
1850
|
+
text: "SAMPLE CAPTION",
|
|
1851
|
+
effectName: "Dark Pill",
|
|
1852
|
+
fontFamily: "Inter Variable",
|
|
1853
|
+
fontWeight: 700,
|
|
1854
|
+
fontSize: 56,
|
|
1855
|
+
fillColor: "#FFFFFF",
|
|
1856
|
+
panelEnabled: true,
|
|
1857
|
+
panelColor: "#000000",
|
|
1858
|
+
panelOpacity: 85,
|
|
1859
|
+
panelRadius: 28,
|
|
1860
|
+
panelPaddingX: 36,
|
|
1861
|
+
panelPaddingY: 12
|
|
1862
|
+
}
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
id: "outline-white",
|
|
1866
|
+
name: "Outline White",
|
|
1867
|
+
category: "caption",
|
|
1868
|
+
config: {
|
|
1869
|
+
...defaultConfig,
|
|
1870
|
+
text: "SAMPLE CAPTION",
|
|
1871
|
+
effectName: "Outline White",
|
|
1872
|
+
fontFamily: "Outfit Variable",
|
|
1873
|
+
fontWeight: 800,
|
|
1874
|
+
fontSize: 64,
|
|
1875
|
+
fillColor: "#FFFFFF",
|
|
1876
|
+
strokeEnabled: true,
|
|
1877
|
+
strokeColor: "#000000",
|
|
1878
|
+
strokeWidth: 4,
|
|
1879
|
+
strokePosition: "outside",
|
|
1880
|
+
strokeOpacity: 100,
|
|
1881
|
+
shadowEnabled: true,
|
|
1882
|
+
shadowColor: "#000000",
|
|
1883
|
+
shadowBlur: 4,
|
|
1884
|
+
shadowOffsetX: 0,
|
|
1885
|
+
shadowOffsetY: 2,
|
|
1886
|
+
shadowOpacity: 70
|
|
1887
|
+
}
|
|
1888
|
+
},
|
|
1889
|
+
{
|
|
1890
|
+
id: "neon-pop",
|
|
1891
|
+
name: "Neon Pop",
|
|
1892
|
+
category: "caption",
|
|
1893
|
+
config: {
|
|
1894
|
+
...defaultConfig,
|
|
1895
|
+
text: "SAMPLE CAPTION",
|
|
1896
|
+
effectName: "Neon Pop",
|
|
1897
|
+
fontFamily: "Montserrat Variable",
|
|
1898
|
+
fontWeight: 800,
|
|
1899
|
+
fontSize: 64,
|
|
1900
|
+
fillColor: "#00F0FF",
|
|
1901
|
+
strokeEnabled: true,
|
|
1902
|
+
strokeColor: "#003344",
|
|
1903
|
+
strokeWidth: 2,
|
|
1904
|
+
strokePosition: "outside",
|
|
1905
|
+
glowLayers: [
|
|
1906
|
+
{ enabled: true, color: "#00F0FF", blur: 15, opacity: 85, type: "outer" },
|
|
1907
|
+
{ enabled: false, color: "#FF007C", blur: 40, opacity: 60, type: "outer" },
|
|
1908
|
+
{ enabled: false, color: "#00F0FF", blur: 60, opacity: 40, type: "outer" }
|
|
1909
|
+
],
|
|
1910
|
+
shadowEnabled: true,
|
|
1911
|
+
shadowColor: "rgba(0, 240, 255, 0.5)",
|
|
1912
|
+
shadowBlur: 14,
|
|
1913
|
+
shadowOffsetX: 0,
|
|
1914
|
+
shadowOffsetY: 0,
|
|
1915
|
+
shadowOpacity: 80
|
|
1916
|
+
}
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
id: "minimal-clean",
|
|
1920
|
+
name: "Minimal Clean",
|
|
1921
|
+
category: "caption",
|
|
1922
|
+
config: {
|
|
1923
|
+
...defaultConfig,
|
|
1924
|
+
text: "SAMPLE CAPTION",
|
|
1925
|
+
effectName: "Minimal Clean",
|
|
1926
|
+
fontFamily: "Inter Variable",
|
|
1927
|
+
fontWeight: 600,
|
|
1928
|
+
fontSize: 58,
|
|
1929
|
+
fillColor: "#F5F5F7",
|
|
1930
|
+
shadowEnabled: true,
|
|
1931
|
+
shadowColor: "#000000",
|
|
1932
|
+
shadowBlur: 6,
|
|
1933
|
+
shadowOffsetX: 0,
|
|
1934
|
+
shadowOffsetY: 2,
|
|
1935
|
+
shadowOpacity: 65
|
|
1936
|
+
}
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
id: "fire-orange",
|
|
1940
|
+
name: "Fire Orange",
|
|
1941
|
+
category: "caption",
|
|
1942
|
+
config: {
|
|
1943
|
+
...defaultConfig,
|
|
1944
|
+
text: "SAMPLE CAPTION",
|
|
1945
|
+
effectName: "Fire Orange",
|
|
1946
|
+
fontFamily: "Outfit Variable",
|
|
1947
|
+
fontWeight: 900,
|
|
1948
|
+
fontSize: 64,
|
|
1949
|
+
fillColor: "#FF5722",
|
|
1950
|
+
strokeEnabled: true,
|
|
1951
|
+
strokeColor: "#1A0500",
|
|
1952
|
+
strokeWidth: 4,
|
|
1953
|
+
strokePosition: "outside",
|
|
1954
|
+
strokeOpacity: 100,
|
|
1955
|
+
shadowEnabled: true,
|
|
1956
|
+
shadowColor: "rgba(255, 87, 34, 0.4)",
|
|
1957
|
+
shadowBlur: 8,
|
|
1958
|
+
shadowOffsetX: 0,
|
|
1959
|
+
shadowOffsetY: 2,
|
|
1960
|
+
shadowOpacity: 75
|
|
1961
|
+
}
|
|
1962
|
+
},
|
|
1963
|
+
{
|
|
1964
|
+
id: "frosted-glass",
|
|
1965
|
+
name: "Frosted Glass",
|
|
1966
|
+
category: "caption",
|
|
1967
|
+
config: {
|
|
1968
|
+
...defaultConfig,
|
|
1969
|
+
text: "SAMPLE CAPTION",
|
|
1970
|
+
effectName: "Frosted Glass",
|
|
1971
|
+
fontFamily: "Inter Variable",
|
|
1972
|
+
fontWeight: 600,
|
|
1973
|
+
fontSize: 56,
|
|
1974
|
+
fillColor: "#FFFFFF",
|
|
1975
|
+
panelEnabled: true,
|
|
1976
|
+
panelColor: "#FFFFFF",
|
|
1977
|
+
panelOpacity: 18,
|
|
1978
|
+
panelRadius: 20,
|
|
1979
|
+
panelPaddingX: 32,
|
|
1980
|
+
panelPaddingY: 12,
|
|
1981
|
+
panelStrokeEnabled: true,
|
|
1982
|
+
panelStrokeColor: "rgba(255, 255, 255, 0.3)",
|
|
1983
|
+
panelStrokeWidth: 1.5,
|
|
1984
|
+
shadowEnabled: true,
|
|
1985
|
+
shadowColor: "rgba(0, 0, 0, 0.3)",
|
|
1986
|
+
shadowBlur: 8,
|
|
1987
|
+
shadowOffsetX: 0,
|
|
1988
|
+
shadowOffsetY: 4,
|
|
1989
|
+
shadowOpacity: 50
|
|
1990
|
+
}
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
id: "typewriter-mono",
|
|
1994
|
+
name: "Typewriter Mono",
|
|
1995
|
+
category: "caption",
|
|
1996
|
+
config: {
|
|
1997
|
+
...defaultConfig,
|
|
1998
|
+
text: "SAMPLE CAPTION",
|
|
1999
|
+
effectName: "Typewriter Mono",
|
|
2000
|
+
fontFamily: "Fira Code",
|
|
2001
|
+
fontWeight: 600,
|
|
2002
|
+
fontSize: 52,
|
|
2003
|
+
fillColor: "#FFFFFF",
|
|
2004
|
+
panelEnabled: true,
|
|
2005
|
+
panelColor: "#161622",
|
|
2006
|
+
panelOpacity: 90,
|
|
2007
|
+
panelRadius: 8,
|
|
2008
|
+
panelPaddingX: 24,
|
|
2009
|
+
panelPaddingY: 10,
|
|
2010
|
+
panelStrokeEnabled: true,
|
|
2011
|
+
panelStrokeColor: "#FFB800",
|
|
2012
|
+
panelStrokeWidth: 2
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
];
|
|
1819
2016
|
|
|
1820
2017
|
// src/engine/timelineDefaults.ts
|
|
1821
2018
|
function ensureDefaultTimeline(doc) {
|
|
@@ -2703,4 +2900,4 @@ export {
|
|
|
2703
2900
|
setSceneTime,
|
|
2704
2901
|
resetSceneTime
|
|
2705
2902
|
};
|
|
2706
|
-
//# sourceMappingURL=chunk-
|
|
2903
|
+
//# sourceMappingURL=chunk-YBOYDQU5.js.map
|