diff --git a/core/src/TransformDescriptor.ts b/core/src/TransformDescriptor.ts index 58f715a..ed363a2 100644 --- a/core/src/TransformDescriptor.ts +++ b/core/src/TransformDescriptor.ts @@ -1,6 +1,10 @@ import type ItemMerger from './debug/ItemMerger'; interface Debug { + /** + * If set to true, all items will be shown as relevant. + */ + readonly showAll?: boolean; /** * If this is set, the debug UI will group items and display a merged item. */ diff --git a/core/src/debug/StageResult.ts b/core/src/debug/StageResult.ts index 17cadce..0622df9 100644 --- a/core/src/debug/StageResult.ts +++ b/core/src/debug/StageResult.ts @@ -31,5 +31,5 @@ export function initialStage(inputSchema: string[], inputItems: Item[]): StageRe inputItems.length } items`, ]; - return new StageResult(toDescriptor({}), schema, pages, tracker, messages); + return new StageResult(toDescriptor({ debug: { showAll: true } }), schema, pages, tracker, messages); } diff --git a/core/src/transformer/CacluclateStatistics.ts b/core/src/transformer/CacluclateStatistics.ts index f93ea37..c44f19a 100644 --- a/core/src/transformer/CacluclateStatistics.ts +++ b/core/src/transformer/CacluclateStatistics.ts @@ -16,6 +16,9 @@ export default class CalculateStatistics extends ItemTransformer { 'maxHeightFont', 'fontToFormats', ], + debug: { + showAll: true, + }, }); } diff --git a/core/src/transformer/CalculateCoordinates.ts b/core/src/transformer/CalculateCoordinates.ts index e063b4f..f4ab5a6 100644 --- a/core/src/transformer/CalculateCoordinates.ts +++ b/core/src/transformer/CalculateCoordinates.ts @@ -10,6 +10,9 @@ export default class CalculateCoordinates extends ItemTransformer { 'Extracts X and Y out of the Transform array', { requireColumns: ['transform'], + debug: { + showAll: true, + }, }, (incomingSchema) => { return incomingSchema.reduce((schema, column) => { diff --git a/ui/src/debug/DebugView.svelte b/ui/src/debug/DebugView.svelte index 54f93d1..3291e43 100644 --- a/ui/src/debug/DebugView.svelte +++ b/ui/src/debug/DebugView.svelte @@ -101,6 +101,7 @@ pages={visiblePages} {maxPage} {pageIsPinned} + showAllAsRelevant={stageResult.descriptor?.debug?.showAll} bind:onlyRelevantItems changes={stageResult.changes} /> diff --git a/ui/src/debug/ItemTable.svelte b/ui/src/debug/ItemTable.svelte index 414104c..5980c3c 100644 --- a/ui/src/debug/ItemTable.svelte +++ b/ui/src/debug/ItemTable.svelte @@ -13,6 +13,7 @@ export let maxPage: number; export let pageIsPinned: boolean; export let onlyRelevantItems: boolean; + export let showAllAsRelevant = false; export let changes: ChangeIndex; let maxItemsToRenderInOneLoad = 200; let renderedMaxPage = 0; @@ -74,7 +75,7 @@ {/if} - {#each page.itemGroups.filter((group) => !onlyRelevantItems || changes.hasChanged(group.top)) as itemGroup, itemIdx} + {#each page.itemGroups.filter((group) => showAllAsRelevant || !onlyRelevantItems || changes.hasChanged(group.top)) as itemGroup, itemIdx}