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
I started off some typings, would love to see this updated and typed :)
declare module "d3-hsluv"{importtype{ColorSpaceObject,ColorCommonInstance}from"@d3-color"/** * Parses the specified CSS Color Module Level 3 specifier string, returning an RGB color. * If the specifier was not valid, null is returned. * See: http://www.w3.org/TR/css3-color/#colorunits * * @param cssColorSpecifier A CSS Color Module Level 3 specifier string. */exportfunctionhsluv(cssColorSpecifier: string): RGBColor/** * Converts the provided color instance and returns an RGB color. The color instance is converted to the RGB color space using color.rgb. * Note that unlike color.rgb this method always returns a new instance, even if color is already an RGB color. * * @param color A permissible color space instance. */exportfunctionhsluv(color: ColorSpaceObject|ColorCommonInstance): RGBColor/** l, u, v, and optional opacity channels */exportfunctionhsluv(l: number,u: number,v: number,opacity?: number): void/** returns an HSLuv color space interpolator between the two colors a and b */exportfunctioninterpolateHsluv(color1: string,color2: string): void/** * Returns an HSLuv color space interpolator between the two colors a and b, * but does not use the shortest path between hues. */exportfunctioninterpolateHsluvLong(color1: string,color2: string): void}
The text was updated successfully, but these errors were encountered:
I started off some typings, would love to see this updated and typed :)
The text was updated successfully, but these errors were encountered: