Skip to main content
fourthwall_dev
Participating Frequently
February 17, 2025
Answered

A few questions around API for creating editor instance

  • February 17, 2025
  • 1 reply
  • 551 views

1. Is it possible to set output asset size for `editor.create()`? I see there is a type like `OutputAsset`, but cannot see where is it used? In general I gotta confess that it's very hard to navigate trought the API documentation, since some types are missed, sometimes I see some parameteres, and later on I can land on a similar page with types for it without it.

2. Is is possible to set the backgaound transparency so it initially starts with it?

3. Can I set filters just like I set search query ?

Correct answer Barranca

Hi there,

 

  1. You can set the initial canvas size, using canvasSize as a property for the createDocConfig object in the editor.create() workflow. The OutputAsset you mention is used in the EditorPublishParams, that are passed to the PublishCallback(), for the onPublish callback, that you set in the callbacks property of the BaseEditorAppConfig in the editor.create() workflow.
  2.  Not that I know, I'm afraid.
  3.  See 2 🙂 

    Hope this helps!
    Some type aliases are not helpful, we know. Please look at Shared > Types, you'll likely find more useful pages there.


 

1 reply

BarrancaCorrect answer
Adobe Employee
February 21, 2025

Hi there,

 

  1. You can set the initial canvas size, using canvasSize as a property for the createDocConfig object in the editor.create() workflow. The OutputAsset you mention is used in the EditorPublishParams, that are passed to the PublishCallback(), for the onPublish callback, that you set in the callbacks property of the BaseEditorAppConfig in the editor.create() workflow.
  2.  Not that I know, I'm afraid.
  3.  See 2 🙂 

    Hope this helps!
    Some type aliases are not helpful, we know. Please look at Shared > Types, you'll likely find more useful pages there.


 

Davide Barranca | Sr. Developer Relations Engineer @Adobe
fourthwall_dev
Participating Frequently
February 26, 2025

 

Hi there,

 

Thank you for your response and clarifications.

 

I would like to emphasize that background transparency is a crucial feature for us. We’re planning to ship the SDK to thousands of creators who will be designing their own ready-to-print artworks. While we can currently control the resolution via the canvas size (which works well for now), having a backgroundless canvas from the start is essential.

 

I understand that this can be done via the UI in the short term, which is fine. However, looking ahead, we anticipate that this might lead to incorrect prints, especially on white blanks. From my perspective, implementing this feature doesn’t seem overly complex (please correct me if I’m wrong), and I would greatly appreciate it if this could be considered for the feature backlog.

 

Thank you again for your support!

Adobe Employee
February 26, 2025

Hi,

I've logged this as a feature request for Product/Engineering review. Thanks for calling this out and providing context!

 

 

Davide Barranca | Sr. Developer Relations Engineer @Adobe