- effectcraft-psd (L1): PSD/PSB reader from Adobe's published file format spec (layers, groups, masks, blend modes, text engine data, lfx2 effects, fill/adjustment layers, vector masks; 1/8/16/32-bit, RGB/CMYK/Gray/Lab/Indexed, raw/RLE/ZIP) and a minimal writer for fixtures. - File > Import: importAs footage|composition|compositionLayerSizes, layer (Choose Layer); groups -> precomps (pass-through collapses), text -> editable text, styles -> Layer Styles, adjustments -> adjustment layers with effects; UI asks the Import Kind for Photoshop files. - effectcraft-svg (L2): SVG parser (shapes, paths, transforms, use, CSS, gradients) and rasteriser; .svg imports as footage, continuously rasterised when the switch is on. - layer.create: shapesFromVector, shapesFromText, masksFromText, editableText (stub removed). - Disk cache (render::disk_cache): LZ4 content-keyed frames and layer buffers, LRU size limit from prefs, atomic writes, restart persistence; edit.purge clears it, cache.diskStats query; viewer frames read/write it and the timeline shows disk-only frames in blue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
1.4 KiB
XML
27 lines
1.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- EffectCraft test fixture (original work, MIT OR Apache-2.0): path data, gradients, CSS, use. -->
|
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="160" height="120">
|
|
<defs>
|
|
<style>
|
|
.warm { fill: url(#sunset); }
|
|
#wave { stroke: #3366ff; stroke-width: 5; fill: none; }
|
|
path.hole { fill-rule: evenodd; }
|
|
</style>
|
|
<linearGradient id="sunset" x1="0" y1="0" x2="0" y2="1">
|
|
<stop offset="0" stop-color="#ffcc00"/>
|
|
<stop offset="100%" stop-color="#ff3300"/>
|
|
</linearGradient>
|
|
<radialGradient id="glow" cx="40" cy="90" r="25" gradientUnits="userSpaceOnUse">
|
|
<stop offset="0%" style="stop-color: white; stop-opacity: 1"/>
|
|
<stop offset="100%" stop-color="#00aaff" stop-opacity="0.2"/>
|
|
</radialGradient>
|
|
<path id="tri" d="M0 0 L20 0 L10 -16 Z"/>
|
|
</defs>
|
|
<path class="warm" d="M10 10 h60 v40 h-60 z"/>
|
|
<path class="hole" fill="#44aa66" d="M90,10 L150,10 L150,60 L90,60 Z M105,25 L135,25 L135,45 L105,45 Z"/>
|
|
<path id="wave" d="M10 75 C 30 55, 50 95, 70 75 S 110 55, 130 75 Q 140 85 150 75"/>
|
|
<circle cx="40" cy="90" r="25" fill="url(#glow)"/>
|
|
<use xlink:href="#tri" x="100" y="110" fill="purple"/>
|
|
<path d="M120 100 a 15 10 0 1 0 30 0 a15 10 0 1 0 -30 0" fill="none" stroke="black" stroke-width="2" stroke-dasharray="4 2"/>
|
|
</svg>
|