MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / constructor

Method constructor

src/cm/colorView.ts:125–130  ·  view source on GitHub ↗
({ color, colorRaw, ...state }: ColorWidgetParams)

Source from the content-addressed store, hash-verified

123 colorRaw: string;
124
125 constructor({ color, colorRaw, ...state }: ColorWidgetParams) {
126 super();
127 this.state = { ...state, colorRaw }; // from, to, colorType, alpha, original text
128 this.color = color; // hex for input value
129 this.colorRaw = this.state.colorRaw; // original css color string
130 }
131
132 eq(other: ColorWidget): boolean {
133 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected