IO-2/SHP-5/PRV-2: PSD import, SVG import + vector/text conversions, persistent disk cache
- 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>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e911cc5c93
commit
94e1c86d89
+15
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- EffectCraft test fixture (original work, MIT OR Apache-2.0): basic shapes, groups, transforms. -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100" viewBox="0 0 400 200">
|
||||
<title>Basic shapes</title>
|
||||
<rect id="bg" x="0" y="0" width="400" height="200" fill="#202830"/>
|
||||
<g id="left" transform="translate(20 20)" opacity="0.8">
|
||||
<rect id="box" x="10" y="10" width="120" height="80" rx="12" fill="tomato" stroke="white" stroke-width="6"/>
|
||||
<circle id="dot" cx="70" cy="130" r="30" fill="rgb(40, 180, 255)"/>
|
||||
</g>
|
||||
<g id="right" transform="translate(220 0) rotate(15 80 100)">
|
||||
<ellipse cx="80" cy="60" rx="70" ry="30" fill="gold" fill-opacity="0.75"/>
|
||||
<polygon points="20,180 80,110 140,180" fill="none" stroke="#7CFC00" stroke-width="8" stroke-linejoin="round"/>
|
||||
<line x1="10" y1="100" x2="150" y2="100" stroke="white" stroke-width="4" stroke-linecap="round"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 957 B |
@@ -0,0 +1,7 @@
|
||||
asset: basic-shapes.svg
|
||||
title: SVG test fixture: basic shapes, groups and transforms
|
||||
author: EffectCraft contributors
|
||||
source: original work
|
||||
license: MIT OR Apache-2.0
|
||||
added: 2026-10-02 by EffectCraft contributors (Claude agent, SVG import)
|
||||
notes: Hand-written for the effectcraft-svg parser and Create Shapes from Vector Layer tests.
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
<?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>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,7 @@
|
||||
asset: paths-gradients.svg
|
||||
title: SVG test fixture: path data, gradients, CSS styles and use
|
||||
author: EffectCraft contributors
|
||||
source: original work
|
||||
license: MIT OR Apache-2.0
|
||||
added: 2026-10-02 by EffectCraft contributors (Claude agent, SVG import)
|
||||
notes: Hand-written for the effectcraft-svg parser and Create Shapes from Vector Layer tests.
|
||||
Reference in New Issue
Block a user