mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-12-02 00:01:59 -10:00
* Add a document-loader crate for opening documents with migrations outside the editor * Convert the demo artwork to gdd archives * Report malformed legacy documents as an open error instead of panicking * Keep the demo artwork list in graph-craft and open the demos at each caller
19 lines
435 B
Rust
19 lines
435 B
Rust
use crate::document::NodeNetwork;
|
|
use crate::graphene_compiler::Compiler;
|
|
use crate::proto::ProtoNetwork;
|
|
|
|
pub fn compile(network: NodeNetwork) -> ProtoNetwork {
|
|
let compiler = Compiler {};
|
|
compiler.compile_single(network).unwrap().network
|
|
}
|
|
|
|
pub static DEMO_ART: [&str; 7] = [
|
|
"changing-seasons",
|
|
"painted-dreams",
|
|
"red-dress",
|
|
"valley-of-spires",
|
|
"isometric-fountain",
|
|
"procedural-string-lights",
|
|
"parametric-dunescape",
|
|
];
|