11'use strict' ;
22
33import type { AttributeMap , AttrsToType } from '../../types/lib/attributes' ;
4-
5- const constants = require ( './constants' ) ;
4+ import constants from './constants' ;
65
76/**
87 * @generates ModeBar
@@ -15,31 +14,31 @@ const attributes = {
1514 values : [ 'v' , 'h' ] as const ,
1615 dflt : 'h' ,
1716 editType : 'modebar' ,
18- description : 'Sets the orientation of the modebar.' ,
17+ description : 'Sets the orientation of the modebar.'
1918 } ,
2019 bgcolor : {
2120 valType : 'color' ,
2221 editType : 'modebar' ,
23- description : 'Sets the background color of the modebar.' ,
22+ description : 'Sets the background color of the modebar.'
2423 } ,
2524 color : {
2625 valType : 'color' ,
2726 editType : 'modebar' ,
28- description : 'Sets the color of the icons in the modebar.' ,
27+ description : 'Sets the color of the icons in the modebar.'
2928 } ,
3029 activecolor : {
3130 valType : 'color' ,
3231 editType : 'modebar' ,
33- description : 'Sets the color of the active or hovered on icons in the modebar.' ,
32+ description : 'Sets the color of the active or hovered on icons in the modebar.'
3433 } ,
3534 uirevision : {
3635 valType : 'any' ,
3736 editType : 'none' ,
3837 description : [
3938 'Controls persistence of user-driven changes related to the modebar,' ,
4039 'including `hovermode`, `dragmode`, and `showspikes` at both the' ,
41- 'root level and inside subplots. Defaults to `layout.uirevision`.' ,
42- ] . join ( ' ' ) ,
40+ 'root level and inside subplots. Defaults to `layout.uirevision`.'
41+ ] . join ( ' ' )
4342 } ,
4443 add : {
4544 valType : 'string' ,
@@ -51,8 +50,8 @@ const attributes = {
5150 'Please note that these buttons will only be shown if they are' ,
5251 'compatible with all trace types used in a graph.' ,
5352 'Similar to `config.modeBarButtonsToAdd` option.' ,
54- 'This may include *' + constants . backButtons . join ( '*, *' ) + '*.' ,
55- ] . join ( ' ' ) ,
53+ 'This may include *' + constants . backButtons . join ( '*, *' ) + '*.'
54+ ] . join ( ' ' )
5655 } ,
5756 remove : {
5857 valType : 'string' ,
@@ -62,9 +61,9 @@ const attributes = {
6261 description : [
6362 'Determines which predefined modebar buttons to remove.' ,
6463 'Similar to `config.modeBarButtonsToRemove` option.' ,
65- 'This may include *' + constants . foreButtons . join ( '*, *' ) + '*.' ,
66- ] . join ( ' ' ) ,
67- } ,
64+ 'This may include *' + constants . foreButtons . join ( '*, *' ) + '*.'
65+ ] . join ( ' ' )
66+ }
6867} as const satisfies AttributeMap ;
6968
7069export type ModeBarAttributes = AttrsToType < typeof attributes > ;
0 commit comments