aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position.ts
diff options
context:
space:
mode:
authorvempo <vitaliy.emporopulo@amdocs.com>2018-07-24 17:34:04 +0300
committervempo <vitaliy.emporopulo@amdocs.com>2018-07-25 11:39:10 +0300
commita52d50e788792a63e97a9176ab319d53db7a2853 (patch)
treeb1c2222cacf4b8192aea16d1e0315b1f005c5347 /sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position.ts
parent3c2665debb400aef7f0ed9e235698d2ff9f859db (diff)
Replaced old implementation at root
Old project files and directories has been moved under 'deprecated-workflow-designer'. The old project is not built by the CI anymore, but can be still built manually. New modules/directories have been moved up and integrated with the CI system. Change-Id: I1528c792bcbcce9e50bfc294a1328a20e72c91cf Issue-ID: SDC-1559 Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position.ts')
-rw-r--r--sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position.ts87
1 files changed, 0 insertions, 87 deletions
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position.ts b/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position.ts
deleted file mode 100644
index dad3f04e..00000000
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position.ts
+++ /dev/null
@@ -1,87 +0,0 @@
-/**
- * @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
- */
-/* tslint:disable:array-type member-access variable-name typedef
- only-arrow-functions directive-class-suffix component-class-suffix
- component-selector no-unnecessary-type-assertion arrow-parens*/
-/** Horizontal dimension of a connection point on the perimeter of the origin or
- * overlay element. */
-import {Optional} from '@angular/core';
-export type HorizontalConnectionPos = 'start' | 'center' | 'end';
-
-/** Vertical dimension of a connection point on the perimeter of the origin or
- * overlay element. */
-export type VerticalConnectionPos = 'top' | 'center' | 'bottom';
-
-
-/** A connection point on the origin element. */
-export interface OriginConnectionPosition {
- originX: HorizontalConnectionPos;
- originY: VerticalConnectionPos;
-}
-
-/** A connection point on the overlay element. */
-export interface OverlayConnectionPosition {
- overlayX: HorizontalConnectionPos;
- overlayY: VerticalConnectionPos;
-}
-
-/** The points of the origin element and the overlay element to connect. */
-export class ConnectionPositionPair {
- originX: HorizontalConnectionPos;
- originY: VerticalConnectionPos;
- overlayX: HorizontalConnectionPos;
- overlayY: VerticalConnectionPos;
-
- constructor(
- origin: OriginConnectionPosition, overlay: OverlayConnectionPosition) {
- this.originX = origin.originX;
- this.originY = origin.originY;
- this.overlayX = overlay.overlayX;
- this.overlayY = overlay.overlayY;
- }
-}
-
-/**
- * Set of properties regarding the position of the origin and overlay relative
- * to the viewport with respect to the containing Scrollable elements.
- *
- * The overlay and origin are clipped if any part of their bounding client
- * rectangle exceeds the bounds of any one of the strategy's Scrollable's
- * bounding client rectangle.
- *
- * The overlay and origin are outside view if there is no overlap between their
- * bounding client rectangle and any one of the strategy's Scrollable's bounding
- * client rectangle.
- *
- * ----------- -----------
- * | outside | | clipped |
- * | view | --------------------------
- * | | | | | |
- * ---------- | ----------- |
- * -------------------------- | |
- * | | | Scrollable |
- * | | | |
- * | | --------------------------
- * | Scrollable |
- * | |
- * --------------------------
- */
-export class ScrollableViewProperties {
- isOriginClipped: boolean;
- isOriginOutsideView: boolean;
- isOverlayClipped: boolean;
- isOverlayOutsideView: boolean;
-}
-
-/** The change event emitted by the strategy when a fallback position is used.
- */
-export class ConnectedOverlayPositionChange {
- constructor(
- public connectionPair: ConnectionPositionPair,
- @Optional() public scrollableViewProperties: ScrollableViewProperties) {}
-}