@skedulo/sked-ui 0.0.3-alpha.3 → 0.0.3-react-18-preview
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -0
- package/dist/components/IntersectionObserverWrapper/IntersectionObserverWrapper.d.ts +39 -0
- package/dist/components/IntersectionObserverWrapper/IntersectionObserverWrapper.stories.d.ts +1 -0
- package/dist/components/avatar/Avatar.d.ts +46 -0
- package/dist/components/avatar/Avatar.stories.d.ts +1 -0
- package/dist/components/avatar/AvatarDetail.d.ts +19 -0
- package/dist/components/avatar/AvatarGroup.d.ts +27 -0
- package/dist/components/avatar/Slot.d.ts +42 -0
- package/dist/components/avatar/__tests__/Avatar.spec.d.ts +1 -0
- package/dist/components/avatar/__tests__/AvatarDetail.spec.d.ts +1 -0
- package/dist/components/avatar/__tests__/GroupAvatars.spec.d.ts +1 -0
- package/dist/components/avatar/__tests__/Slot.spec.d.ts +1 -0
- package/dist/components/badge/Badge.d.ts +18 -0
- package/dist/components/badge/Badge.stories.d.ts +17 -0
- package/dist/components/badge/__tests__/Badge.spec.d.ts +1 -0
- package/dist/components/button-group/ButtonGroup.d.ts +6 -0
- package/dist/components/button-group/ButtonGroup.stories.d.ts +1 -0
- package/dist/components/button-group/__tests__/ButtonGroup.spec.d.ts +1 -0
- package/dist/components/buttons/Buttons.stories.d.ts +1 -0
- package/dist/components/buttons/button/Button.d.ts +60 -0
- package/dist/components/buttons/button/__tests__/Button.spec.d.ts +1 -0
- package/dist/components/buttons/button-dropdown/ButtonDropdown.d.ts +14 -0
- package/dist/components/buttons/button-dropdown/__tests__/ButtonDropdown.spec.d.ts +1 -0
- package/dist/components/buttons/icon-button/IconButton.d.ts +13 -0
- package/dist/components/buttons/icon-button/__tests__/IconButton.spec.d.ts +1 -0
- package/dist/components/buttons/icon-button-dropdown/IconButtonDropdown.d.ts +5 -0
- package/dist/components/buttons/icon-button-dropdown/__tests__/IconButtonDropdown.spec.d.ts +1 -0
- package/dist/components/buttons/interfaces.d.ts +10 -0
- package/dist/components/calendar-controls/CalendarControls-utils.d.ts +7 -0
- package/dist/components/calendar-controls/CalendarControls.d.ts +30 -0
- package/dist/components/calendar-controls/CalendarControls.stories.d.ts +1 -0
- package/dist/components/calendar-controls/elements/DateSelector.d.ts +47 -0
- package/dist/components/calendar-controls/elements/NavigationButtons.d.ts +6 -0
- package/dist/components/calendar-controls/elements/RangePicker.d.ts +21 -0
- package/dist/components/calendar-controls/elements/TodayButton.d.ts +5 -0
- package/dist/components/datepicker/DateTime.d.ts +55 -0
- package/dist/components/datepicker/DateTime.stories.d.ts +1 -0
- package/dist/components/datepicker/Datepicker.d.ts +125 -0
- package/dist/components/datepicker/Datepicker.stories.d.ts +1 -0
- package/dist/components/datepicker/Time.d.ts +44 -0
- package/dist/components/datepicker/Time.stories.d.ts +1 -0
- package/dist/components/datepicker/__tests__/DateTime.spec.d.ts +1 -0
- package/dist/components/datepicker/__tests__/Datepicker.spec.d.ts +1 -0
- package/dist/components/datepicker/__tests__/Time.spec.d.ts +1 -0
- package/dist/components/dynamic-table/DynamicTable-utils.d.ts +45 -0
- package/dist/components/dynamic-table/DynamicTable.d.ts +79 -0
- package/dist/components/dynamic-table/DynamicTable.stories.d.ts +1 -0
- package/dist/components/dynamic-table/__tests__/DynamicTable-renders.spec.d.ts +1 -0
- package/dist/components/dynamic-table/__tests__/DynamicTable-test-utils.d.ts +3 -0
- package/dist/components/dynamic-table/__tests__/DynamicTable-utils.spec.d.ts +1 -0
- package/dist/components/dynamic-table/__tests__/DynamicTable.spec.d.ts +1 -0
- package/dist/components/dynamic-table/__tests__/__mocks__/table-data.d.ts +16 -0
- package/dist/components/dynamic-table/interfaces.d.ts +52 -0
- package/dist/components/emptystate/EmptyState.d.ts +9 -0
- package/dist/components/emptystate/EmptyState.spec.d.ts +1 -0
- package/dist/components/emptystate/EmptyState.stories.d.ts +1 -0
- package/dist/components/filter-bar/FilterBar.d.ts +54 -0
- package/dist/components/filter-bar/FilterBar.stories.d.ts +1 -0
- package/dist/components/filter-bar/__tests__/FilterBar.spec.d.ts +1 -0
- package/dist/components/filter-bar/filter-list/FilterList.d.ts +10 -0
- package/dist/components/filter-bar/filter-list/FilterListWithApply.d.ts +24 -0
- package/dist/components/filter-bar/filter-list/FilterSearch.d.ts +21 -0
- package/dist/components/filter-bar/filter-list/RemoteSearch.d.ts +25 -0
- package/dist/components/filter-bar/filter-list/__tests__/FilterList.spec.d.ts +1 -0
- package/dist/components/filter-bar/filter-list/__tests__/FilterListWithApply.spec.d.ts +1 -0
- package/dist/components/filter-bar/filter-list/__tests__/FilterSearch.spec.d.ts +1 -0
- package/dist/components/filter-bar/filter-list/__tests__/RemoteSearch.spec.d.ts +1 -0
- package/dist/components/filter-bar/filter-pill/FilterPill.d.ts +23 -0
- package/dist/components/filter-bar/filter-pill/__tests__/FilterPill.spec.d.ts +1 -0
- package/dist/components/filter-bar/interfaces.d.ts +43 -0
- package/dist/components/forms/Forms.stories.d.ts +1 -0
- package/dist/components/forms/ReadOnly.d.ts +11 -0
- package/dist/components/forms/SkedFormValidation.d.ts +98 -0
- package/dist/components/forms/SkedFormValidation.spec.d.ts +1 -0
- package/dist/components/forms/__tests__/ReadOnly.spec.d.ts +1 -0
- package/dist/components/forms/elements/AsyncMultiSearchSelect.d.ts +3 -0
- package/dist/components/forms/elements/AsyncSearchSelect.d.ts +6 -0
- package/dist/components/forms/elements/AsyncSelectSearch.stories.d.ts +1 -0
- package/dist/components/forms/elements/FormElements.d.ts +54 -0
- package/dist/components/forms/elements/MultiSearchSelect.d.ts +3 -0
- package/dist/components/forms/elements/MultiSearchSelect.stories.d.ts +1 -0
- package/dist/components/forms/elements/NumberInput.d.ts +17 -0
- package/dist/components/forms/elements/PlainAsyncMultiSearchSelect.d.ts +8 -0
- package/dist/components/forms/elements/PlainAsyncMultiSearchSelect.stories.d.ts +1 -0
- package/dist/components/forms/elements/PlainMultiSearchSelect.d.ts +24 -0
- package/dist/components/forms/elements/PlainMultiSearchSelect.stories.d.ts +1 -0
- package/dist/components/forms/elements/SearchSelect.d.ts +6 -0
- package/dist/components/forms/elements/SearchSelect.stories.d.ts +1 -0
- package/dist/components/forms/elements/TextArea.d.ts +25 -0
- package/dist/components/forms/elements/TextArea.spec.d.ts +1 -0
- package/dist/components/forms/elements/__tests__/AsyncMultiSearchSelect.spec.d.ts +1 -0
- package/dist/components/forms/elements/__tests__/AsyncSearchSelect.spec.d.ts +1 -0
- package/dist/components/forms/elements/__tests__/FormElements.spec.d.ts +1 -0
- package/dist/components/forms/elements/__tests__/MultiSearchSelect.spec.d.ts +1 -0
- package/dist/components/forms/elements/__tests__/NumberInput.spec.d.ts +1 -0
- package/dist/components/forms/elements/__tests__/PlainAsyncMultiSearchSelect.spec.d.ts +1 -0
- package/dist/components/forms/elements/__tests__/PlainMultiSearchSelect.spec.d.ts +1 -0
- package/dist/components/forms/elements/__tests__/SearchSelect-renders.spec.d.ts +1 -0
- package/dist/components/forms/elements/__tests__/SearchSelect.spec.d.ts +1 -0
- package/dist/components/forms/elements/__tests__/__mocks__/searchData.d.ts +11 -0
- package/dist/components/forms/elements/interfaces.d.ts +108 -0
- package/dist/components/forms/elements/select-components.d.ts +38 -0
- package/dist/components/forms/elements/select-hooks.d.ts +38 -0
- package/dist/components/forms/elements/select-utils.d.ts +22 -0
- package/dist/components/icon/Icon.d.ts +26 -0
- package/dist/components/icon/Icon.spec.d.ts +1 -0
- package/dist/components/icon/Icon.stories.d.ts +1 -0
- package/dist/components/icon/iconPaths.d.ts +131 -0
- package/dist/components/info-card/InfoCard.d.ts +5 -0
- package/dist/components/info-card/InfoCard.stories.d.ts +1 -0
- package/dist/components/info-card/InfoCardBody.d.ts +13 -0
- package/dist/components/info-card/InfoCardFooter.d.ts +2 -0
- package/dist/components/info-card/InfoCardHeader.d.ts +11 -0
- package/dist/components/info-card/index.d.ts +4 -0
- package/dist/components/inline-banner/InlineBanner.d.ts +9 -0
- package/dist/components/inline-banner/InlineBanner.spec.d.ts +1 -0
- package/dist/components/inline-banner/InlineBanner.stories.d.ts +1 -0
- package/dist/components/link/Link.d.ts +5 -0
- package/dist/components/link/Link.spec.d.ts +1 -0
- package/dist/components/link/Link.stories.d.ts +17 -0
- package/dist/components/loader/Loading.d.ts +16 -9
- package/dist/components/loader/Loading.stories.d.ts +1 -0
- package/dist/components/loader/__tests__/Loading.spec.d.ts +1 -0
- package/dist/components/loader/spinner/LoadingSpinner.d.ts +21 -0
- package/dist/components/lozenge/CustomLozenge.d.ts +21 -0
- package/dist/components/lozenge/Lozenge.d.ts +22 -0
- package/dist/components/lozenge/Lozenge.stories.d.ts +1 -0
- package/dist/components/lozenge/__tests__/Lozenge.spec.d.ts +1 -0
- package/dist/components/menus/Menus.stories.d.ts +1 -0
- package/dist/components/menus/actionmenu/ActionMenu.d.ts +13 -0
- package/dist/components/menus/cardactionmenu/CardActionMenu.d.ts +10 -0
- package/dist/components/menus/index.d.ts +2 -0
- package/dist/components/menus/menu/Menu.d.ts +18 -0
- package/dist/components/modals/Modal.spec.d.ts +1 -0
- package/dist/components/modals/Modal.stories.d.ts +1 -0
- package/dist/components/modals/Modals.d.ts +35 -0
- package/dist/components/pagination/Pagination-utils.d.ts +1 -0
- package/dist/components/pagination/Pagination-utils.spec.d.ts +1 -0
- package/dist/components/pagination/Pagination.d.ts +3 -0
- package/dist/components/pagination/Pagination.spec.d.ts +1 -0
- package/dist/components/pagination/Pagination.stories.d.ts +1 -0
- package/dist/components/pagination/PaginationCount/PaginationCount.d.ts +3 -0
- package/dist/components/pagination/PaginationCount/PaginationCount.spec.d.ts +1 -0
- package/dist/components/pagination/PaginationPages/PaginationPages.d.ts +14 -0
- package/dist/components/pagination/PaginationPages/PaginationPages.spec.d.ts +1 -0
- package/dist/components/pagination/interfaces.d.ts +18 -0
- package/dist/components/pill/Pill.d.ts +25 -0
- package/dist/components/pill/Pill.spec.d.ts +1 -0
- package/dist/components/pill/Pill.stories.d.ts +1 -0
- package/dist/components/popout/PopOut.d.ts +61 -0
- package/dist/components/popout/PopOut.stories.d.ts +1 -0
- package/dist/components/popout/PopOutBase.d.ts +39 -0
- package/dist/components/popout/usePopOut.d.ts +9 -0
- package/dist/components/popups/info-window/InfoWindow.d.ts +45 -106
- package/dist/components/popups/info-window/InfoWindow.stories.d.ts +1 -0
- package/dist/components/popups/info-window/LegacyInfoWindow.d.ts +161 -0
- package/dist/components/popups/info-window/info-window-utils.d.ts +43 -31
- package/dist/components/popups/info-window/info-window-utils.spec.d.ts +1 -0
- package/dist/components/popups/info-window/useInfoWindowModifiers.d.ts +2 -0
- package/dist/components/popups/overflow-tooltip/OverflowTooltip.d.ts +31 -0
- package/dist/components/popups/tooltip/Tooltip.d.ts +21 -0
- package/dist/components/popups/tooltip/Tooltip.spec.d.ts +1 -0
- package/dist/components/popups/tooltip/Tooltip.stories.d.ts +1 -0
- package/dist/components/portal/Portal.d.ts +22 -0
- package/dist/components/search-box/SearchBox.d.ts +9 -0
- package/dist/components/search-box/SearchBox.spec.d.ts +1 -0
- package/dist/components/status-icon/StatusIcon.d.ts +11 -0
- package/dist/components/status-icon/StatusIcon.spec.d.ts +1 -0
- package/dist/components/status-icon/StatusIcon.stories.d.ts +1 -0
- package/dist/components/table/Table.d.ts +16 -0
- package/dist/components/table/Table.spec.d.ts +1 -0
- package/dist/components/table/Table.stories.d.ts +1 -0
- package/dist/components/tabs/Tabs/Tabs.d.ts +36 -0
- package/dist/components/tabs/Tabs/TabsMenuItem.d.ts +22 -0
- package/dist/components/tabs/Tabs/TabsRoutingUtils.d.ts +28 -0
- package/dist/components/tabs/Tabs/__tests__/Tabs.spec.d.ts +1 -0
- package/dist/components/tabs/Tabs/__tests__/TabsMenuItem.spec.d.ts +1 -0
- package/dist/components/tabs/Tabs/__tests__/TabsRoutingUtils.spec.d.ts +1 -0
- package/dist/components/tabs/Tabs/interfaces.d.ts +65 -0
- package/dist/components/tabs/Tabs.stories.d.ts +1 -0
- package/dist/components/text/MultilineContent.d.ts +6 -0
- package/dist/components/text/MultilineContent.spec.d.ts +1 -0
- package/dist/hooks/useDebounce.d.ts +1 -0
- package/dist/index.d.ts +59 -3
- package/dist/index.js +65744 -1
- package/dist/utils/Option.d.ts +58 -0
- package/dist/utils/Option.spec.d.ts +1 -0
- package/dist/utils/Route.d.ts +4 -0
- package/dist/utils/Strings.d.ts +1 -0
- package/dist/utils/Types.d.ts +6 -0
- package/dist/utils/__tests__/Route.spec.d.ts +1 -0
- package/dist/utils/testing-utils.d.ts +7 -0
- package/package.json +139 -53
- package/yarn.lock +14421 -4868
- package/dist/components/buttons/Button.d.ts +0 -17
- package/dist/components/buttons/ButtonOutlined.d.ts +0 -5
- package/dist/components/buttons/ButtonPrimary.d.ts +0 -5
- package/dist/components/buttons/ButtonSecondary.d.ts +0 -5
- package/dist/components/buttons/ButtonTransparent.d.ts +0 -5
- package/dist/components/popups/InfoWindow.d.ts +0 -106
- package/dist/components/popups/info-window-utils.d.ts +0 -31
- package/dist/components/test/Test.d.ts +0 -9
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './buttons.scss';
|
|
3
|
-
export declare enum ButtonTypes {
|
|
4
|
-
Primary = 0,
|
|
5
|
-
Secondary = 1,
|
|
6
|
-
Transparent = 2
|
|
7
|
-
}
|
|
8
|
-
interface IButtonProps extends React.HTMLProps<HTMLButtonElement> {
|
|
9
|
-
buttonType?: ButtonTypes;
|
|
10
|
-
isOutline?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare class Button extends React.PureComponent<IButtonProps, {}> {
|
|
13
|
-
getTypeClassName: () => "primary" | "secondary" | "transparent" | "";
|
|
14
|
-
getOutlineClassName: () => "" | "outlined";
|
|
15
|
-
render(): JSX.Element;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../node_modules/@types/lodash/common/common.d.ts" />
|
|
2
|
-
/// <reference path="../../node_modules/@types/lodash/common/array.d.ts" />
|
|
3
|
-
/// <reference path="../../node_modules/@types/lodash/common/collection.d.ts" />
|
|
4
|
-
/// <reference path="../../node_modules/@types/lodash/common/date.d.ts" />
|
|
5
|
-
/// <reference path="../../node_modules/@types/lodash/common/function.d.ts" />
|
|
6
|
-
/// <reference path="../../node_modules/@types/lodash/common/lang.d.ts" />
|
|
7
|
-
/// <reference path="../../node_modules/@types/lodash/common/math.d.ts" />
|
|
8
|
-
/// <reference path="../../node_modules/@types/lodash/common/number.d.ts" />
|
|
9
|
-
/// <reference path="../../node_modules/@types/lodash/common/object.d.ts" />
|
|
10
|
-
/// <reference path="../../node_modules/@types/lodash/common/seq.d.ts" />
|
|
11
|
-
/// <reference path="../../node_modules/@types/lodash/common/string.d.ts" />
|
|
12
|
-
/// <reference path="../../node_modules/@types/lodash/common/util.d.ts" />
|
|
13
|
-
import * as React from 'react';
|
|
14
|
-
import { IAnchorScores } from './info-window-utils';
|
|
15
|
-
import './info-window.scss';
|
|
16
|
-
export interface ICursorPoints {
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
}
|
|
20
|
-
export declare type Position = 'top' | 'right' | 'bottom' | 'left';
|
|
21
|
-
export declare type Event = 'click' | 'hover' | 'mount';
|
|
22
|
-
export interface ICursorOptions {
|
|
23
|
-
rule: 'follow' | 'follow-x' | 'follow-y';
|
|
24
|
-
keepOnMouseMove?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface IInfoWindowStyles<T> {
|
|
27
|
-
triangleStyles: {
|
|
28
|
-
top: T;
|
|
29
|
-
left: T;
|
|
30
|
-
};
|
|
31
|
-
contentStyles: {
|
|
32
|
-
top: T;
|
|
33
|
-
left: T;
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
export interface IRequiredProps {
|
|
37
|
-
content: JSX.Element | JSX.Element[] | string;
|
|
38
|
-
position: Position;
|
|
39
|
-
}
|
|
40
|
-
export declare type IProps = IRequiredProps & {
|
|
41
|
-
event?: Event;
|
|
42
|
-
cursorOption?: ICursorOptions;
|
|
43
|
-
delayShow?: number;
|
|
44
|
-
preventShow?: boolean;
|
|
45
|
-
containerClassName?: string;
|
|
46
|
-
className?: string;
|
|
47
|
-
dataAttributes?: {
|
|
48
|
-
[key: string]: string;
|
|
49
|
-
};
|
|
50
|
-
displayInline?: boolean;
|
|
51
|
-
withCloseButton?: boolean;
|
|
52
|
-
positionOffset?: number;
|
|
53
|
-
onMouseOver?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
54
|
-
onMouseLeave?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
55
|
-
onClose?: () => void;
|
|
56
|
-
style?: React.CSSProperties;
|
|
57
|
-
};
|
|
58
|
-
interface IState {
|
|
59
|
-
show: boolean;
|
|
60
|
-
contentStyles: React.CSSProperties;
|
|
61
|
-
triangleStyles: React.CSSProperties;
|
|
62
|
-
position: Position | null;
|
|
63
|
-
}
|
|
64
|
-
export declare class InfoWindow extends React.PureComponent<IProps, IState> {
|
|
65
|
-
private _showDelayId;
|
|
66
|
-
private _triggerRef;
|
|
67
|
-
private _renderContainer;
|
|
68
|
-
private _contentRef;
|
|
69
|
-
private _triangleRef;
|
|
70
|
-
private _cursorPosition;
|
|
71
|
-
constructor(props: IProps);
|
|
72
|
-
componentDidMount(): void;
|
|
73
|
-
componentWillUnmount(): void;
|
|
74
|
-
componentWillReceiveProps(newProps: IProps, oldProps: IProps): void;
|
|
75
|
-
setTriggerRef: (div: HTMLDivElement) => void;
|
|
76
|
-
setContentRef: (div: HTMLDivElement) => void;
|
|
77
|
-
setTriangleRef: (span: HTMLSpanElement) => void;
|
|
78
|
-
showHideToggle: () => void;
|
|
79
|
-
attachEventListeners(): void;
|
|
80
|
-
detachEventListeners(): void;
|
|
81
|
-
setShow: (show: boolean) => void;
|
|
82
|
-
registerMousePosition(e: MouseEvent | React.MouseEvent<any> | null): void;
|
|
83
|
-
notTargetArea(e: MouseEvent): boolean;
|
|
84
|
-
handleBodyClick: (e: MouseEvent) => void;
|
|
85
|
-
handleScroll: (e: MouseEvent) => void;
|
|
86
|
-
onTriggerClick: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
87
|
-
onMouseOver: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
88
|
-
onMouseLeave: (e: React.MouseEvent<any>) => void;
|
|
89
|
-
onMouseMove: (e: MouseEvent) => void;
|
|
90
|
-
getDisplayPosition: (triggerRect: ClientRect, triangleRect: ClientRect, contentRect: ClientRect) => IAnchorScores;
|
|
91
|
-
computeStylesFromDisplayPosition: (anchor: IAnchorScores, triangleRect: ClientRect) => IInfoWindowStyles<number>;
|
|
92
|
-
computeStyles(): {
|
|
93
|
-
position: Position;
|
|
94
|
-
triangleStyles: _.Dictionary<string>;
|
|
95
|
-
contentStyles: _.Dictionary<string>;
|
|
96
|
-
};
|
|
97
|
-
removeRenderingContainer(): void;
|
|
98
|
-
createRenderContainer(): HTMLDivElement;
|
|
99
|
-
/**
|
|
100
|
-
* The first render wont be positioned properly since we don't have the width/height to calculate the position.
|
|
101
|
-
* `runStyleRender` runs a second render when we have the contentContainer rendered to calculate the position.
|
|
102
|
-
*/
|
|
103
|
-
renderContent(runStyleRender?: boolean): void;
|
|
104
|
-
render(): JSX.Element;
|
|
105
|
-
}
|
|
106
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ICursorPoints, ICursorOptions, Position } from './InfoWindow';
|
|
2
|
-
export declare const getPositionEvalOrder: (position: Position) => Position[];
|
|
3
|
-
interface IAnchorPoint {
|
|
4
|
-
position: Position;
|
|
5
|
-
point: ICursorPoints;
|
|
6
|
-
}
|
|
7
|
-
export interface IAnchorScores extends IAnchorPoint {
|
|
8
|
-
display: ClientRect;
|
|
9
|
-
displayScore: number;
|
|
10
|
-
distanceScore: number;
|
|
11
|
-
weightedScore: number;
|
|
12
|
-
}
|
|
13
|
-
export declare const getAnchorPoints: (triggerPoint: ICursorPoints, triggerRect: ClientRect, triangleRect: ClientRect, windowRect: ClientRect, cursorOptions: ICursorOptions) => IAnchorPoint[];
|
|
14
|
-
export declare const getPositionScores: (triggerPoint: ICursorPoints, triggerRect: ClientRect, contentRect: ClientRect, triangleRect: ClientRect, windowRect: ClientRect, cursorOptions: ICursorOptions, anchorOffset?: number) => IAnchorScores[];
|
|
15
|
-
export declare const getBestFit: (desiredOrder: Position[], positionScores: IAnchorScores[]) => IAnchorScores;
|
|
16
|
-
export declare const adjustContentDisplayCoordinates: (anchor: IAnchorScores, windowRect: ClientRect) => {
|
|
17
|
-
display: {
|
|
18
|
-
left: number;
|
|
19
|
-
right: number;
|
|
20
|
-
bottom: number;
|
|
21
|
-
height: number;
|
|
22
|
-
top: number;
|
|
23
|
-
width: number;
|
|
24
|
-
};
|
|
25
|
-
displayScore: number;
|
|
26
|
-
distanceScore: number;
|
|
27
|
-
weightedScore: number;
|
|
28
|
-
position: Position;
|
|
29
|
-
point: ICursorPoints;
|
|
30
|
-
};
|
|
31
|
-
export {};
|