Plexora

LAYER_SECTION_SLOT

The sidebar slot that makes a plugin a LAYER rather than a tool.

Generated from Plexora 0.0.55View source
from plexora.api import LAYER_SECTION_SLOT

Also available as plexora.api.plugin.LAYER_SECTION_SLOT.

LAYER_SECTION_SLOT = 'layer_section_slot'

A tool is something the user opens, works in and closes: it lives in the Tools menu, it takes over the panel, and closing it puts the sidebar back the way it was. A layer is not any of those things. It is part of what the viewer IS for this sample -- it is on from the moment the page loads, it has a visibility checkbox rather than a close button, and there is no state of the app in which it makes sense to "close" it and leave the sample open.

Image Channels is the benchmark: a section of the sidebar with real controls over what is drawn. A plugin that declares this slot gets the same standing, under the same rules -- mounted whenever requires.applies_to holds, never offered in the Tools menu, never stood down when a tool opens.