UNPKG

atom-nuclide

Version:

A unified developer experience for web and mobile development, built as a suite of features on top of Atom to provide hackability and the support of an active community.

30 lines (26 loc) 1.05 kB
Object.defineProperty(exports, '__esModule', { value: true }); /* * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. */ /** * The object used as items in locations. This is based on the supported interface for items in Atom * panes. That way, we maintain compatibility with Atom (upstream?) and can put them in panes as-is. * * The truth is that these models can have any methods they want. Packages define ad-hoc protocols * and check to see if the item implements them. For example, atom-tabs will call `getIconName()` if * it exists. We have some of our own optional methods which, for clarity's sake, are defined here, * even though they're only used by some of our location packages. * * IMPORTANT: All properties and methods must be optional so that we maintain compatibility with * non-nuclide items. */ // // Actions // // Used by PanelLocation to get an initial size for the panel.