diff --git a/editor/example/visual-regression-imgs/BASIC_SEMANTIC_ZOOM.png b/editor/example/visual-regression-imgs/BASIC_SEMANTIC_ZOOM.png deleted file mode 100644 index f9a8c997..00000000 Binary files a/editor/example/visual-regression-imgs/BASIC_SEMANTIC_ZOOM.png and /dev/null differ diff --git a/editor/example/visual-regression-imgs/CANCER_VARIANT.png b/editor/example/visual-regression-imgs/CANCER_VARIANT.png deleted file mode 100644 index fce53b8e..00000000 Binary files a/editor/example/visual-regression-imgs/CANCER_VARIANT.png and /dev/null differ diff --git a/editor/example/visual-regression-imgs/CIRCOS.png b/editor/example/visual-regression-imgs/CIRCOS.png deleted file mode 100644 index 26e41796..00000000 Binary files a/editor/example/visual-regression-imgs/CIRCOS.png and /dev/null differ diff --git a/editor/example/visual-regression-imgs/CIRCULAR_BETWEEN_BANDS.png b/editor/example/visual-regression-imgs/CIRCULAR_BETWEEN_BANDS.png deleted file mode 100644 index d10e688e..00000000 Binary files a/editor/example/visual-regression-imgs/CIRCULAR_BETWEEN_BANDS.png and /dev/null differ diff --git a/editor/example/visual-regression-imgs/CIRCULAR_OVERVIEW_LINEAR_DETAIL.png b/editor/example/visual-regression-imgs/CIRCULAR_OVERVIEW_LINEAR_DETAIL.png deleted file mode 100644 index 65260d6c..00000000 Binary files a/editor/example/visual-regression-imgs/CIRCULAR_OVERVIEW_LINEAR_DETAIL.png and /dev/null differ diff --git a/editor/example/visual-regression-imgs/Circular Range.png b/editor/example/visual-regression-imgs/Circular Range.png deleted file mode 100644 index 2fda5cd9..00000000 Binary files a/editor/example/visual-regression-imgs/Circular Range.png and /dev/null differ diff --git a/editor/example/visual-regression-imgs/GREMLIN.png b/editor/example/visual-regression-imgs/GREMLIN.png deleted file mode 100644 index 6c67fa12..00000000 Binary files a/editor/example/visual-regression-imgs/GREMLIN.png and /dev/null differ diff --git a/editor/example/visual-regression-imgs/MATRIX.png b/editor/example/visual-regression-imgs/MATRIX.png deleted file mode 100644 index 6d100632..00000000 Binary files a/editor/example/visual-regression-imgs/MATRIX.png and /dev/null differ diff --git a/editor/example/visual-regression-imgs/RULE.png b/editor/example/visual-regression-imgs/RULE.png deleted file mode 100644 index 3ec13f42..00000000 Binary files a/editor/example/visual-regression-imgs/RULE.png and /dev/null differ diff --git a/editor/example/visual-regression-imgs/SARS_COV_2.png b/editor/example/visual-regression-imgs/SARS_COV_2.png deleted file mode 100644 index 5a24b049..00000000 Binary files a/editor/example/visual-regression-imgs/SARS_COV_2.png and /dev/null differ diff --git a/editor/example/visual-regression-imgs/doc_semantic_zoom_cyto.png b/editor/example/visual-regression-imgs/doc_semantic_zoom_cyto.png deleted file mode 100644 index 9e9ab2f8..00000000 Binary files a/editor/example/visual-regression-imgs/doc_semantic_zoom_cyto.png and /dev/null differ diff --git a/editor/example/visual-regression-imgs/doc_semantic_zoom_sequence.png b/editor/example/visual-regression-imgs/doc_semantic_zoom_sequence.png deleted file mode 100644 index d366aa62..00000000 Binary files a/editor/example/visual-regression-imgs/doc_semantic_zoom_sequence.png and /dev/null differ diff --git a/editor/example/visual-regression-imgs/doc_text.png b/editor/example/visual-regression-imgs/doc_text.png deleted file mode 100644 index e797d74a..00000000 Binary files a/editor/example/visual-regression-imgs/doc_text.png and /dev/null differ diff --git a/editor/example/visual-regression-imgs/doc_triangle.png b/editor/example/visual-regression-imgs/doc_triangle.png deleted file mode 100644 index 42ab1c55..00000000 Binary files a/editor/example/visual-regression-imgs/doc_triangle.png and /dev/null differ diff --git a/editor/example/visual-regression-imgs/doc_vcf_indels.png b/editor/example/visual-regression-imgs/doc_vcf_indels.png deleted file mode 100644 index 4f874afa..00000000 Binary files a/editor/example/visual-regression-imgs/doc_vcf_indels.png and /dev/null differ diff --git a/editor/example/visual-regression-imgs/doc_vcf_point_mutations.png b/editor/example/visual-regression-imgs/doc_vcf_point_mutations.png deleted file mode 100644 index bd37ec56..00000000 Binary files a/editor/example/visual-regression-imgs/doc_vcf_point_mutations.png and /dev/null differ diff --git a/editor/example/visual-regression.test.ts b/img/visual-regression.test.ts similarity index 95% rename from editor/example/visual-regression.test.ts rename to img/visual-regression.test.ts index 4f454601..d84cde3f 100644 --- a/editor/example/visual-regression.test.ts +++ b/img/visual-regression.test.ts @@ -1,5 +1,5 @@ import puppeteer, { Page, Browser } from 'puppeteer'; -import { examples } from '.'; +import { examples } from '../editor/example'; import * as fs from 'fs'; import { beforeAll } from 'vitest'; @@ -78,7 +78,7 @@ Object.entries(examples) const component = await page.waitForSelector('.gosling-component'); await page.waitForNetworkIdle({ idleTime: 2000 }); await delay(2000); // wait 2 seconds for rendering to complete. TODO: see if we can implement javascript API subscription which fires when rendering is done - await component!.screenshot({ path: `editor/example/visual-regression-imgs/${name}.png` }); + await component!.screenshot({ path: `img/visual-regression/${name}.png` }); }, 20000 ); diff --git a/editor/example/visual-regression-imgs/ALIGNMENT.png b/img/visual-regression/ALIGNMENT.png similarity index 100% rename from editor/example/visual-regression-imgs/ALIGNMENT.png rename to img/visual-regression/ALIGNMENT.png diff --git a/editor/example/visual-regression-imgs/BAM_PILEUP.png b/img/visual-regression/BAM_PILEUP.png similarity index 100% rename from editor/example/visual-regression-imgs/BAM_PILEUP.png rename to img/visual-regression/BAM_PILEUP.png diff --git a/editor/example/visual-regression-imgs/BAND.png b/img/visual-regression/BAND.png similarity index 100% rename from editor/example/visual-regression-imgs/BAND.png rename to img/visual-regression/BAND.png diff --git a/img/visual-regression/BASIC_SEMANTIC_ZOOM.png b/img/visual-regression/BASIC_SEMANTIC_ZOOM.png new file mode 100644 index 00000000..422b9b73 Binary files /dev/null and b/img/visual-regression/BASIC_SEMANTIC_ZOOM.png differ diff --git a/img/visual-regression/CANCER_VARIANT.png b/img/visual-regression/CANCER_VARIANT.png new file mode 100644 index 00000000..3d6de568 Binary files /dev/null and b/img/visual-regression/CANCER_VARIANT.png differ diff --git a/img/visual-regression/CIRCOS.png b/img/visual-regression/CIRCOS.png new file mode 100644 index 00000000..f99a4cb6 Binary files /dev/null and b/img/visual-regression/CIRCOS.png differ diff --git a/img/visual-regression/CIRCULAR_BETWEEN_BANDS.png b/img/visual-regression/CIRCULAR_BETWEEN_BANDS.png new file mode 100644 index 00000000..8bc4785c Binary files /dev/null and b/img/visual-regression/CIRCULAR_BETWEEN_BANDS.png differ diff --git a/img/visual-regression/CIRCULAR_OVERVIEW_LINEAR_DETAIL.png b/img/visual-regression/CIRCULAR_OVERVIEW_LINEAR_DETAIL.png new file mode 100644 index 00000000..5a112528 Binary files /dev/null and b/img/visual-regression/CIRCULAR_OVERVIEW_LINEAR_DETAIL.png differ diff --git a/editor/example/visual-regression-imgs/CORCES_ET_AL.png b/img/visual-regression/CORCES_ET_AL.png similarity index 100% rename from editor/example/visual-regression-imgs/CORCES_ET_AL.png rename to img/visual-regression/CORCES_ET_AL.png diff --git a/editor/example/visual-regression-imgs/CYTOBANDS.png b/img/visual-regression/CYTOBANDS.png similarity index 100% rename from editor/example/visual-regression-imgs/CYTOBANDS.png rename to img/visual-regression/CYTOBANDS.png diff --git a/img/visual-regression/Circular Range.png b/img/visual-regression/Circular Range.png new file mode 100644 index 00000000..d60808c6 Binary files /dev/null and b/img/visual-regression/Circular Range.png differ diff --git a/editor/example/visual-regression-imgs/DEBUG.png b/img/visual-regression/DEBUG.png similarity index 100% rename from editor/example/visual-regression-imgs/DEBUG.png rename to img/visual-regression/DEBUG.png diff --git a/editor/example/visual-regression-imgs/GENE_ANNOTATION.png b/img/visual-regression/GENE_ANNOTATION.png similarity index 100% rename from editor/example/visual-regression-imgs/GENE_ANNOTATION.png rename to img/visual-regression/GENE_ANNOTATION.png diff --git a/editor/example/visual-regression-imgs/GIVE.png b/img/visual-regression/GIVE.png similarity index 100% rename from editor/example/visual-regression-imgs/GIVE.png rename to img/visual-regression/GIVE.png diff --git a/img/visual-regression/GREMLIN.png b/img/visual-regression/GREMLIN.png new file mode 100644 index 00000000..8093da89 Binary files /dev/null and b/img/visual-regression/GREMLIN.png differ diff --git a/editor/example/visual-regression-imgs/ISLANDVIEWER.png b/img/visual-regression/ISLANDVIEWER.png similarity index 64% rename from editor/example/visual-regression-imgs/ISLANDVIEWER.png rename to img/visual-regression/ISLANDVIEWER.png index ba10a195..c3d50d0b 100644 Binary files a/editor/example/visual-regression-imgs/ISLANDVIEWER.png and b/img/visual-regression/ISLANDVIEWER.png differ diff --git a/editor/example/visual-regression-imgs/LAYOUT_AND_ARRANGEMENT_1.png b/img/visual-regression/LAYOUT_AND_ARRANGEMENT_1.png similarity index 100% rename from editor/example/visual-regression-imgs/LAYOUT_AND_ARRANGEMENT_1.png rename to img/visual-regression/LAYOUT_AND_ARRANGEMENT_1.png diff --git a/editor/example/visual-regression-imgs/LAYOUT_AND_ARRANGEMENT_2.png b/img/visual-regression/LAYOUT_AND_ARRANGEMENT_2.png similarity index 100% rename from editor/example/visual-regression-imgs/LAYOUT_AND_ARRANGEMENT_2.png rename to img/visual-regression/LAYOUT_AND_ARRANGEMENT_2.png diff --git a/editor/example/visual-regression-imgs/LINKING.png b/img/visual-regression/LINKING.png similarity index 100% rename from editor/example/visual-regression-imgs/LINKING.png rename to img/visual-regression/LINKING.png diff --git a/editor/example/visual-regression-imgs/MARK_DISPLACEMENT.png b/img/visual-regression/MARK_DISPLACEMENT.png similarity index 100% rename from editor/example/visual-regression-imgs/MARK_DISPLACEMENT.png rename to img/visual-regression/MARK_DISPLACEMENT.png diff --git a/img/visual-regression/MATRIX.png b/img/visual-regression/MATRIX.png new file mode 100644 index 00000000..113576ff Binary files /dev/null and b/img/visual-regression/MATRIX.png differ diff --git a/editor/example/visual-regression-imgs/MATRIX_HFFC6.png b/img/visual-regression/MATRIX_HFFC6.png similarity index 100% rename from editor/example/visual-regression-imgs/MATRIX_HFFC6.png rename to img/visual-regression/MATRIX_HFFC6.png diff --git a/editor/example/visual-regression-imgs/MOUSE_EVENT.png b/img/visual-regression/MOUSE_EVENT.png similarity index 100% rename from editor/example/visual-regression-imgs/MOUSE_EVENT.png rename to img/visual-regression/MOUSE_EVENT.png diff --git a/editor/example/visual-regression-imgs/RESPONSIVE_ALIGNMENT.png b/img/visual-regression/RESPONSIVE_ALIGNMENT.png similarity index 100% rename from editor/example/visual-regression-imgs/RESPONSIVE_ALIGNMENT.png rename to img/visual-regression/RESPONSIVE_ALIGNMENT.png diff --git a/editor/example/visual-regression-imgs/RESPONSIVE_COMPARATIVE_MATRICES.png b/img/visual-regression/RESPONSIVE_COMPARATIVE_MATRICES.png similarity index 100% rename from editor/example/visual-regression-imgs/RESPONSIVE_COMPARATIVE_MATRICES.png rename to img/visual-regression/RESPONSIVE_COMPARATIVE_MATRICES.png diff --git a/editor/example/visual-regression-imgs/RESPONSIVE_COMPARATIVE_VIEWS.png b/img/visual-regression/RESPONSIVE_COMPARATIVE_VIEWS.png similarity index 100% rename from editor/example/visual-regression-imgs/RESPONSIVE_COMPARATIVE_VIEWS.png rename to img/visual-regression/RESPONSIVE_COMPARATIVE_VIEWS.png diff --git a/editor/example/visual-regression-imgs/RESPONSIVE_IDEOGRAM.png b/img/visual-regression/RESPONSIVE_IDEOGRAM.png similarity index 100% rename from editor/example/visual-regression-imgs/RESPONSIVE_IDEOGRAM.png rename to img/visual-regression/RESPONSIVE_IDEOGRAM.png diff --git a/editor/example/visual-regression-imgs/RESPONSIVE_MULTIVEC.png b/img/visual-regression/RESPONSIVE_MULTIVEC.png similarity index 100% rename from editor/example/visual-regression-imgs/RESPONSIVE_MULTIVEC.png rename to img/visual-regression/RESPONSIVE_MULTIVEC.png diff --git a/editor/example/visual-regression-imgs/RESPONSIVE_MULTIVEC_CIRCULAR.png b/img/visual-regression/RESPONSIVE_MULTIVEC_CIRCULAR.png similarity index 100% rename from editor/example/visual-regression-imgs/RESPONSIVE_MULTIVEC_CIRCULAR.png rename to img/visual-regression/RESPONSIVE_MULTIVEC_CIRCULAR.png diff --git a/editor/example/visual-regression-imgs/RESPONSIVE_TRACK_WISE_COMPARISON.png b/img/visual-regression/RESPONSIVE_TRACK_WISE_COMPARISON.png similarity index 100% rename from editor/example/visual-regression-imgs/RESPONSIVE_TRACK_WISE_COMPARISON.png rename to img/visual-regression/RESPONSIVE_TRACK_WISE_COMPARISON.png diff --git a/img/visual-regression/RULE.png b/img/visual-regression/RULE.png new file mode 100644 index 00000000..fca6ffab Binary files /dev/null and b/img/visual-regression/RULE.png differ diff --git a/img/visual-regression/SARS_COV_2.png b/img/visual-regression/SARS_COV_2.png new file mode 100644 index 00000000..13dc5b57 Binary files /dev/null and b/img/visual-regression/SARS_COV_2.png differ diff --git a/editor/example/visual-regression-imgs/SASHIMI_PLOT.png b/img/visual-regression/SASHIMI_PLOT.png similarity index 100% rename from editor/example/visual-regression-imgs/SASHIMI_PLOT.png rename to img/visual-regression/SASHIMI_PLOT.png diff --git a/editor/example/visual-regression-imgs/SEMANTIC_ZOOM.png b/img/visual-regression/SEMANTIC_ZOOM.png similarity index 100% rename from editor/example/visual-regression-imgs/SEMANTIC_ZOOM.png rename to img/visual-regression/SEMANTIC_ZOOM.png diff --git a/editor/example/visual-regression-imgs/SEQUENCE.png b/img/visual-regression/SEQUENCE.png similarity index 100% rename from editor/example/visual-regression-imgs/SEQUENCE.png rename to img/visual-regression/SEQUENCE.png diff --git a/editor/example/visual-regression-imgs/TEMPLATE.png b/img/visual-regression/TEMPLATE.png similarity index 100% rename from editor/example/visual-regression-imgs/TEMPLATE.png rename to img/visual-regression/TEMPLATE.png diff --git a/editor/example/visual-regression-imgs/VISUAL_ENCODING.png b/img/visual-regression/VISUAL_ENCODING.png similarity index 100% rename from editor/example/visual-regression-imgs/VISUAL_ENCODING.png rename to img/visual-regression/VISUAL_ENCODING.png diff --git a/editor/example/visual-regression-imgs/VISUAL_ENCODING_CIRCULAR.png b/img/visual-regression/VISUAL_ENCODING_CIRCULAR.png similarity index 100% rename from editor/example/visual-regression-imgs/VISUAL_ENCODING_CIRCULAR.png rename to img/visual-regression/VISUAL_ENCODING_CIRCULAR.png diff --git a/editor/example/visual-regression-imgs/doc_area.png b/img/visual-regression/doc_area.png similarity index 64% rename from editor/example/visual-regression-imgs/doc_area.png rename to img/visual-regression/doc_area.png index ba10a195..c3d50d0b 100644 Binary files a/editor/example/visual-regression-imgs/doc_area.png and b/img/visual-regression/doc_area.png differ diff --git a/editor/example/visual-regression-imgs/doc_bar.png b/img/visual-regression/doc_bar.png similarity index 65% rename from editor/example/visual-regression-imgs/doc_bar.png rename to img/visual-regression/doc_bar.png index 432b8cb1..880e54a5 100644 Binary files a/editor/example/visual-regression-imgs/doc_bar.png and b/img/visual-regression/doc_bar.png differ diff --git a/editor/example/visual-regression-imgs/doc_bed.png b/img/visual-regression/doc_bed.png similarity index 100% rename from editor/example/visual-regression-imgs/doc_bed.png rename to img/visual-regression/doc_bed.png diff --git a/editor/example/visual-regression-imgs/doc_brush.png b/img/visual-regression/doc_brush.png similarity index 100% rename from editor/example/visual-regression-imgs/doc_brush.png rename to img/visual-regression/doc_brush.png diff --git a/editor/example/visual-regression-imgs/doc_dummy_track.png b/img/visual-regression/doc_dummy_track.png similarity index 100% rename from editor/example/visual-regression-imgs/doc_dummy_track.png rename to img/visual-regression/doc_dummy_track.png diff --git a/editor/example/visual-regression-imgs/doc_gff.png b/img/visual-regression/doc_gff.png similarity index 100% rename from editor/example/visual-regression-imgs/doc_gff.png rename to img/visual-regression/doc_gff.png diff --git a/editor/example/visual-regression-imgs/doc_line.png b/img/visual-regression/doc_line.png similarity index 52% rename from editor/example/visual-regression-imgs/doc_line.png rename to img/visual-regression/doc_line.png index 89a0a21c..ee153e3e 100644 Binary files a/editor/example/visual-regression-imgs/doc_line.png and b/img/visual-regression/doc_line.png differ diff --git a/editor/example/visual-regression-imgs/doc_link.png b/img/visual-regression/doc_link.png similarity index 100% rename from editor/example/visual-regression-imgs/doc_link.png rename to img/visual-regression/doc_link.png diff --git a/editor/example/visual-regression-imgs/doc_linking_tracks.png b/img/visual-regression/doc_linking_tracks.png similarity index 100% rename from editor/example/visual-regression-imgs/doc_linking_tracks.png rename to img/visual-regression/doc_linking_tracks.png diff --git a/editor/example/visual-regression-imgs/doc_overlay_bar_point.png b/img/visual-regression/doc_overlay_bar_point.png similarity index 100% rename from editor/example/visual-regression-imgs/doc_overlay_bar_point.png rename to img/visual-regression/doc_overlay_bar_point.png diff --git a/editor/example/visual-regression-imgs/doc_overlay_line_point.png b/img/visual-regression/doc_overlay_line_point.png similarity index 100% rename from editor/example/visual-regression-imgs/doc_overlay_line_point.png rename to img/visual-regression/doc_overlay_line_point.png diff --git a/editor/example/visual-regression-imgs/doc_overlay_rect_text.png b/img/visual-regression/doc_overlay_rect_text.png similarity index 100% rename from editor/example/visual-regression-imgs/doc_overlay_rect_text.png rename to img/visual-regression/doc_overlay_rect_text.png diff --git a/editor/example/visual-regression-imgs/doc_point.png b/img/visual-regression/doc_point.png similarity index 80% rename from editor/example/visual-regression-imgs/doc_point.png rename to img/visual-regression/doc_point.png index b00db10b..9c7752a7 100644 Binary files a/editor/example/visual-regression-imgs/doc_point.png and b/img/visual-regression/doc_point.png differ diff --git a/editor/example/visual-regression-imgs/doc_rect.png b/img/visual-regression/doc_rect.png similarity index 100% rename from editor/example/visual-regression-imgs/doc_rect.png rename to img/visual-regression/doc_rect.png diff --git a/img/visual-regression/doc_semantic_zoom_cyto.png b/img/visual-regression/doc_semantic_zoom_cyto.png new file mode 100644 index 00000000..c0ae5322 Binary files /dev/null and b/img/visual-regression/doc_semantic_zoom_cyto.png differ diff --git a/img/visual-regression/doc_semantic_zoom_sequence.png b/img/visual-regression/doc_semantic_zoom_sequence.png new file mode 100644 index 00000000..a484291e Binary files /dev/null and b/img/visual-regression/doc_semantic_zoom_sequence.png differ diff --git a/img/visual-regression/doc_text.png b/img/visual-regression/doc_text.png new file mode 100644 index 00000000..156e24a5 Binary files /dev/null and b/img/visual-regression/doc_text.png differ diff --git a/img/visual-regression/doc_triangle.png b/img/visual-regression/doc_triangle.png new file mode 100644 index 00000000..f0bc3608 Binary files /dev/null and b/img/visual-regression/doc_triangle.png differ diff --git a/img/visual-regression/doc_vcf_indels.png b/img/visual-regression/doc_vcf_indels.png new file mode 100644 index 00000000..8b80c22f Binary files /dev/null and b/img/visual-regression/doc_vcf_indels.png differ diff --git a/img/visual-regression/doc_vcf_point_mutations.png b/img/visual-regression/doc_vcf_point_mutations.png new file mode 100644 index 00000000..5da37ebb Binary files /dev/null and b/img/visual-regression/doc_vcf_point_mutations.png differ diff --git a/tsconfig.json b/tsconfig.json index 147cc628..fd659eb3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -42,7 +42,7 @@ "editor/index.tsx", "embed/index.ts" ], - "include": ["src", "src/**/*.d.ts", "editor"], + "include": ["src", "src/**/*.d.ts", "editor", "img/visual-regression.test.ts"], "exclude": [ "node_modules", "public",