mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-12-05 19:12:08 -10:00
* Fix dangling inputs when a history step is removed A node the line never saw gets a placeholder tombstone, which holds no inputs, so reconnect returned nothing instead of falling back to the primary input history kept. The input was left naming a node the document no longer has, and that state is what history folds to. * Share the history simulation harness and add a regression test --------- Co-authored-by: Dennis Kobert <[email protected]>
63 lines
1.7 KiB
Rust
63 lines
1.7 KiB
Rust
pub use graphene_resource::{ResourceHash, ResourceId};
|
|
|
|
pub mod attributes;
|
|
pub mod blob;
|
|
pub mod crdt;
|
|
pub mod delta;
|
|
pub mod document;
|
|
pub mod history;
|
|
mod history_metadata;
|
|
pub mod ids;
|
|
pub mod model;
|
|
mod network_reference;
|
|
mod prior;
|
|
pub mod registry;
|
|
mod repair;
|
|
pub mod resources;
|
|
mod schema;
|
|
pub mod session;
|
|
mod sorted;
|
|
mod touched;
|
|
pub mod value;
|
|
|
|
#[cfg(any(feature = "conversion", test))]
|
|
pub mod from_runtime;
|
|
#[cfg(any(feature = "conversion", test))]
|
|
pub mod metadata_source;
|
|
#[cfg(any(feature = "conversion", test))]
|
|
pub mod to_runtime;
|
|
|
|
pub use attributes::*;
|
|
pub use document::*;
|
|
pub use history::{History, rehash_deltas};
|
|
pub use history_metadata::{HistoryMetadata, MetadataFact, Subject, WallStamp, rev_attr, user_attr};
|
|
pub use ids::*;
|
|
pub use network_reference::NetworkReference;
|
|
pub use schema::*;
|
|
pub use session::*;
|
|
pub use sorted::Sorted;
|
|
pub use touched::Touched;
|
|
pub use value::{ValueError, from_value, to_value};
|
|
|
|
#[cfg(any(feature = "conversion", test))]
|
|
pub use from_runtime::{
|
|
EncodedDeclaration, RuntimeConversion, ScopedConversion, convert_input, convert_input_attributes, convert_resource_entry, decode_declaration, encode_declaration, encode_node_ui_attributes,
|
|
node_value_resource_refs, storage_location_id, storage_node_id, value_resource_ref,
|
|
};
|
|
#[cfg(any(feature = "conversion", test))]
|
|
pub use metadata_source::{InputMetadataEntry, NetworkMetadataEntry, NoMetadata, NodeMetadataEntry, NodeMetadataSource};
|
|
#[cfg(any(feature = "conversion", test))]
|
|
pub use to_runtime::{Declarations, ProjectedNetwork, ProjectedNode, RuntimeProjection};
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
mod bookkeeping;
|
|
mod branch_simulation;
|
|
mod crdt;
|
|
mod history_simulation;
|
|
mod projection;
|
|
mod round_trip;
|
|
mod sessions;
|
|
mod simulation;
|
|
}
|