From 17c995260316efc85f39fd1a4a3931129d18e109 Mon Sep 17 00:00:00 2001 From: Connor Cameron Date: Tue, 14 May 2024 19:45:13 +0000 Subject: [PATCH] remove histogram data model from models and add export to lis-histogram-element.ts #386 --- src/models/index.ts | 1 - src/models/lis-histogram-data-model.ts | 7 ------- src/viz/lis-histogram-element.ts | 6 +++++- 3 files changed, 5 insertions(+), 9 deletions(-) delete mode 100644 src/models/lis-histogram-data-model.ts diff --git a/src/models/index.ts b/src/models/index.ts index 46714965..a69ab23b 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -6,4 +6,3 @@ */ export * from './lis-alert-modifier-model'; export * from './lis-string-object-model'; -export * from './lis-histogram-data-model'; diff --git a/src/models/lis-histogram-data-model.ts b/src/models/lis-histogram-data-model.ts deleted file mode 100644 index 329d3c05..00000000 --- a/src/models/lis-histogram-data-model.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * An object for histogram data. - */ -export type HistogramDataModel = { - name: string; - count: number; -}; diff --git a/src/viz/lis-histogram-element.ts b/src/viz/lis-histogram-element.ts index d652d9f1..d307d4dc 100644 --- a/src/viz/lis-histogram-element.ts +++ b/src/viz/lis-histogram-element.ts @@ -1,9 +1,13 @@ import {LitElement, html, css} from 'lit'; import {customElement, property} from 'lit/decorators.js'; import {Ref, createRef, ref} from 'lit/directives/ref.js'; -import {HistogramDataModel} from '../models'; import * as d3 from 'd3'; +export type HistogramDataModel = { + name: string; + count: number; +}; + /** * @htmlElement `` *