Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/build/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { join } from 'node:path'
import { root } from './root.ts'

export const threshold = 600_000
export const threshold = 620_000

export const instantiations = 200_000

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,32 @@ import {
import { formatPercent } from '../FormatPercent/FormatPercent.ts'
import * as TimelineSelectionHandleName from '../TimelineSelectionHandleName/TimelineSelectionHandleName.ts'

const startHandle: VirtualDomNode = {
childCount: 0,
className: mergeClassNames(
ChatDebugViewTimelineSelectionHandle,
ChatDebugViewTimelineSelectionHandleStart,
ChatDebugViewTimelineSelectionMarker,
ChatDebugViewTimelineSelectionMarkerStart,
),
name: TimelineSelectionHandleName.Start,
role: AriaRoles.None,
type: VirtualDomElements.Button,
}

const endHandle: VirtualDomNode = {
childCount: 0,
className: mergeClassNames(
ChatDebugViewTimelineSelectionHandle,
ChatDebugViewTimelineSelectionHandleEnd,
ChatDebugViewTimelineSelectionMarker,
ChatDebugViewTimelineSelectionMarkerEnd,
),
name: TimelineSelectionHandleName.End,
role: AriaRoles.None,
type: VirtualDomElements.Button,
}

export const getSelectionNodesDom = (
hasSelection: boolean,
selectionStartPercent: number | null,
Expand All @@ -27,29 +53,7 @@ export const getSelectionNodesDom = (
style: `left:${formatPercent(selectionStartPercent)};width:${formatPercent(selectionEndPercent - selectionStartPercent)};`,
type: VirtualDomElements.Div,
},
{
childCount: 0,
className: mergeClassNames(
ChatDebugViewTimelineSelectionHandle,
ChatDebugViewTimelineSelectionHandleStart,
ChatDebugViewTimelineSelectionMarker,
ChatDebugViewTimelineSelectionMarkerStart,
),
name: TimelineSelectionHandleName.Start,
role: AriaRoles.None,
type: VirtualDomElements.Button,
},
{
childCount: 0,
className: mergeClassNames(
ChatDebugViewTimelineSelectionHandle,
ChatDebugViewTimelineSelectionHandleEnd,
ChatDebugViewTimelineSelectionMarker,
ChatDebugViewTimelineSelectionMarkerEnd,
),
name: TimelineSelectionHandleName.End,
role: AriaRoles.None,
type: VirtualDomElements.Button,
},
startHandle,
endHandle,
]
}
Loading