mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-26 13:38:12 +08:00
Implement download/copy ImageFrame layer output (#1194)
* Implement download/copy ImageFrame layer output * Add note about black transparency when copying * Introspect node graph output type to conditionally disable the download button --------- Co-authored-by: Dennis Kobert <dennis@kobert.dev>
This commit is contained in:
co-authored by
Dennis Kobert
parent
1aaf2a521b
commit
ebf67eaa82
@@ -50,7 +50,23 @@ pub enum FrontendMessage {
|
||||
#[serde(rename = "commitDate")]
|
||||
commit_date: String,
|
||||
},
|
||||
TriggerFileDownload {
|
||||
TriggerCopyToClipboardBlobUrl {
|
||||
#[serde(rename = "blobUrl")]
|
||||
blob_url: String,
|
||||
},
|
||||
TriggerDownloadBlobUrl {
|
||||
#[serde(rename = "layerName")]
|
||||
layer_name: String,
|
||||
#[serde(rename = "blobUrl")]
|
||||
blob_url: String,
|
||||
},
|
||||
TriggerDownloadRaster {
|
||||
svg: String,
|
||||
name: String,
|
||||
mime: String,
|
||||
size: (f64, f64),
|
||||
},
|
||||
TriggerDownloadTextFile {
|
||||
document: String,
|
||||
name: String,
|
||||
},
|
||||
@@ -107,12 +123,6 @@ pub enum FrontendMessage {
|
||||
TriggerLoadPreferences,
|
||||
TriggerOpenDocument,
|
||||
TriggerPaste,
|
||||
TriggerRasterDownload {
|
||||
svg: String,
|
||||
name: String,
|
||||
mime: String,
|
||||
size: (f64, f64),
|
||||
},
|
||||
TriggerRasterizeRegionBelowLayer {
|
||||
#[serde(rename = "documentId")]
|
||||
document_id: u64,
|
||||
|
||||
Reference in New Issue
Block a user