Skip to content

Commit 07c3022

Browse files
committed
test custom config
1 parent d1c692a commit 07c3022

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

dev/App.js

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,28 @@ class App extends Component {
186186
customConfig={{
187187
visibility_rules: {
188188
blacklist: [
189+
{type: 'attrName', regex_match: 'font.family'},
189190
{type: 'attrName', regex_match: 'color'},
190-
{type: 'attrName', regex_match: 'font'},
191191
],
192-
whitelist: [{type: 'attrName', regex_match: 'colorscale'}],
192+
whitelist: [
193+
{
194+
type: 'attrName',
195+
regex_match:
196+
'colorbar(!?.bgcolor|.tickfont.color|.title.font.color|.outlinecolor|.bordercolor|.tickcolor)',
197+
},
198+
{
199+
type: 'attrName',
200+
regex_match:
201+
'coloraxis(!?.colorscale|.colorbar.outlinecolor|.colorbar.bordercolor|.colorbar.bgcolor|.colorbar.tickcolor|.colorbar.tickfont.color|.colorbar.title.font.color)',
202+
},
203+
{type: 'attrName', regex_match: 'autocolorscale'},
204+
{type: 'attrName', regex_match: 'usecolormap'},
205+
{type: 'attrName', regex_match: 'bundlecolors'},
206+
{
207+
type: 'attrName',
208+
regex_match: 'colorscales(!?.items.concentrationscales.colorscale)',
209+
},
210+
],
193211
},
194212
}}
195213
>

0 commit comments

Comments
 (0)