diff options
| author | bobzel <zzzman@gmail.com> | 2020-11-30 00:31:07 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-11-30 00:31:07 -0500 |
| commit | 5da87a5d161446308031dd4b221f1f7e3a127e72 (patch) | |
| tree | ded913ed7c92b6d3b1529c4718a04d657ccf661b /src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | |
| parent | c5c2d28f8884f5a66e3503fc7aaab08c63378b31 (diff) | |
changed color to backgroundColor in styleProvider. added a stuyle provider for overlayDocs
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index ea630b67a..0ba13192d 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -395,7 +395,7 @@ export class CollectionFreeFormView extends CollectionSubView<PanZoomDocument, P getClusterColor = (doc: Opt<Doc>, renderDepth: number, property: string, layerProvider?: (doc: Doc, assign?: boolean) => boolean) => { let clusterColor = this.props.styleProvider?.(doc, this.props.renderDepth + 1, property, layerProvider); - if (property !== "color") return clusterColor; + if (property !== "backgroundColor") return clusterColor; const cluster = NumCast(doc?.cluster); if (this.Document._useClusters) { if (this._clusterSets.length <= cluster) { |
