Protected_Protected Optional_Protected_OptionalframeOptions of the page frame (the app name, the theme pairs), used when the frame is made. The plugin sets the layout, the pick in the layout menu (layout), the rename (documentName) and the viewer.
OptionaluiStaticDefaultThe page layout when none is stored. Set it before the plugin is made, as LayoutStorageKey.
StaticLayoutThe localStorage key that keeps the page layout the person picked, or null to not keep it. Set it before the
plugin is made: the plugin reads the stored layout when it is made.
Static Optional ReadonlyOldStatic ReadonlyPluginThe name in the bars of the page frame: the open file or project. The app sets it, for example the name of the
first loaded file (as the tweakpane-editor example does), and a click on it in the bar renames it. Empty: no
name. Each change sends documentNameChange, so the app can use the name elsewhere (the example names the
exported file with it). It is kept when the frame is made again.
The layout of the page:
titlebar, statusbar or floating: the page frame (EditorFrame), with the modes as coloured icons on
the right (EditorModeBar) and Shift+T for a light or dark theme;classic: no frame, the mode tabs at the bottom.A change applies at once, or at loadPlugins. The default is the stored layout, else
TweakpaneEditorPlugin.DefaultLayout. Only the layout that the person picks (in the layout menu of the frame
or in the plugin's UI, Page layout) is kept in localStorage (TweakpaneEditorPlugin.LayoutStorageKey); a
layout set from code is not, so the person's pick is back at the next visit.
The names of the modes are shown next to their icons in the mode bar of the frame. A change from code is not kept
in localStorage; the person's pick (the toggle of the mode bar, Ctrl+, the Mode names checkbox) is.
iOS and iPadOS zoom the page into a focused text field with text under 16 px (the search fields, the Tweakpane text
fields) and do not zoom back out. On (the default), the plugin stops that zoom while it is added, on iOS only: it
adds maximum-scale=1 to the viewport meta tag of the page, and puts the tag back when it is removed or this is
turned off. A pinch zoom still works in Safari, which ignores the tag for it; an in-app browser (WKWebView) or a web
app on the home screen follows the tag and blocks it: turn this off there. The exported function
preventIosInputZoom does it.
Protected_Protected_Optionalprefix: stringAdds a panel to the page frame (EditorFrame.addPanel): an element in a place (left, the sidebar left of
the canvas; bottom, the strip below it; right, the top of the panel above the settings of the mode), with an
entry in the mode bar (options: its name, icon and colour, and the place where it starts). The person shows or
hides it with its entry, and moves it to another place with the menu of its entry (a right-click, or a long press).
The plugin keeps the panel and adds it again when it makes the frame again (at loadPlugins, and after the
classic layout, which has no frame). Move or hide it from code with frame.movePanel and frame.setPanelHidden.
Optionalmeta: SerializationMetaTypeOptionalset
The page frame, with the mode bar on the right instead of the mode tabs at the bottom. It is there when layout is not
classic, after loadPlugins.