Skip to content

Commit a9c0a9e

Browse files
authored
fix: Add correct option name (#927)
* Add initial custom shape * add better way to add custom shape * fill shape only when not custom * add custom shape example * add selected and hover states * Fix comments from CR * add docs * fix docs * fix cr comments * fix: Add label to ctxRenderer * fix: return after custom shape is drawn * fix line * fix: add ctxRenderer and shape 'custom' to options * fix ctxRenderer option validation name
1 parent 2d85b2e commit a9c0a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/network/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ const allOptions = {
397397
__type__: { object, boolean: bool }
398398
},
399399
shape: { string: ['custom', 'ellipse', 'circle', 'database', 'box', 'text', 'image', 'circularImage', 'diamond', 'dot', 'star', 'triangle', 'triangleDown', 'square', 'icon', 'hexagon'] },
400-
customRenderer: { 'function': 'function' },
400+
ctxRenderer: { 'function': 'function' },
401401
shapeProperties: {
402402
borderDashes: { boolean: bool, array },
403403
borderRadius: { number },

0 commit comments

Comments
 (0)