This repository was archived by the owner on Dec 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +46
-39
lines changed
Expand file tree Collapse file tree 9 files changed +46
-39
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "printWidth": 120,
3+ "trailingComma": "all",
4+ "singleQuote": true,
5+ "useTabs": true,
6+ "tabWidth": 4
7+ }
Original file line number Diff line number Diff line change 11enum PositionCollision {
2- bestFit ,
3- flipfit ,
4- ignore ,
2+ bestFit ,
3+ flipfit ,
4+ ignore ,
55}
66
7- export default PositionCollision ;
7+ export default PositionCollision ;
Original file line number Diff line number Diff line change 1- import { HorizontalAlignment , VerticalAlignment } from " ../Types/AlignmentTypes" ;
1+ import { HorizontalAlignment , VerticalAlignment } from ' ../Types/AlignmentTypes' ;
22
33export default interface Alignments {
4- vertical : VerticalAlignment ;
5- horizontal : HorizontalAlignment ;
6- }
4+ vertical : VerticalAlignment ;
5+ horizontal : HorizontalAlignment ;
6+ }
Original file line number Diff line number Diff line change 11export default interface CalculationOutcome {
2- value : number ;
3- willCollide : boolean ;
4- mayOverflow ?: boolean ;
5- }
2+ value : number ;
3+ willCollide : boolean ;
4+ mayOverflow ?: boolean ;
5+ }
Original file line number Diff line number Diff line change 11export default interface ElementDimensions {
2- height : number ;
3- width : number ;
4- top : number ;
5- left : number ;
6- }
2+ height : number ;
3+ width : number ;
4+ top : number ;
5+ left : number ;
6+ }
Original file line number Diff line number Diff line change 11export default interface FitPosition {
2- top : number ;
3- left : number ;
4- }
2+ top : number ;
3+ left : number ;
4+ }
Original file line number Diff line number Diff line change 1- import { CombinedAlignment } from " ../Types/AlignmentTypes" ;
2- import CalculationOutcome from " ./CalculationOutcome" ;
1+ import { CombinedAlignment } from ' ../Types/AlignmentTypes' ;
2+ import CalculationOutcome from ' ./CalculationOutcome' ;
33
44export default interface FitPositionData {
5- my : CombinedAlignment ;
6- at : CombinedAlignment ;
7- top : CalculationOutcome ;
8- left : CalculationOutcome ;
9- }
5+ my : CombinedAlignment ;
6+ at : CombinedAlignment ;
7+ top : CalculationOutcome ;
8+ left : CalculationOutcome ;
9+ }
Original file line number Diff line number Diff line change 1- import PositionCollision from " ../Enumerators/PositionCollision" ;
2- import { CombinedAlignment , PositionAlignment } from " ../Types/AlignmentTypes" ;
1+ import PositionCollision from ' ../Enumerators/PositionCollision' ;
2+ import { CombinedAlignment , PositionAlignment } from ' ../Types/AlignmentTypes' ;
33
44export default interface PositionOptions {
5- my : PositionAlignment ;
6- at : PositionAlignment ;
7- anchor : HTMLElement | MouseEvent ;
8- target : HTMLElement ;
9- collision ?: PositionCollision ;
10- bestFitPreference ?: " horizontal" | " vertical" ;
11- defaults ?: { my : CombinedAlignment ; at : CombinedAlignment } ;
12- }
5+ my : PositionAlignment ;
6+ at : PositionAlignment ;
7+ anchor : HTMLElement | MouseEvent ;
8+ target : HTMLElement ;
9+ collision ?: PositionCollision ;
10+ bestFitPreference ?: ' horizontal' | ' vertical' ;
11+ defaults ?: { my : CombinedAlignment ; at : CombinedAlignment } ;
12+ }
Original file line number Diff line number Diff line change 11export type PositionAlignment = VerticalAlignment | HorizontalAlignment | CombinedAlignment ;
22export type CombinedAlignment = `${VerticalAlignment } ${HorizontalAlignment } `;
3- export type VerticalAlignment = " top" | " center" | " bottom" ;
4- export type HorizontalAlignment = " left" | " center" | " right" ;
3+ export type VerticalAlignment = ' top' | ' center' | ' bottom' ;
4+ export type HorizontalAlignment = ' left' | ' center' | ' right' ;
You can’t perform that action at this time.
0 commit comments