@clypra-studio/engine 1.8.0 → 1.9.0
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-XHHAW7MS.js +598 -0
- package/dist/chunk-XHHAW7MS.js.map +1 -0
- package/dist/{chunk-7ORA5BPW.js → chunk-YBOYDQU5.js} +199 -2
- package/dist/chunk-YBOYDQU5.js.map +1 -0
- package/dist/index.cjs +647 -1744
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +345 -9
- 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 -3
- package/dist/textEffects/index.cjs +198 -1
- package/dist/textEffects/index.cjs.map +1 -1
- package/dist/textEffects/index.js +2 -3
- package/dist/transitions/index.js +0 -1
- package/dist/videoEffects/index.cjs +106 -1741
- package/dist/videoEffects/index.cjs.map +1 -1
- package/dist/videoEffects/index.d.cts +2 -115
- package/dist/videoEffects/index.d.ts +2 -115
- package/dist/videoEffects/index.js +1 -6
- package/package.json +12 -12
- package/dist/chunk-7ORA5BPW.js.map +0 -1
- package/dist/chunk-PZ5AY32C.js +0 -10
- package/dist/chunk-PZ5AY32C.js.map +0 -1
- package/dist/chunk-SH7HOGVX.js +0 -2235
- package/dist/chunk-SH7HOGVX.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
package/dist/rendering/index.js
CHANGED
|
@@ -7,9 +7,8 @@ import {
|
|
|
7
7
|
renderTextTemplateToCanvas,
|
|
8
8
|
resolveTemplateFontFamily,
|
|
9
9
|
resolveTextTemplateArtifact
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-PZ5AY32C.js";
|
|
10
|
+
} from "../chunk-JP44RJUI.js";
|
|
11
|
+
import "../chunk-YBOYDQU5.js";
|
|
13
12
|
export {
|
|
14
13
|
CANONICAL_RENDERER_VERSION,
|
|
15
14
|
TEXT_TEMPLATE_RENDERER_VERSION,
|
|
@@ -1726,7 +1726,204 @@ var defaultConfig = {
|
|
|
1726
1726
|
wrapText: true,
|
|
1727
1727
|
autoFitText: false
|
|
1728
1728
|
};
|
|
1729
|
-
var builtInPresets = [
|
|
1729
|
+
var builtInPresets = [
|
|
1730
|
+
{
|
|
1731
|
+
id: "classic-yellow",
|
|
1732
|
+
name: "Classic Yellow",
|
|
1733
|
+
category: "caption",
|
|
1734
|
+
config: {
|
|
1735
|
+
...defaultConfig,
|
|
1736
|
+
text: "SAMPLE CAPTION",
|
|
1737
|
+
effectName: "Classic Yellow",
|
|
1738
|
+
fontFamily: "Outfit Variable",
|
|
1739
|
+
fontWeight: 800,
|
|
1740
|
+
fontSize: 64,
|
|
1741
|
+
fillColor: "#FFE600",
|
|
1742
|
+
strokeEnabled: true,
|
|
1743
|
+
strokeColor: "#000000",
|
|
1744
|
+
strokeWidth: 5,
|
|
1745
|
+
strokePosition: "outside",
|
|
1746
|
+
strokeOpacity: 100,
|
|
1747
|
+
shadowEnabled: true,
|
|
1748
|
+
shadowColor: "#000000",
|
|
1749
|
+
shadowBlur: 6,
|
|
1750
|
+
shadowOffsetX: 0,
|
|
1751
|
+
shadowOffsetY: 3,
|
|
1752
|
+
shadowOpacity: 85
|
|
1753
|
+
}
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
id: "dark-pill",
|
|
1757
|
+
name: "Dark Pill",
|
|
1758
|
+
category: "caption",
|
|
1759
|
+
config: {
|
|
1760
|
+
...defaultConfig,
|
|
1761
|
+
text: "SAMPLE CAPTION",
|
|
1762
|
+
effectName: "Dark Pill",
|
|
1763
|
+
fontFamily: "Inter Variable",
|
|
1764
|
+
fontWeight: 700,
|
|
1765
|
+
fontSize: 56,
|
|
1766
|
+
fillColor: "#FFFFFF",
|
|
1767
|
+
panelEnabled: true,
|
|
1768
|
+
panelColor: "#000000",
|
|
1769
|
+
panelOpacity: 85,
|
|
1770
|
+
panelRadius: 28,
|
|
1771
|
+
panelPaddingX: 36,
|
|
1772
|
+
panelPaddingY: 12
|
|
1773
|
+
}
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
id: "outline-white",
|
|
1777
|
+
name: "Outline White",
|
|
1778
|
+
category: "caption",
|
|
1779
|
+
config: {
|
|
1780
|
+
...defaultConfig,
|
|
1781
|
+
text: "SAMPLE CAPTION",
|
|
1782
|
+
effectName: "Outline White",
|
|
1783
|
+
fontFamily: "Outfit Variable",
|
|
1784
|
+
fontWeight: 800,
|
|
1785
|
+
fontSize: 64,
|
|
1786
|
+
fillColor: "#FFFFFF",
|
|
1787
|
+
strokeEnabled: true,
|
|
1788
|
+
strokeColor: "#000000",
|
|
1789
|
+
strokeWidth: 4,
|
|
1790
|
+
strokePosition: "outside",
|
|
1791
|
+
strokeOpacity: 100,
|
|
1792
|
+
shadowEnabled: true,
|
|
1793
|
+
shadowColor: "#000000",
|
|
1794
|
+
shadowBlur: 4,
|
|
1795
|
+
shadowOffsetX: 0,
|
|
1796
|
+
shadowOffsetY: 2,
|
|
1797
|
+
shadowOpacity: 70
|
|
1798
|
+
}
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
id: "neon-pop",
|
|
1802
|
+
name: "Neon Pop",
|
|
1803
|
+
category: "caption",
|
|
1804
|
+
config: {
|
|
1805
|
+
...defaultConfig,
|
|
1806
|
+
text: "SAMPLE CAPTION",
|
|
1807
|
+
effectName: "Neon Pop",
|
|
1808
|
+
fontFamily: "Montserrat Variable",
|
|
1809
|
+
fontWeight: 800,
|
|
1810
|
+
fontSize: 64,
|
|
1811
|
+
fillColor: "#00F0FF",
|
|
1812
|
+
strokeEnabled: true,
|
|
1813
|
+
strokeColor: "#003344",
|
|
1814
|
+
strokeWidth: 2,
|
|
1815
|
+
strokePosition: "outside",
|
|
1816
|
+
glowLayers: [
|
|
1817
|
+
{ enabled: true, color: "#00F0FF", blur: 15, opacity: 85, type: "outer" },
|
|
1818
|
+
{ enabled: false, color: "#FF007C", blur: 40, opacity: 60, type: "outer" },
|
|
1819
|
+
{ enabled: false, color: "#00F0FF", blur: 60, opacity: 40, type: "outer" }
|
|
1820
|
+
],
|
|
1821
|
+
shadowEnabled: true,
|
|
1822
|
+
shadowColor: "rgba(0, 240, 255, 0.5)",
|
|
1823
|
+
shadowBlur: 14,
|
|
1824
|
+
shadowOffsetX: 0,
|
|
1825
|
+
shadowOffsetY: 0,
|
|
1826
|
+
shadowOpacity: 80
|
|
1827
|
+
}
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
id: "minimal-clean",
|
|
1831
|
+
name: "Minimal Clean",
|
|
1832
|
+
category: "caption",
|
|
1833
|
+
config: {
|
|
1834
|
+
...defaultConfig,
|
|
1835
|
+
text: "SAMPLE CAPTION",
|
|
1836
|
+
effectName: "Minimal Clean",
|
|
1837
|
+
fontFamily: "Inter Variable",
|
|
1838
|
+
fontWeight: 600,
|
|
1839
|
+
fontSize: 58,
|
|
1840
|
+
fillColor: "#F5F5F7",
|
|
1841
|
+
shadowEnabled: true,
|
|
1842
|
+
shadowColor: "#000000",
|
|
1843
|
+
shadowBlur: 6,
|
|
1844
|
+
shadowOffsetX: 0,
|
|
1845
|
+
shadowOffsetY: 2,
|
|
1846
|
+
shadowOpacity: 65
|
|
1847
|
+
}
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
id: "fire-orange",
|
|
1851
|
+
name: "Fire Orange",
|
|
1852
|
+
category: "caption",
|
|
1853
|
+
config: {
|
|
1854
|
+
...defaultConfig,
|
|
1855
|
+
text: "SAMPLE CAPTION",
|
|
1856
|
+
effectName: "Fire Orange",
|
|
1857
|
+
fontFamily: "Outfit Variable",
|
|
1858
|
+
fontWeight: 900,
|
|
1859
|
+
fontSize: 64,
|
|
1860
|
+
fillColor: "#FF5722",
|
|
1861
|
+
strokeEnabled: true,
|
|
1862
|
+
strokeColor: "#1A0500",
|
|
1863
|
+
strokeWidth: 4,
|
|
1864
|
+
strokePosition: "outside",
|
|
1865
|
+
strokeOpacity: 100,
|
|
1866
|
+
shadowEnabled: true,
|
|
1867
|
+
shadowColor: "rgba(255, 87, 34, 0.4)",
|
|
1868
|
+
shadowBlur: 8,
|
|
1869
|
+
shadowOffsetX: 0,
|
|
1870
|
+
shadowOffsetY: 2,
|
|
1871
|
+
shadowOpacity: 75
|
|
1872
|
+
}
|
|
1873
|
+
},
|
|
1874
|
+
{
|
|
1875
|
+
id: "frosted-glass",
|
|
1876
|
+
name: "Frosted Glass",
|
|
1877
|
+
category: "caption",
|
|
1878
|
+
config: {
|
|
1879
|
+
...defaultConfig,
|
|
1880
|
+
text: "SAMPLE CAPTION",
|
|
1881
|
+
effectName: "Frosted Glass",
|
|
1882
|
+
fontFamily: "Inter Variable",
|
|
1883
|
+
fontWeight: 600,
|
|
1884
|
+
fontSize: 56,
|
|
1885
|
+
fillColor: "#FFFFFF",
|
|
1886
|
+
panelEnabled: true,
|
|
1887
|
+
panelColor: "#FFFFFF",
|
|
1888
|
+
panelOpacity: 18,
|
|
1889
|
+
panelRadius: 20,
|
|
1890
|
+
panelPaddingX: 32,
|
|
1891
|
+
panelPaddingY: 12,
|
|
1892
|
+
panelStrokeEnabled: true,
|
|
1893
|
+
panelStrokeColor: "rgba(255, 255, 255, 0.3)",
|
|
1894
|
+
panelStrokeWidth: 1.5,
|
|
1895
|
+
shadowEnabled: true,
|
|
1896
|
+
shadowColor: "rgba(0, 0, 0, 0.3)",
|
|
1897
|
+
shadowBlur: 8,
|
|
1898
|
+
shadowOffsetX: 0,
|
|
1899
|
+
shadowOffsetY: 4,
|
|
1900
|
+
shadowOpacity: 50
|
|
1901
|
+
}
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
id: "typewriter-mono",
|
|
1905
|
+
name: "Typewriter Mono",
|
|
1906
|
+
category: "caption",
|
|
1907
|
+
config: {
|
|
1908
|
+
...defaultConfig,
|
|
1909
|
+
text: "SAMPLE CAPTION",
|
|
1910
|
+
effectName: "Typewriter Mono",
|
|
1911
|
+
fontFamily: "Fira Code",
|
|
1912
|
+
fontWeight: 600,
|
|
1913
|
+
fontSize: 52,
|
|
1914
|
+
fillColor: "#FFFFFF",
|
|
1915
|
+
panelEnabled: true,
|
|
1916
|
+
panelColor: "#161622",
|
|
1917
|
+
panelOpacity: 90,
|
|
1918
|
+
panelRadius: 8,
|
|
1919
|
+
panelPaddingX: 24,
|
|
1920
|
+
panelPaddingY: 10,
|
|
1921
|
+
panelStrokeEnabled: true,
|
|
1922
|
+
panelStrokeColor: "#FFB800",
|
|
1923
|
+
panelStrokeWidth: 2
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
];
|
|
1730
1927
|
|
|
1731
1928
|
// src/engine/timelineDefaults.ts
|
|
1732
1929
|
function ensureDefaultTimeline(doc) {
|