How to use the pane-registry.UI function in pane-registry

To help you get started, we’ve selected a few pane-registry examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github solid / solid-panes / index.js View on Github external
** relevant to a given subject, returning null if not.
** If it is relevant, then it returns a suitable tooltip for a control which selects the pane
*/

// create the unique UI module on which to attach panes (no, don't attach as UI dot panes any more)
// var UI = require('solid-ui') // Note we will add the panes register to this.

const panes = require('pane-registry')

module.exports = panes

// We attach the solid-UI lower-level system for convenience
// Currently most panes are built using it anyway.
// It also gives access to rdflib as panes.UI.rdf

panes.UI = require('solid-ui') // Pass on directly to any who needs it

// This has common outline mode functionality for the default and other other panes
// A separate outline manager is required per DOM in cases like a browser extension
// where there are many occurrences of window and of window.document
// But each DOM should have just one outline manager.

panes.OutlineManager = require('./outline/manager.js')
panes.getOutliner = function (dom) {
  if (!dom.outlineManager) {
    dom.outlineManager = panes.OutlineManager(dom)
  }
  return dom.outlineManager
}
if (typeof window !== 'undefined') {
  var dom = window.document
  panes.getOutliner(dom)

pane-registry

Solid-compatible Panes: Pane Registry

MIT
Latest version published 7 months ago

Package Health Score

50 / 100
Full package analysis