From c1bc00811476d11a0a8ef7f40c5fdaa6fbb20f1c Mon Sep 17 00:00:00 2001 From: dsehnal <david.sehnal@gmail.com> Date: Tue, 28 Mar 2023 10:04:36 +0200 Subject: [PATCH] Fix JSX reference --- CHANGELOG.md | 1 + src/mol-plugin-state/manager/loci-label.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12c6a5a28..795551d47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Note that since we don't clearly distinguish between a public and private interf - Pointer lock to look around scene - Toggle spin/rock animation using keys - Apply bumpiness as lightness variation with `ignoreLight` +- Remove `JSX` reference from `loci-labels.ts` ## [v3.32.0] - 2023-03-20 diff --git a/src/mol-plugin-state/manager/loci-label.ts b/src/mol-plugin-state/manager/loci-label.ts index b5b9f9412..fab0260d4 100644 --- a/src/mol-plugin-state/manager/loci-label.ts +++ b/src/mol-plugin-state/manager/loci-label.ts @@ -11,7 +11,8 @@ import { Representation } from '../../mol-repr/representation'; import { MarkerAction } from '../../mol-util/marker-action'; import { arrayRemoveAtInPlace } from '../../mol-util/array'; -export type LociLabel = JSX.Element | string +// any represents React element. For compatibility to including the type +export type LociLabel = string | any export type LociLabelProvider = { label: (loci: Loci, repr?: Representation<any>) => LociLabel | undefined group?: (entry: LociLabel) => string -- GitLab