MCPcopy Create free account
hub / github.com/adobe/react-spectrum / clone

Method clone

packages/react-stately/src/color/Color.ts:741–743  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

739 }
740
741 clone(): IColor {
742 return new HSLColor(this.hue, this.saturation, this.lightness, this.alpha);
743 }
744
745 getChannelRange(channel: ColorChannel): ColorChannelRange {
746 switch (channel) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected