react-mosaic-component2
Version:
A React Tiling Window Manager
87 lines (86 loc) • 2.52 kB
JavaScript
// src/index.ts
import {
Mosaic,
MosaicWithoutDragDropContext
} from "./Mosaic.mjs";
import {
MosaicDragType
} from "./types.mjs";
import { MosaicContext, MosaicWindowContext } from "./contextTypes.mjs";
import {
buildSpecFromUpdate,
createDragToUpdates,
createExpandUpdate,
createHideUpdate,
createRemoveUpdate,
updateTree
} from "./util/mosaicUpdates.mjs";
import {
createBalancedTreeFromLeaves,
Corner,
getAndAssertNodeAtPathExists,
getLeaves,
getNodeAtPath,
getOtherBranch,
getOtherDirection,
getPathToCorner,
isParent
} from "./util/mosaicUtilities.mjs";
import { MosaicWindow } from "./MosaicWindow.mjs";
import { createDefaultToolbarButton, DefaultToolbarButton } from "./buttons/MosaicButton.mjs";
import { MosaicZeroState } from "./MosaicZeroState.mjs";
import { Separator } from "./buttons/Separator.mjs";
import { ExpandButton } from "./buttons/ExpandButton.mjs";
import { ReplaceButton } from "./buttons/ReplaceButton.mjs";
import { SplitButton } from "./buttons/SplitButton.mjs";
import { RemoveButton } from "./buttons/RemoveButton.mjs";
import { DEFAULT_CONTROLS_WITH_CREATION, DEFAULT_CONTROLS_WITHOUT_CREATION } from "./buttons/defaultToolbarControls.mjs";
export {
Corner,
DEFAULT_CONTROLS_WITHOUT_CREATION,
DEFAULT_CONTROLS_WITH_CREATION,
DefaultToolbarButton,
ExpandButton,
Mosaic,
MosaicContext,
MosaicDragType,
MosaicWindow,
MosaicWindowContext,
MosaicWithoutDragDropContext,
MosaicZeroState,
RemoveButton,
ReplaceButton,
Separator,
SplitButton,
buildSpecFromUpdate,
createBalancedTreeFromLeaves,
createDefaultToolbarButton,
createDragToUpdates,
createExpandUpdate,
createHideUpdate,
createRemoveUpdate,
getAndAssertNodeAtPathExists,
getLeaves,
getNodeAtPath,
getOtherBranch,
getOtherDirection,
getPathToCorner,
isParent,
updateTree
};
/**
* @license
* Copyright 2019 Kevin Verdieck, originally developed at Palantir Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/