MCPcopy Create free account
hub / github.com/chartjs/Chart.js / containsColorsDefinitions

Function containsColorsDefinitions

src/plugins/plugin.colors.ts:70–82  ·  view source on GitHub ↗
(
  descriptors: ColorsDescriptor[] | Record<string, ColorsDescriptor>
)

Source from the content-addressed store, hash-verified

68}
69
70function containsColorsDefinitions(
71 descriptors: ColorsDescriptor[] | Record<string, ColorsDescriptor>
72) {
73 let k: number | string;
74
75 for (k in descriptors) {
76 if (descriptors[k].borderColor || descriptors[k].backgroundColor) {
77 return true;
78 }
79 }
80
81 return false;
82}
83
84function containsColorsDefinition(
85 descriptor: ColorsDescriptor

Callers 1

beforeLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected