mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-21 11:08:11 +08:00
Refactor naming to deprecate "node graph frame" terminology (#1187)
This commit is contained in:
@@ -580,14 +580,22 @@ impl JsEditorHandle {
|
||||
}
|
||||
|
||||
/// Sends the blob URL generated by JS to the Imaginate layer in the respective document
|
||||
#[wasm_bindgen(js_name = processNodeGraphFrame)]
|
||||
pub fn process_node_graph_frame(&self, document_id: u64, layer_path: Vec<LayerId>, image_data: Vec<u8>, width: u32, height: u32, imaginate_node: Option<Vec<NodeId>>) {
|
||||
let message = PortfolioMessage::ProcessNodeGraphFrame {
|
||||
#[wasm_bindgen(js_name = renderGraphUsingRasterizedRegionBelowLayer)]
|
||||
pub fn render_graph_using_rasterized_region_below_layer(
|
||||
&self,
|
||||
document_id: u64,
|
||||
layer_path: Vec<LayerId>,
|
||||
input_image_data: Vec<u8>,
|
||||
width: u32,
|
||||
height: u32,
|
||||
imaginate_node_path: Option<Vec<NodeId>>,
|
||||
) {
|
||||
let message = PortfolioMessage::RenderGraphUsingRasterizedRegionBelowLayer {
|
||||
document_id,
|
||||
layer_path,
|
||||
image_data,
|
||||
input_image_data,
|
||||
size: (width, height),
|
||||
imaginate_node,
|
||||
imaginate_node_path,
|
||||
};
|
||||
self.dispatch(message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user