summaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/position-strategy.ts
blob: 21bd0fa0053448f50cfd2f016fe5bb122ecd6a2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

/** Strategy for setting the position on an overlay. */
export interface PositionStrategy {
  /** Updates the position of the overlay element. */
  apply(element: Element): void;

  /** Cleans up any DOM modifications made by the position strategy, if
   * necessary. */
  dispose(): void;
}