Commit Graph
126 Commits
Author SHA1 Message Date
Tanish Manku bb833c4b85 feat(engine): video through the user's ffmpeg: probe, plan, PPM pipe, frame cache, file.import_video, file.video_info, layer.set_video (M5) 2026-11-18 08:05:12 -07:00
Tanish Manku 2128f16c2c chore: merge main (pen and keep area, layer parenting) into audio to keyframes (M5) 2026-11-18 05:48:09 -07:00
Tanish Manku 6fc56bfefe feat(engine): sound.to_keyframes, sound.lip_sync and sound.analyse: a sound's loudness or speech keys an object on another layer, one undo step (M5) 2026-11-18 04:30:42 -07:00
Tanish Manku 58eb25d8aa feat(engine): timeline.set_keep_area, and a following scale axis isn't keyed by a drag of the other (M1) 2026-11-18 03:43:36 -07:00
Tanish Manku 44f4f1227b feat(engine): layer.set_parent, layer.remove_parent and layer.parents; followers are edited in stage space (M7) 2026-11-18 02:30:59 -07:00
Tanish Manku 0f90ef98bc feat(shell): document tabs above the stage, each with its own session, view and autosave; New and Open bring a tab, closing asks about unsaved changes, quitting asks once for all (M8) 2026-11-18 01:24:58 -07:00
Tanish Manku 2ccb66a96f feat(engine): pasted artwork brings its symbols, bitmaps and sounds into another document, renamed on a clash; a session hands the editor's share to the next (M8) 2026-11-18 01:24:58 -07:00
Tanish Manku 6c787dd2df feat(engine): modify.transformation_point, layer.set_opacity, and transforms about an instance's point (M1) 2026-11-17 23:33:05 -07:00
Tanish Manku bd3fb93138 chore: merge main (shape commands, issue requests) into the editing issue fixes (M1)
Pasting keeps its float parameter beside the transform-origin parameters; the stage keeps the
resize tracking and the picker's eyedropper.
2026-11-17 22:46:56 -07:00
Tanish Manku 0566b715b9 chore: merge main into the editing issue batch (M1)
# Conflicts:
#	CHANGELOG.md
#	docs/guide/drawing.md
#	docs/roadmap.md
2026-11-17 21:50:44 -07:00
Tanish Manku 4563afe840 feat(engine): transformation-origin modes for several selected objects (M1)
modify.transform_origin sets or cycles the mode (tool state); modify.transform
takes origin: selection | registration | center, and Rotate 90 and Flip follow
the mode. An object is one element or the selected pieces of one raw drawing;
its centre is the centre of its own box carried by its transform, so a drag
sent as thirty small changes ends where one transform would (tested).
2026-11-17 21:21:29 -07:00
Tanish Manku 04f3fa1981 feat(engine): Convert Lines to Fills, Expand Fill, Soften Fill Edges and paint.sample (M1)
modify.lines_to_fills, modify.expand_fill, modify.soften_fill_edges on the
selection of every layer, in keyframe space and stored back in the shape's own;
raw results merge with the drawing again (ADR 0031), objects stay objects.
paint.sample is the colour the CPU renderer draws at a point.

Measured against the union of the stroker's polygons at 2400 %: the fills'
area is within a pixel of the lines' for caps, joins, dashes, dots, width
profiles, tight curves and mirrored, skewed shapes (0.00 to 0.98 px on 200 to
10,000 px of line).
2026-11-17 21:21:28 -07:00
Tanish Manku 490da4908b fix(properties): Fill and Stroke turn back on as they were, and Fill on a raw outline fills it (M1)
* The Fill checkbox refilled a shape with white. Turning a fill or a stroke off
  now remembers it for the session (element.set_fill / set_stroke {on}), so on
  again brings back its colour, gradient, bitmap or line; with nothing to
  remember it takes the tool's.
* With only a raw outline selected (double-click on it), Fill put a fill with
  no area on each side. It now refills the fill the outline surrounds, or
  fills the area it closes off as the Paint Bucket does, and says what to do
  when the lines close off nothing.
* The Stroke row has a checkbox like Fill, and the width stops at a hairline
  (0.1) instead of removing the stroke at 0.

Fixes #291
Fixes #292
Fixes #393
2026-11-17 19:37:04 -07:00
Tanish Manku 895b842624 fix(engine): pasted raw artwork floats, selected, until it is deselected (M1)
Paste in Center and Paste in Place merged raw shapes into the drawing at once,
so a copy pasted over its original joined it before it could be dragged away.
The editor now pastes with float: the raw shapes stay whole and selected on
top, and go into the drawing when the selection lets go of them (or when they
are dropped after a move), as in Animate. The merge belongs to the step around
it, so undoing the paste restores the drawing from before it. Scripts that
paste without float still merge at once.

