You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a color set should not prevent using color options in layer data (ie. rgb values or hex codes).
// Passing in color mapping here
const colors = [
'#5e81ac',
'#d08770',
'#ebcb8b',
'#81a1c1',
];
new GraferController(canvas, { points, colors layers });
// Prevents ability to change colors in layer data without using mapping
layer.edges.data.push(Object.assign({}, edge, {
sourceColor: '#ebcb8b',
targetColor: '#ebcb8b',
}));
The text was updated successfully, but these errors were encountered:
adamocarolli
changed the title
Color sets prevent using other color options
Color map prevents other color options
Dec 22, 2020
Using a color set should not prevent using color options in layer data (ie. rgb values or hex codes).
The text was updated successfully, but these errors were encountered: