From 12da1bac527fd70d5e64f5044ee6803463b91881 Mon Sep 17 00:00:00 2001 From: etowahadams Date: Wed, 12 Jun 2024 14:26:16 -0400 Subject: [PATCH] feat(core): remove specProcessed event (#1076) * feat: remove specProcessed event * feat: update schema --- src/compiler/compile.ts | 8 -------- src/gosling-schema/gosling.schema.ts | 8 -------- 2 files changed, 16 deletions(-) diff --git a/src/compiler/compile.ts b/src/compiler/compile.ts index b2381e8c..45b46ab0 100644 --- a/src/compiler/compile.ts +++ b/src/compiler/compile.ts @@ -8,7 +8,6 @@ import type { UrlToFetchOptions } from 'src/core/gosling-component'; import { renderHiGlass as createHiGlassModels } from './create-higlass-models'; import { manageResponsiveSpecs } from './responsive'; import type { IdTable } from '../api/track-and-view-ids'; -import { publish } from '../api/pubsub'; /** The callback function called everytime after the spec has been compiled */ export type CompileCallback = ( @@ -70,13 +69,6 @@ export function compile( trackInfos = getRelativeTrackInfo(specCopy, theme).trackInfos; } - // publish the fixed spec - // used for alt-gosling - publish('specProcessed', { - id: specCopy.id, - spec: specCopy - }); - // Make HiGlass models for individual tracks createHiGlassModels(specCopy, trackInfos, callback, theme, urlToFetchOptions); } diff --git a/src/gosling-schema/gosling.schema.ts b/src/gosling-schema/gosling.schema.ts index d36ff29b..27d5e531 100644 --- a/src/gosling-schema/gosling.schema.ts +++ b/src/gosling-schema/gosling.schema.ts @@ -284,13 +284,6 @@ interface CommonEventData { data: Datum[]; } -interface SpecEventData { - /** Source visualization ID, i.e., `track.id` */ - id: string; - /** Gosling spec */ - spec: GoslingSpec; -} - export interface GenomicPosition { chromosome: string; position: number; @@ -379,7 +372,6 @@ export type _EventMap = { click: PointMouseEventData; rangeSelect: RangeMouseEventData; rawData: CommonEventData; - specProcessed: SpecEventData; trackMouseOver: TrackApiData; trackClick: TrackApiData; // TODO (Jul-25-2022): with https://github.com/higlass/higlass/pull/1098, we can support circular layouts onNewTrack: OnNewTrackEventData;