Fixes #391
2026-11-17 19:30:28 -07:00
Tanish Manku e08b01fa91 feat(engine): layer.move, and show, lock or outline every layer (#407, #422) (M8)
layer.move {layer?, before | after | into} puts a layer anywhere in the stack in one undo step; a folder, mask or guide moves with everything in it; nesting past the limit, a folder into itself and the camera are refused. all: true (and on) on layer.toggle_visible/lock/outline act on every layer but the camera.
2026-11-17 17:37:10 -07:00
Tanish Manku c2472cd639 chore: merge main (styled text, mixed armatures) into filter tracks (M5)
Text keeps its filters next to its styled runs. In HTML export, static text in several colours
with filters is one item of pieces (pp), so the pieces share one filtered group as evaluate
draws them; the page's player draws such items piece by piece.
2026-11-17 14:55:39 -07:00
Tanish Manku b5f3e5f0a8 chore: merge main into m7/mixed-armatures 2026-11-17 14:13:32 -07:00
Tanish Manku 471049a06c chore: merge main (saved commands, shared crates) into styled text (M5)
The Save As Command and Manage Saved Commands windows open through windows::new, so they stay
below the menu bar like every other floating window.
2026-11-17 13:27:01 -07:00
Tanish Manku 6501af0585 feat(filters): colour and stepped filter tracks, list pairing, built-in presets, filters on text (M5)
Model and commands (ADR 0099):
* FilterParam gains a colour's channels (color, shadow_color, highlight_color,
  stop_<n>; red, green, blue 0-255, alpha in percent, as the tint) and the
  stepped quality, inner, knockout and hide_object, whose keys hold.
* Classic tweens of lists that differ pair the kinds they share in order;
  a filter without a partner fades to or from itself doing nothing.
* TextBlock carries a filter list; evaluate draws text with filters in a
  filtered group, as a movie clip.
* filter.* commands and element.set_filters act on text; motion.set_key
  keys a whole colour; eight built-in presets that can only be hidden
  (filter.preset_hide).
2026-11-16 19:17:17 -07:00
Tanish Manku 2972440207 feat(bones): mixed armatures, symbol instances and shapes in one armature (M7)
Bones marked with the shape they are inside bend it through that shape's skin;
other bones move an instance or a whole shape. One pose, solver and tween.
A document with a mixed armature is written as format version 4; every other
document byte for byte as before.

Measured (optimised test profile): 25 bones, two shapes of 1,002 points and
8 instances bind in 1.6 ms and pose in 0.066 ms per frame; IK through all 25
bones 0.07 ms.
2026-11-16 18:32:56 -07:00
Tanish Manku e85280bdc8 test(engine): styled text commands, file, fields, paths, break apart and fuzz (M5) 2026-11-16 18:26:38 -07:00
Tanish Manku 4a25817937 chore: merge main (guide search and context help) into saved commands (M6)
Context help gains the macro namespace and the Save As Command and Manage Saved Commands
windows; the guide's chapter list numbers both new chapters.
2026-11-16 18:26:04 -07:00
Tanish Manku 8bf45991ac perf(engine): registry lookups built once; macro.history checks steps without copying them (M6)
find_command rebuilt the whole registry (~360 specs) on every call, and
macro.history cloned every recorded command's params to list a step.
panic_hunt_every_command (which runs macro.history about 600 times per
session over up to 10,000 steps): over 40 min before, 144 s after (debug,
Windows, this machine). The CLI test's failing file now selects first.
2026-11-14 04:13:02 -07:00
Tanish Manku f167ebe3da feat(engine): command macros: history records each step's commands, macro.* commands (M6)
Every undo step keeps the commands it ran; Save As Command rewrites ids of
this document to act on the selection or active layer, or names the step it
can't keep. macro.run is one transactional undo step; macros call only what
a plug-in may, and plug-ins can't call macro.*. anicraft-cli run reads saved
command files. ADR 0097.
2026-11-14 04:13:01 -07:00
FredApps 79360af9b1 Merge branch 'main' into fix/artcraft-feature-names-20261108
# Conflicts:
#	crates/engine/src/cmds_draw.rs
#	crates/engine/src/cmds_timeline.rs
#	docs/roadmap.md
2026-11-14 11:29:26 +01:00
Tanish Manku 738ced3004 feat(engine): desktop.integrate/remove/status write an AppImage's launcher, icons and file types into the user's data folder (M8) 2026-11-13 22:56:56 -07:00
Tanish Manku da757629bd feat(engine): motion tween tracks for filter numbers, keyed by slot and parameter, following their filters (M3) 2026-11-13 20:43:11 -07:00
Tanish Manku 86c936bdb3 chore: merge main into m7/shape-armatures-2 2026-11-13 20:19:09 -07:00
Tanish Manku f7d90f361c feat(engine): filters switch on and off, reorder, copy and paste, and filter presets (M5)
A filter list entry carries an enabled switch (FilterEntry, flattened into the filter's
own object, so older files open unchanged); evaluate and the HTML export leave switched-off
filters out, so every renderer and export draws them as absent. New filter.* commands:
move, enable, remove, copy, paste, and presets (list, save, apply, rename, delete, export,
import) kept in the session like brushes. XFL import keeps disabled filters, switched off.
Classic tweens pair lists that include switched-off filters.
2026-11-13 19:28:15 -07:00
Tanish Manku 6e8749ff4b feat(engine): bone.paint_weights, bone.set_weight, and Subselection edits that reshape a bound shape at rest (M7) 2026-11-13 19:26:11 -07:00
Tanish Manku e92cdf98b6 feat(engine): exporter plug-ins (file.export_plugin, file.export_formats) and plug-in eases; anicraft-cli export and formats (M6) 2026-11-13 17:35:49 -07:00
Tanish Manku 6f690c0daa chore: merge main (ease presets, camera depth, bones) into Motion Editor retiming (M2)
Property keys hold an Easing that is no longer Copy (ADR 0081), so retiming clones them.
2026-11-13 13:07:41 -07:00
FredApps bf0ac268f9 Merge branch 'main' into fix/artcraft-feature-names-20261108
# Conflicts:
#	CHANGELOG.md
#	docs/adr/0006-platforms-and-edit-latency.md
#	docs/roadmap.md
#	src/panels.rs
2026-11-13 20:52:00 +01:00
Tanish Manku 2423b42533 chore: merge main into m7/bones-spring 2026-11-13 02:22:03 -07:00
Tanish Manku 6a488602f7 feat(engine): motion.move_keys, timeline.resize_span and move_spans, Split and Join Motion (M2) 2026-11-13 00:57:49 -07:00
Tanish Manku c92093d626 chore: merge main (camera depth, drawing leftovers, Asset Warp) into ease presets (M7) 2026-11-13 00:56:53 -07:00
Tanish Manku 42a69a3b59 feat(engine): joint translation, bone springs and member properties in place (M7) 2026-11-13 00:54:20 -07:00
Tanish Manku c9fdd00fb3 chore: merge main (drawing leftovers, Asset Warp) into camera depth (M7) 2026-11-13 00:26:19 -07:00
Tanish Manku 47d89cf193 feat(modify): Envelope bends shapes by a mesh of handles, one undo step per drag (M1) 2026-11-12 21:27:55 -07:00
Tanish Manku e9b2e34d99 feat(draw): PolyStar polygon or star, sides and point size (M1) 2026-11-12 21:27:54 -07:00
Tanish Manku 90d4d9107e feat(tweens): ease presets, custom multi-segment eases and saved eases (M7)
- doc: Classic Ease and nine families (Quad, Cubic, Quart, Quint, Sine, Back,
  Circ, Bounce, Elastic) In/Out/InOut as pure functions of t; CustomEase of
  up to 64 Bezier points, always valid (x monotonic, ends pinned, values
  bounded), with exact split, move, handle, smooth/corner and delete edits;
  saved eases in the document; classic tweens ease position, rotation,
  scale, colour and filters separately; instance filters now tween.
