Skip to content

Commit

Permalink
feat: remove specProcessed event
Browse files Browse the repository at this point in the history
  • Loading branch information
etowahadams committed Jun 10, 2024
1 parent c3169df commit 22d547b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/compiler/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down Expand Up @@ -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);
}
1 change: 0 additions & 1 deletion src/gosling-schema/gosling.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,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;
Expand Down

0 comments on commit 22d547b

Please sign in to comment.