mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-07-24 08:05:04 +00:00
Node macro lambda parameters (#1309)
* Implement parsing of impl Node<I, …> syntax for the macro * Extend node macro to allow specifying lambda nodes
This commit is contained in:
parent
a5f890289b
commit
40ec52b395
15 changed files with 109 additions and 106 deletions
|
@ -588,21 +588,12 @@ impl JsEditorHandle {
|
|||
|
||||
/// Sends the blob URL generated by JS to the Imaginate layer in the respective document
|
||||
#[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>>,
|
||||
) {
|
||||
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) {
|
||||
let message = PortfolioMessage::RenderGraphUsingRasterizedRegionBelowLayer {
|
||||
document_id,
|
||||
layer_path,
|
||||
input_image_data,
|
||||
size: (width, height),
|
||||
imaginate_node_path,
|
||||
};
|
||||
self.dispatch(message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue