openpencil/crates/op-editor-core/src
Kayshen-X a18ca7bbfe refactor: delete shell-core's document module
Phase 7 Task 7.1 final step. The `crate::document` module's shared
enum/value types were the last remnant of shell-core's dead `Document`
model. This repoints every consumer onto canonical types and deletes
the module entirely.

- Enum types (`Tool`, `AlignAction`, `FillType`, `FlexLayout`,
  `PropertyTab`, `PropertyFocus`, `ColorTarget`, `Viewport`, `NodeId`,
  `BooleanOp`, `ChatAnchor`, `ReorderDirection`) repointed onto their
  variant-identical `op_editor_core` equivalents.
- `NodeKind` / `Effect` / `DropShadow` are paint-time scene types with
  no canonical home — moved into `layout_scene.rs` (the surviving
  scene type that is their only consumer). `Stroke` consumers switched
  to the existing `SceneStroke`.
- `VariableTable` + friends (`Variable`, `ThemeAxis`, `ThemedValue`,
  `VariableKind/Scalar/Value`) are a shell-core-local paint-time
  aggregate consumed by the `LayoutScene` builder — moved to a new
  crate-root `scene_vars` module.
- `editor_state_ext.rs` converters that became identity now that
  widgets speak canonical types deleted (`doc_tool`, `doc_align_action`,
  `doc_fill_type`, `doc_flex_layout`, `doc_property_tab`,
  `doc_property_focus`). The widget-local→canonical reverse bridges
  (`file_menu_choice`, `shape_choice`, `export_format`) added there.
- `op-pen-loader/bridge_enums_rev.rs` (the SC document→EC enum bridge)
  deleted; hosts feed canonical widget hit-test results straight in.
- Dead `large_document_perf.rs` integration test (exercised the
  removed `Document` struct directly) deleted.

Pure type-repointing — widgets/canvas/export paint identically.
2026-05-16 23:07:57 +08:00
..
agent_settings.rs feat(op-editor-core): extend EditorState into a full state superset of Document 2026-05-16 17:47:53 +08:00
align.rs feat(op-editor-core): port color/align/variables/rename mutators 2026-05-16 16:21:12 +08:00
chat.rs feat(op-editor-core): extend EditorState into a full state superset of Document 2026-05-16 17:47:53 +08:00
clipboard.rs feat(op-editor-core): port editing mutators onto EditorState 2026-05-16 16:10:36 +08:00
color_picker.rs feat(op-editor-core): close variable/theme gaps for the host migration 2026-05-16 18:19:35 +08:00
command.rs refactor(op-editor-core): rename UiChrome → EditorUiState (drop the 'chrome' term) 2026-05-16 17:51:39 +08:00
command_apply.rs feat(op-editor-core): EditorCommand DTO + EditorState::apply 2026-05-16 16:32:44 +08:00
command_node.rs feat(op-editor-core): EditorCommand DTO + EditorState::apply 2026-05-16 16:32:44 +08:00
command_node_attrs.rs refactor(op-editor-core): rename UiChrome → EditorUiState (drop the 'chrome' term) 2026-05-16 17:51:39 +08:00
command_tests.rs feat(op-editor-core): EditorCommand DTO + EditorState::apply 2026-05-16 16:32:44 +08:00
components.rs feat(op-editor-core): extend EditorState into a full state superset of Document 2026-05-16 17:47:53 +08:00
editor_ui_state.rs fix(editor): address host-migration review concerns (stale-doc hit-tests, dirty-mark, legacy load, view-state persist, fill payload) 2026-05-16 19:53:08 +08:00
fills.rs refactor(panels): migrate PropertyPanel onto op-editor-core EditorState 2026-05-16 21:20:42 +08:00
geometry.rs feat(op-editor-core): port editing mutators onto EditorState 2026-05-16 16:10:36 +08:00
grouping.rs feat(op-editor-core): port editing mutators onto EditorState 2026-05-16 16:10:36 +08:00
history.rs feat(op-editor-core): EditorState on jian PenDocument 2026-05-16 15:54:32 +08:00
host_support.rs refactor: delete shell-core's document module 2026-05-16 23:07:57 +08:00
lib.rs refactor(editor): make EditorState the native host's single source of truth 2026-05-16 19:29:34 +08:00
mutators.rs fix(editor): address host-migration review concerns (stale-doc hit-tests, dirty-mark, legacy load, view-state persist, fill payload) 2026-05-16 19:53:08 +08:00
node_id.rs feat(op-editor-core): EditorState on jian PenDocument 2026-05-16 15:54:32 +08:00
page_mutators.rs feat(op-editor-core): port editing mutators onto EditorState 2026-05-16 16:10:36 +08:00
pen.rs feat(op-editor-core): port editing mutators onto EditorState 2026-05-16 16:10:36 +08:00
pen_node_ext.rs feat(op-editor-core): port editing mutators onto EditorState 2026-05-16 16:10:36 +08:00
rename.rs feat(op-editor-core): port color/align/variables/rename mutators 2026-05-16 16:21:12 +08:00
render_backend.rs refactor(render): move RenderBackend trait into op-editor-core 2026-05-16 14:36:09 +08:00
selection.rs feat(op-editor-core): EditorState on jian PenDocument 2026-05-16 15:54:32 +08:00
state.rs refactor(op-editor-core): rename UiChrome → EditorUiState (drop the 'chrome' term) 2026-05-16 17:51:39 +08:00
test_support.rs feat(op-editor-core): port editing mutators onto EditorState 2026-05-16 16:10:36 +08:00
tests_geometry.rs feat(op-editor-core): port editing mutators onto EditorState 2026-05-16 16:10:36 +08:00
tests_mutators.rs feat(op-editor-core,op-pen-loader): host-migration prerequisites (fill-type, chat-model, layer-collapse, panel predicates, reverse enum bridge) 2026-05-16 18:54:04 +08:00
tests_pages.rs feat(op-editor-core): port editing mutators onto EditorState 2026-05-16 16:10:36 +08:00
tool.rs feat(op-editor-core): EditorState on jian PenDocument 2026-05-16 15:54:32 +08:00
ui_draft.rs feat(op-editor-core): close variable/theme gaps for the host migration 2026-05-16 18:19:35 +08:00
variables.rs feat(op-editor-core): close variable/theme gaps for the host migration 2026-05-16 18:19:35 +08:00
viewport.rs feat(op-editor-core): EditorState on jian PenDocument 2026-05-16 15:54:32 +08:00
walkers.rs feat(op-editor-core): port editing mutators onto EditorState 2026-05-16 16:10:36 +08:00