@@ -6,6 +6,7 @@ var texttemplateAttrs = require('../../plots/template_attributes').texttemplateA
66var colorScaleAttrs = require ( '../../components/colorscale/attributes' ) ;
77var fontAttrs = require ( '../../plots/font_attributes' ) ;
88var constants = require ( './constants' ) ;
9+ var pattern = require ( '../../components/drawing/attributes' ) . pattern ;
910
1011var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
1112
@@ -40,54 +41,7 @@ var marker = extendFlat({
4041 editType : 'style' ,
4142 description : 'Sets the opacity of the bars.'
4243 } ,
43- pattern : {
44- shape : {
45- valType : 'enumerated' ,
46- values : [ '' , '/' , '\\' , 'x' , '-' , '|' , '+' , '.' ] ,
47- dflt : '' ,
48- arrayOk : true ,
49- editType : 'style' ,
50- description : [
51- 'Sets the shape of the pattern fill.' ,
52- 'By default, no pattern is used for filling the area.' ,
53- ] . join ( ' ' )
54- } ,
55- bgcolor : {
56- valType : 'color' ,
57- arrayOk : true ,
58- editType : 'style' ,
59- description : [
60- 'Sets the background color of the pattern fill.' ,
61- 'Defaults to a transparent background.' ,
62- ] . join ( ' ' )
63- } ,
64- size : {
65- valType : 'number' ,
66- min : 0 ,
67- dflt : 8 ,
68- arrayOk : true ,
69- editType : 'style' ,
70- description : [
71- 'Sets the size of unit squares of the pattern fill in pixels,' ,
72- 'which corresponds to the interval of repetition of the pattern.' ,
73- ] . join ( ' ' )
74- } ,
75- solidity : {
76- valType : 'number' ,
77- min : 0 ,
78- max : 1 ,
79- dflt : 0.3 ,
80- arrayOk : true ,
81- editType : 'style' ,
82- description : [
83- 'Sets the solidity of the pattern fill.' ,
84- 'Solidity is roughly proportional to the ratio of the area filled by the pattern.' ,
85- 'Solidity of 0 shows only the background color without pattern' ,
86- 'and solidty of 1 shows only the foreground color without pattern.' ,
87- ] . join ( ' ' )
88- } ,
89- editType : 'style'
90- }
44+ pattern : pattern
9145} ) ;
9246
9347module . exports = {
0 commit comments