diff options
| author | bobzel <zzzman@gmail.com> | 2020-12-03 10:55:05 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-12-03 10:55:05 -0500 |
| commit | b3d1b60ac867a472ba791f57c8eb2d7afbb95767 (patch) | |
| tree | 4e9530d03ea91ed79770743901c9dbcbc3a16a16 /src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | |
| parent | 2770f8609818b11b3073ded0bec437abc333f37f (diff) | |
changed parameters for style provider to use documentViewProps instead of renderDepth
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 0ba13192d..ab0c3964b 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -393,8 +393,8 @@ 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); + getClusterColor = (doc: Opt<Doc>, props: Opt<DocumentViewProps>, property: string, layerProvider?: (doc: Doc, assign?: boolean) => boolean) => { + let clusterColor = this.props.styleProvider?.(doc, props, property, layerProvider); // bcz: check 'props' used to be renderDepth + 1 if (property !== "backgroundColor") return clusterColor; const cluster = NumCast(doc?.cluster); if (this.Document._useClusters) { |
