@gitkraken/gitkraken-components 8.0.2 → 8.1.0
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/dist/components/graph/GraphContainer.d.ts +3 -2
- package/dist/components/graph/commitzone/BackgroundStreak.d.ts +3 -1
- package/dist/components/graph/commitzone/CommitNode.d.ts +2 -1
- package/dist/components/graph/commitzone/CommitZone.d.ts +2 -1
- package/dist/components/graph/commitzone/GraphAvatar.d.ts +2 -1
- package/dist/components/graph/commitzone/edges/Arc.d.ts +1 -1
- package/dist/components/graph/commitzone/edges/EdgeNodes.d.ts +1 -1
- package/dist/components/graph/commitzone/edges/Edges.d.ts +2 -1
- package/dist/components/graph/commitzone/edges/EndingEdge.d.ts +1 -1
- package/dist/components/graph/commitzone/edges/PassThroughEdge.d.ts +1 -1
- package/dist/components/graph/commitzone/edges/StartingEdge.d.ts +1 -1
- package/dist/components/graph/common/RefLine.d.ts +3 -1
- package/dist/components/graph/rowRenderers/CommitZoneRow.d.ts +2 -1
- package/dist/domain/edge/EdgeHelpers.d.ts +6 -5
- package/dist/domain/graph/GraphConstants.d.ts +7 -10
- package/dist/domain/graph/GraphHelpers.d.ts +3 -1
- package/dist/domain/graph/GraphTypes.d.ts +19 -2
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import type { CssVariables } from '../../domain/generic/GenericTypes';
|
|
|
7
7
|
import type { GraphZone, GraphZoneType } from '../../domain/graph/GraphConstants';
|
|
8
8
|
import { GraphMarkerType } from '../../domain/graph/GraphConstants';
|
|
9
9
|
import type { ThrottledFn } from '../../domain/graph/GraphHelpers';
|
|
10
|
-
import type { AbsoluteNodeLeftByColumn, AvatarUrlByEmail, AvatarUrlRequestedByEmail, ChildrenBySha, ColumnColorByColumn, DownstreamsByUpstream, EdgeByColumn, ExcludeByType, ExcludeRefsById, ExcludeRemotesByName, GetExternalIcon, GetMissingAvatar, GetMissingRefMetadata, GraphColumnSetting, GraphColumnsSettings, GraphContexts, GraphMarkerColors, GraphMarkerRowIndices, GraphPlatform, GraphRefGroup, GraphRefOptData, GraphRow, GraphZonesByType, Head, HighlightedShas, IncludeOnlyRefsById, IncludeOnlyRemotesByName, IsSelectedBySha, NodeOffsetByColumn, NodeOpacityByColumn, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnClickRef, OnCommitContextMenu, OnCommitMessageChange, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit, OnDoubleClickRef, OnFormatCommitDateTime, OnGraphColumnReOrdered, OnGraphMouseEnter, OnGraphMouseLeave, OnGraphResized, OnGraphVisibleRowsChanged, OnGraphZoneResize, OnGraphZoneResizeEnd, OnPopupGraphHeaderContextMenu, OnRefNodeHovered, OnRefNodeUnhovered, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnScrollForZone, OnToggleRefNodesShown, ProcessedGraphRow, ProcessedGraphRowBySha, RefMetadataById, RefMetadataItem, RefMetadataRequestedById, RefMetadataType, RefsMissingMetadata, Remote, ReserverInfoBySha, RowEdges, RowStatsConstraints, Tag, TopAndBottomVisibleRowIndex } from '../../domain/graph/GraphTypes';
|
|
10
|
+
import type { AbsoluteNodeLeftByColumn, AvatarUrlByEmail, AvatarUrlRequestedByEmail, ChildrenBySha, ColumnColorByColumn, DownstreamsByUpstream, EdgeByColumn, ExcludeByType, ExcludeRefsById, ExcludeRemotesByName, GetExternalIcon, GetMissingAvatar, GetMissingRefMetadata, GraphColumnSetting, GraphColumnsSettings, GraphContexts, GraphMarkerColors, GraphMarkerRowIndices, GraphPlatform, GraphRefGroup, GraphRefOptData, GraphRow, GraphZoneModeConstants, GraphZonesByType, Head, HighlightedShas, IncludeOnlyRefsById, IncludeOnlyRemotesByName, IsSelectedBySha, NodeOffsetByColumn, NodeOpacityByColumn, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnClickRef, OnCommitContextMenu, OnCommitMessageChange, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit, OnDoubleClickRef, OnFormatCommitDateTime, OnGraphColumnReOrdered, OnGraphMouseEnter, OnGraphMouseLeave, OnGraphResized, OnGraphVisibleRowsChanged, OnGraphZoneResize, OnGraphZoneResizeEnd, OnPopupGraphHeaderContextMenu, OnRefNodeHovered, OnRefNodeUnhovered, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnScrollForZone, OnToggleRefNodesShown, ProcessedGraphRow, ProcessedGraphRowBySha, RefMetadataById, RefMetadataItem, RefMetadataRequestedById, RefMetadataType, RefsMissingMetadata, Remote, ReserverInfoBySha, RowEdges, RowStatsConstraints, Tag, TopAndBottomVisibleRowIndex } from '../../domain/graph/GraphTypes';
|
|
11
11
|
import type { TranslationFn } from '../../domain/language/LanguageTypes';
|
|
12
12
|
import type { OnBlur, OnComponentWillUnmount, OnFocus, OnKeyDown, OnKeyUp, OnMouseDown, OnResizeParams } from '../../domain/ui/UiTypes';
|
|
13
13
|
import type { WorkDirStats } from '../../domain/workdir/WorkDirTypes';
|
|
@@ -173,6 +173,7 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
|
|
|
173
173
|
scrollTop: number;
|
|
174
174
|
graphHeight: number;
|
|
175
175
|
graphWidth: number;
|
|
176
|
+
graphZoneModeConstants: GraphZoneModeConstants;
|
|
176
177
|
graphZonesByType: GraphZonesByType;
|
|
177
178
|
graphZoneOrdering: GraphZoneType[];
|
|
178
179
|
missingAvatarsTimer?: NodeJS.Timeout;
|
|
@@ -227,7 +228,7 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
|
|
|
227
228
|
getOffsetSha(sha: Sha): Sha;
|
|
228
229
|
selectSha(sha: Sha, isAutoOrKeyScroll?: boolean): void;
|
|
229
230
|
updateWidthByZone(widthToAssignForZone: number, graphZoneType: GraphZoneType, updatePreferredWidth?: boolean): void;
|
|
230
|
-
|
|
231
|
+
updateCommitZoneContentWidthFromChange(): void;
|
|
231
232
|
getCurrentWidthByZone(graphZoneType: GraphZoneType): number;
|
|
232
233
|
getCommitZoneContentWidth(): number;
|
|
233
234
|
getCommitZoneWidth(): number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
+
import type { GraphZoneModeConstants } from '../../../domain/graph/GraphTypes';
|
|
2
3
|
type BackgroundStreakProps = {
|
|
3
4
|
className?: string;
|
|
4
5
|
marginLeft: number;
|
|
@@ -7,6 +8,7 @@ declare function BackgroundStreak({ className, marginLeft }: BackgroundStreakPro
|
|
|
7
8
|
export default BackgroundStreak;
|
|
8
9
|
export type CommitZoneBackgroundStreakProps = {
|
|
9
10
|
column: number;
|
|
11
|
+
graphZoneModeConstants: GraphZoneModeConstants;
|
|
10
12
|
};
|
|
11
|
-
export declare function CommitZoneBackgroundStreak({ column, }: CommitZoneBackgroundStreakProps): ReactElement<typeof BackgroundStreak>;
|
|
13
|
+
export declare function CommitZoneBackgroundStreak({ column, graphZoneModeConstants: { COMMIT_COLUMN_WIDTH, COMMIT_NODE_DIAMETER, COMMIT_ZONE_GUTTER_WIDTH }, }: CommitZoneBackgroundStreakProps): ReactElement<typeof BackgroundStreak>;
|
|
12
14
|
export declare function GutterBackgroundStreak(): ReactElement<typeof BackgroundStreak>;
|
|
@@ -2,7 +2,7 @@ import type { ReactElement } from 'react';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { CommitType } from '../../../domain/commit/CommitTypes';
|
|
4
4
|
import type { CssVariables } from '../../../domain/generic/GenericTypes';
|
|
5
|
-
import type { GetExternalIcon, GraphItemContext } from '../../../domain/graph/GraphTypes';
|
|
5
|
+
import type { GetExternalIcon, GraphItemContext, GraphZoneModeConstants } from '../../../domain/graph/GraphTypes';
|
|
6
6
|
type Props = {
|
|
7
7
|
authorEmail: string;
|
|
8
8
|
authorInitials: string;
|
|
@@ -12,6 +12,7 @@ type Props = {
|
|
|
12
12
|
context?: GraphItemContext | null;
|
|
13
13
|
cssVariables: CssVariables;
|
|
14
14
|
getExternalIcon: GetExternalIcon;
|
|
15
|
+
graphZoneModeConstants: GraphZoneModeConstants;
|
|
15
16
|
left: number;
|
|
16
17
|
message: string;
|
|
17
18
|
opacity: number;
|
|
@@ -2,7 +2,7 @@ import type { ReactElement } from 'react';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { CommitType, Sha } from '../../../domain/commit/CommitTypes';
|
|
4
4
|
import type { CssVariables, Style } from '../../../domain/generic/GenericTypes';
|
|
5
|
-
import type { ColumnColorByColumn, GetExternalIcon, GraphItemContext, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnCommitContextMenu, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit, RowEdges } from '../../../domain/graph/GraphTypes';
|
|
5
|
+
import type { ColumnColorByColumn, GetExternalIcon, GraphItemContext, GraphZoneModeConstants, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnCommitContextMenu, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit, RowEdges } from '../../../domain/graph/GraphTypes';
|
|
6
6
|
type Props = {
|
|
7
7
|
authorEmail: string;
|
|
8
8
|
authorName: string;
|
|
@@ -17,6 +17,7 @@ type Props = {
|
|
|
17
17
|
edgeColumnMax: number;
|
|
18
18
|
edges: RowEdges;
|
|
19
19
|
getExternalIcon: GetExternalIcon;
|
|
20
|
+
graphZoneModeConstants: GraphZoneModeConstants;
|
|
20
21
|
hasRefs: boolean;
|
|
21
22
|
hasTimeline: boolean;
|
|
22
23
|
isActiveSha: boolean;
|
|
@@ -18,6 +18,7 @@ type Props = {
|
|
|
18
18
|
size: number;
|
|
19
19
|
title?: string;
|
|
20
20
|
tooltip?: ComponentTooltip;
|
|
21
|
+
top?: number;
|
|
21
22
|
useAuthorInitialsForAvatars: boolean;
|
|
22
23
|
width?: number;
|
|
23
24
|
};
|
|
@@ -31,7 +32,7 @@ export default class GraphAvatar extends React.Component<Props, AvatarState> {
|
|
|
31
32
|
overlayTriggerRef?: OverlayTriggerExt | null;
|
|
32
33
|
constructor(props: Props);
|
|
33
34
|
componentDidUpdate(prevProps: Props, prevState: AvatarState): void;
|
|
34
|
-
getMaybeDefaultAvatar: (height: number, width: number) => ReactElement<'div'>;
|
|
35
|
+
getMaybeDefaultAvatar: (height: number, width: number, top: number) => ReactElement<'div'>;
|
|
35
36
|
ensureTooltipText: () => void;
|
|
36
37
|
setOverlayTriggerRef: RefCallback<OverlayTriggerExt>;
|
|
37
38
|
render(): ReactElement<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CommitType } from '../../../../domain/commit/CommitTypes';
|
|
2
2
|
import type { ArcEndpointAngle, ColumnColor, SvgElement } from '../../../../domain/graph/GraphTypes';
|
|
3
|
-
declare function getArc(color: ColumnColor, endAngle: ArcEndpointAngle, startAngle: ArcEndpointAngle, type: CommitType, x: number, y: number): SvgElement;
|
|
3
|
+
declare function getArc(color: ColumnColor, endAngle: ArcEndpointAngle, startAngle: ArcEndpointAngle, type: CommitType, x: number, y: number, strokeWidth: number): SvgElement;
|
|
4
4
|
export default getArc;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ColumnColorByColumn, RowEdges, SvgElement } from '../../../../domain/graph/GraphTypes';
|
|
2
2
|
export declare function clearEdgeNodesCache(): void;
|
|
3
|
-
export declare function getEdgeNodes(edges: RowEdges, edgeColumnMax: number, nodeColumn: number, columnColorByColumn: ColumnColorByColumn): SvgElement;
|
|
3
|
+
export declare function getEdgeNodes(edges: RowEdges, edgeColumnMax: number, nodeColumn: number, columnColorByColumn: ColumnColorByColumn, columnWidth: number, gutterWidth: number, strokeWidth: number, isCompact?: boolean): SvgElement;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { ColumnColorByColumn, RowEdges } from '../../../../domain/graph/GraphTypes';
|
|
3
|
+
import type { ColumnColorByColumn, GraphZoneModeConstants, RowEdges } from '../../../../domain/graph/GraphTypes';
|
|
4
4
|
type EdgeProps = {
|
|
5
5
|
columnColorByColumn: ColumnColorByColumn;
|
|
6
6
|
edgeColumnMax: number;
|
|
7
7
|
edges: RowEdges;
|
|
8
|
+
graphZoneModeConstants: GraphZoneModeConstants;
|
|
8
9
|
nodeColumn: number;
|
|
9
10
|
};
|
|
10
11
|
declare class Edges extends React.Component<EdgeProps> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CommitType } from '../../../../domain/commit/CommitTypes';
|
|
2
2
|
import type { ColumnColorByColumn, SvgElement } from '../../../../domain/graph/GraphTypes';
|
|
3
3
|
export declare function clearEndingEdgeCacheCache(): void;
|
|
4
|
-
export declare function getEndingEdge(edgeColumn: number, nodeColumn: number, type: CommitType, columnColorByColumn: ColumnColorByColumn): SvgElement;
|
|
4
|
+
export declare function getEndingEdge(edgeColumn: number, nodeColumn: number, type: CommitType, columnColorByColumn: ColumnColorByColumn, columnWidth: number, gutterWidth: number, strokeWidth: number, isCompact?: boolean): SvgElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CommitType } from '../../../../domain/commit/CommitTypes';
|
|
2
2
|
import type { ColumnColorByColumn, SvgElement } from '../../../../domain/graph/GraphTypes';
|
|
3
3
|
export declare function clearPassThroughEdgeCache(): void;
|
|
4
|
-
export declare function getPassThroughEdge(column: number, type: CommitType, columnColorByColumn: ColumnColorByColumn): SvgElement;
|
|
4
|
+
export declare function getPassThroughEdge(column: number, type: CommitType, columnColorByColumn: ColumnColorByColumn, columnWidth: number, gutterWidth: number, strokeWidth: number, isCompact?: boolean): SvgElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CommitType } from '../../../../domain/commit/CommitTypes';
|
|
2
2
|
import type { ColumnColorByColumn, SvgElement } from '../../../../domain/graph/GraphTypes';
|
|
3
3
|
export declare function clearStartingEdgeCache(): void;
|
|
4
|
-
export declare function getStartingEdge(edgeColumn: number, nodeColumn: number, type: CommitType, columnColorByColumn: ColumnColorByColumn): SvgElement;
|
|
4
|
+
export declare function getStartingEdge(edgeColumn: number, nodeColumn: number, type: CommitType, columnColorByColumn: ColumnColorByColumn, columnWidth: number, gutterWidth: number, strokeWidth: number, isCompact?: boolean): SvgElement;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import type { CommitType } from '../../../domain/commit/CommitTypes';
|
|
3
|
+
import type { GraphZoneModeConstants } from '../../../domain/graph/GraphTypes';
|
|
3
4
|
interface RefLineCommonProps {
|
|
4
5
|
hasRefs: boolean;
|
|
5
6
|
isActiveSha: boolean;
|
|
@@ -10,8 +11,9 @@ interface RefLineProps extends RefLineCommonProps {
|
|
|
10
11
|
width: string | number;
|
|
11
12
|
}
|
|
12
13
|
interface RefLineForColumnProps extends RefLineCommonProps {
|
|
14
|
+
graphZoneModeConstants: GraphZoneModeConstants;
|
|
13
15
|
nodeOffset: number;
|
|
14
16
|
}
|
|
15
17
|
declare function RefLine({ hasRefs, isActiveSha, left, type, width }: RefLineProps): ReactElement<any> | null;
|
|
16
18
|
export default RefLine;
|
|
17
|
-
export declare function RefLineForCommit({ hasRefs, isActiveSha, nodeOffset, type, }: RefLineForColumnProps): ReactElement<typeof RefLine>;
|
|
19
|
+
export declare function RefLineForCommit({ graphZoneModeConstants: { RADIUS_DIFF_MERGE_NODE_COMMIT_NODE }, hasRefs, isActiveSha, nodeOffset, type, }: RefLineForColumnProps): ReactElement<typeof RefLine>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { GridCellRenderer } from 'react-virtualized';
|
|
2
|
-
import type { AvatarUrlByEmail, ColumnColorByColumn, CommonGraphRowDispatchProps, CommonGraphRowProps, GetMissingAvatar, NodeOffsetByColumn, NodeOpacityByColumn } from '../../../domain/graph/GraphTypes';
|
|
2
|
+
import type { AvatarUrlByEmail, ColumnColorByColumn, CommonGraphRowDispatchProps, CommonGraphRowProps, GetMissingAvatar, GraphZoneModeConstants, NodeOffsetByColumn, NodeOpacityByColumn } from '../../../domain/graph/GraphTypes';
|
|
3
3
|
import type { GetRealKeyForCellFunc } from '../../../domain/reactvirtualized/ReactVirtualizedHelpers';
|
|
4
4
|
interface OwnProps {
|
|
5
5
|
avatarUrlByEmail: AvatarUrlByEmail;
|
|
6
|
+
graphZoneModeConstants: GraphZoneModeConstants;
|
|
6
7
|
onMissingAvatar: GetMissingAvatar;
|
|
7
8
|
columnColorByColumn: ColumnColorByColumn;
|
|
8
9
|
leftGutterBoxShadowAlpha: number;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { CommitType } from '../commit/CommitTypes';
|
|
2
2
|
import type { ColumnColor, LineSvgProps, RowEdges, SvgElement, SvgElementName, SvgProps, SvgStyles } from '../graph/GraphTypes';
|
|
3
|
-
export declare function getXValueAtColumn(column: number): number;
|
|
3
|
+
export declare function getXValueAtColumn(column: number, columnWidth: number, gutterWidth: number, isCompact?: boolean): number;
|
|
4
|
+
export declare function clearXValueAtColumnCache(): void;
|
|
4
5
|
export declare function getSvgElement(element: SvgElementName, props: SvgProps): SvgElement;
|
|
5
6
|
export declare function getLineElement(props: LineSvgProps): SvgElement;
|
|
6
|
-
export declare function getSvgStyles(type: CommitType, color: ColumnColor): SvgStyles;
|
|
7
|
-
export declare function buildStartingOrEndingEdgeHash(edgeColumn: number, nodeColumn: number, type: CommitType | undefined): string;
|
|
8
|
-
export declare function buildPassThroughEdgeHash(column: number, type: CommitType | undefined): string;
|
|
9
|
-
export declare function buildEdgeHash(edges: RowEdges, edgeColumnMax: number, nodeColumn: number): string;
|
|
7
|
+
export declare function getSvgStyles(type: CommitType, color: ColumnColor, strokeWidth: number): SvgStyles;
|
|
8
|
+
export declare function buildStartingOrEndingEdgeHash(edgeColumn: number, nodeColumn: number, type: CommitType | undefined, isCompact?: boolean): string;
|
|
9
|
+
export declare function buildPassThroughEdgeHash(column: number, type: CommitType | undefined, isCompact?: boolean): string;
|
|
10
|
+
export declare function buildEdgeHash(edges: RowEdges, edgeColumnMax: number, nodeColumn: number, isCompact?: boolean): string;
|
|
@@ -5,23 +5,14 @@ export declare const GRAPH_HEADER_ROW_HEIGHT = 26;
|
|
|
5
5
|
export declare const GRAPH_ROW_HEIGHT = 28;
|
|
6
6
|
export declare const GRAPH_ROW_INNER_HEIGHT = 22;
|
|
7
7
|
export declare const GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET: number;
|
|
8
|
-
export declare const COMMIT_ZONE_LINE_WIDTH = 2;
|
|
9
8
|
export declare const COMMIT_NODE_MIN_ALPHA = 0.5;
|
|
10
|
-
export declare const COMMIT_ZONE_GUTTER_WIDTH = 28;
|
|
11
9
|
export declare const COMMIT_ZONE_MARGIN_BOTTOM = 3;
|
|
12
10
|
export declare const COMMIT_ZONE_MARGIN_TOP = 3;
|
|
13
|
-
export declare const COMMIT_ZONE_PADDING_LEFT = 3;
|
|
14
|
-
export declare const COMMIT_ZONE_PADDING_RIGHT = 3;
|
|
15
11
|
export declare const COMMIT_ZONE_ROW_HEIGHT = 28;
|
|
16
12
|
export declare const COMMIT_ZONE_ROW_INNER_HEIGHT = 22;
|
|
17
|
-
export declare const COMMIT_COLUMN_WIDTH = 22;
|
|
18
|
-
export declare const COMMIT_NODE_DIAMETER = 22;
|
|
19
|
-
export declare const COMMIT_MERGE_NODE_DIAMETER: number;
|
|
20
13
|
export declare const COMMIT_ZONE_EDGE_ARC_PADDING = 3;
|
|
21
14
|
export declare const COMMIT_ZONE_EDGE_ARC_RADIUS: number;
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const COMMIT_ZONE_VIEWPORT_WIDTH_MIN: number;
|
|
24
|
-
export declare const RADIUS_DIFF_MERGE_NODE_COMMIT_NODE: number;
|
|
15
|
+
export declare const COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN = 56;
|
|
25
16
|
export declare const COMMIT_AUTHOR_ZONE_MIN_WIDTH = 50;
|
|
26
17
|
export declare const COMMIT_DATE_TIME_ZONE_MIN_WIDTH = 50;
|
|
27
18
|
export declare const TIMESTAMP_FORMAT_DATE_TIME = "short+short";
|
|
@@ -64,6 +55,11 @@ export declare const commitAuthorZone: CommitAuthorZoneType;
|
|
|
64
55
|
export declare const commitDateTimeZone: CommitDateTimeZoneType;
|
|
65
56
|
export declare const commitShaZone: CommitShaZoneType;
|
|
66
57
|
export declare const changesZone: ChangesZoneType;
|
|
58
|
+
export declare enum GraphColumnMode {
|
|
59
|
+
Compact = "compact",
|
|
60
|
+
Rich = "rich",
|
|
61
|
+
Text = "text"
|
|
62
|
+
}
|
|
67
63
|
export declare enum GraphMarkerType {
|
|
68
64
|
LocalBranches = "localBranches",
|
|
69
65
|
RemoteBranches = "remoteBranches",
|
|
@@ -113,6 +109,7 @@ export interface GraphZone extends GraphZoneMetaData {
|
|
|
113
109
|
preferredWidth?: number;
|
|
114
110
|
isActive?: boolean;
|
|
115
111
|
isHidden: boolean;
|
|
112
|
+
mode?: GraphColumnMode;
|
|
116
113
|
type: GraphZoneType;
|
|
117
114
|
order: number;
|
|
118
115
|
}
|
|
@@ -4,7 +4,8 @@ import type { GetRealKeyForCellFunc } from '../reactvirtualized/ReactVirtualized
|
|
|
4
4
|
import type { GraphRefType } from '../ref/RefTypes';
|
|
5
5
|
import type { WorkDirStats } from '../workdir/WorkDirTypes';
|
|
6
6
|
import type { GraphZone, GraphZoneType, TimelineEntriesByPeriod } from './GraphConstants';
|
|
7
|
-
import
|
|
7
|
+
import { GraphColumnMode } from './GraphConstants';
|
|
8
|
+
import type { GetMissingRefMetadata, GraphColumnWidthConstraints, GraphItemContext, GraphRef, GraphRefGroup, GraphRow, GraphZoneModeConstants, HighlightedShas, IsSelectedBySha, ProcessedGraphRow, ProcessedGraphRowBySha, PullRequestMetadata, Ref, RefMetadata, RefMetadataById, RefMetadataType, RowStatsConstraints, UpstreamMetadata } from './GraphTypes';
|
|
8
9
|
export type DebouncableFn = (...args: any) => void;
|
|
9
10
|
export type DebouncedFn = (...args: any) => void;
|
|
10
11
|
export declare const debounceFrame: (func: DebouncableFn) => DebouncedFn;
|
|
@@ -27,6 +28,7 @@ export declare function getClampedZoneWidth(graphZone: GraphZone, activeGraphZon
|
|
|
27
28
|
export declare function getGraphZoneFromGraphZones(graphZoneType: GraphZoneType, activeGraphZones: GraphZone[]): GraphZone | undefined;
|
|
28
29
|
export declare function getGraphZoneIndexFromGraphZones(graphZoneType: GraphZoneType, activeGraphZones: GraphZone[]): number;
|
|
29
30
|
export declare function getGraphZoneWidthConstraintsFromGraphZones(graphZoneType: GraphZoneType, activeGraphZones: GraphZone[], graphWidth: number): GraphColumnWidthConstraints;
|
|
31
|
+
export declare function getGraphZoneModeConstants(graphZoneMode?: GraphColumnMode): GraphZoneModeConstants;
|
|
30
32
|
export declare const makeGetKeyForCell: (rows: ProcessedGraphRow[]) => GetRealKeyForCellFunc;
|
|
31
33
|
export declare function getZoneWidth(graphZoneType: GraphZoneType, activeGraphZones: GraphZone[]): number;
|
|
32
34
|
export declare function rowContainsCurrentHeadRef(row?: ProcessedGraphRow | GraphRow): boolean;
|
|
@@ -25,8 +25,8 @@ export type NodeOffsetByColumn = {
|
|
|
25
25
|
export type NodeOpacityByColumn = {
|
|
26
26
|
[id: number]: number;
|
|
27
27
|
};
|
|
28
|
-
export type
|
|
29
|
-
[
|
|
28
|
+
export type XValueByColumnCache = {
|
|
29
|
+
[hash: string]: number;
|
|
30
30
|
};
|
|
31
31
|
export type ArcSvgElementName = 'path';
|
|
32
32
|
export type LineSvgElementName = 'line';
|
|
@@ -313,11 +313,28 @@ export type GraphZonesByType = {
|
|
|
313
313
|
export type GraphColumnSetting = {
|
|
314
314
|
width: number;
|
|
315
315
|
isHidden: boolean;
|
|
316
|
+
mode?: string;
|
|
316
317
|
order?: number;
|
|
317
318
|
};
|
|
318
319
|
export type GraphColumnsSettings = {
|
|
319
320
|
[graphZoneType: string]: GraphColumnSetting;
|
|
320
321
|
};
|
|
322
|
+
export type GraphZoneModeConstants = {
|
|
323
|
+
COMMIT_ZONE_LINE_WIDTH: number;
|
|
324
|
+
COMMIT_ZONE_GUTTER_WIDTH: number;
|
|
325
|
+
COMMIT_ZONE_PADDING_LEFT: number;
|
|
326
|
+
COMMIT_ZONE_PADDING_RIGHT: number;
|
|
327
|
+
COMMIT_COLUMN_WIDTH: number;
|
|
328
|
+
COMMIT_NODE_DIAMETER: number;
|
|
329
|
+
COMMIT_MERGE_NODE_DIAMETER: number;
|
|
330
|
+
COMMIT_NODE_TOP_OFFSET: number;
|
|
331
|
+
COMMIT_MERGE_NODE_LEFT_OFFSET: number;
|
|
332
|
+
COMMIT_MERGE_NODE_TOP_OFFSET: number;
|
|
333
|
+
COMMIT_ZONE_AVATAR_DIAMETER: number;
|
|
334
|
+
COMMIT_ZONE_VIEWPORT_WIDTH_MIN: number;
|
|
335
|
+
IS_COMPACT: boolean;
|
|
336
|
+
RADIUS_DIFF_MERGE_NODE_COMMIT_NODE: number;
|
|
337
|
+
};
|
|
321
338
|
export type GraphColumnWidthConstraints = {
|
|
322
339
|
min: number;
|
|
323
340
|
max: number;
|