You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use graphene_std::platform_application_io::canvas_utils::{Canvas,CanvasSurface,CanvasSurfaceHandle};
14
16
use graphene_std::raster_types::Raster;
15
-
use graphene_std::renderer::{Render,RenderParams,SvgRender};
16
-
use graphene_std::renderer::{RenderSvgSegmentList,SvgSegment};
17
+
use graphene_std::renderer::{Render,RenderParams,RenderSvgSegmentList,SvgRender,SvgSegment};
17
18
use graphene_std::table::{Table,TableRow};
18
19
use graphene_std::text::FontCache;
19
20
use graphene_std::transform::RenderQuality;
20
21
use graphene_std::vector::Vector;
21
22
use graphene_std::vector::style::RenderMode;
22
-
#[cfg(target_family = "wasm")]
23
-
use graphene_std::wasm_application_io::canvas_utils::{Canvas,CanvasSurface,CanvasSurfaceHandle};
24
-
use graphene_std::wasm_application_io::{RenderOutputType,WasmApplicationIo,WasmEditorApi};
25
23
use graphene_std::{Artboard,Context,Graphic};
26
24
use interpreted_executor::dynamic_executor::{DynamicExecutor,IntrospectError,ResolvedDocumentNodeTypesDelta};
27
25
use interpreted_executor::util::wrap_network_in_scope;
@@ -30,7 +28,7 @@ use std::sync::Arc;
30
28
use std::sync::mpsc::{Receiver,Sender};
31
29
32
30
/// Persistent data between graph executions. It's updated via message passing from the editor thread with [`GraphRuntimeRequest`]`.
33
-
/// Some of these fields are put into a [`WasmEditorApi`] which is passed to the final compiled graph network upon each execution.
31
+
/// Some of these fields are put into a [`PlatformEditorApi`] which is passed to the final compiled graph network upon each execution.
34
32
/// Once the implementation is finished, this will live in a separate thread. Right now it's part of the main JS thread, but its own separate JS stack frame independent from the editor.
35
33
pubstructNodeRuntime{
36
34
#[cfg(test)]
@@ -43,7 +41,7 @@ pub struct NodeRuntime {
43
41
old_graph:Option<NodeNetwork>,
44
42
update_thumbnails:bool,
45
43
46
-
editor_api:Arc<WasmEditorApi>,
44
+
editor_api:Arc<PlatformEditorApi>,
47
45
node_graph_errors:GraphErrors,
48
46
monitor_nodes:Vec<Vec<NodeId>>,
49
47
@@ -59,10 +57,10 @@ pub struct NodeRuntime {
59
57
vector_modify:HashMap<NodeId,Vector>,
60
58
61
59
/// Cached surface for Wasm viewport rendering (reused across frames)
0 commit comments