- engine: ease.* commands (info, set, add/move/delete/convert point, move
  handle, separate, save, delete, rename, list, copy, paste); saved eases and
  custom curves in timeline.set_easing and motion.set_ease; plug-in policy.
- xfl: multi-segment and per-property custom eases import exactly; corpus
  gains a per-property layer, goldens and probes updated.
- shell: ease menu with curve thumbnails and saved eases in the timeline,
  Properties and Motion Editor; Custom Ease window (graph, keyboard, typed
  values, save, copy/paste, property groups).
- tests: preset values, fits, monotonic x after random edits, hostile
  curves, fuzz, file round trip, HTML runtime parity, Lottie bake.
2026-11-12 21:06:55 -07:00
Tanish Manku 406007566c chore: merge main (Swatches panel) into Asset Warp (M7) 2026-11-12 20:50:48 -07:00
Tanish Manku 617c8c6963 feat(camera): layer depth over time in perspective, attaching layers, camera colour effects and editing through the camera (M7) 2026-11-12 20:50:47 -07:00
Tanish Manku f2fc379841 chore: merge main into m7/asset-warp 2026-11-12 20:22:33 -07:00
Tanish Manku 25739470fe chore: merge main (rulers, grid and guides) into the Swatches panel (M1)
Also mends the M1 roadmap row, which main carried with conflict markers (gradients and rulers both kept).
2026-11-12 20:17:13 -07:00
Tanish Manku aff4693217 feat(engine): warp.add, warp.pin_add, warp.pin_move, warp.pin_remove, warp.remove, warp.info (M7) 2026-11-12 19:52:31 -07:00
Tanish Manku 013aebeade chore: merge main (light theme, gradients, docking) into rulers, grid and guides (M1) 2026-11-12 19:48:51 -07:00
Tanish Manku a64130a9da feat(engine): document swatches with swatch.* commands, swatch files and GIMP palettes (M1) 2026-11-12 19:14:43 -07:00
Tanish Manku bc7637638e feat(engine): guides per scene, grid settings and one snap engine for guides, grid and pixels (M1) 2026-11-12 18:37:23 -07:00
Tanish Manku 6816f99246 chore: merge main (groups and Combine Objects) into the gradient tools (M1) 2026-11-12 17:50:49 -07:00