fix(color): setAlpha and other methods return proper Color class (#10441)

This commit is contained in:
farfromrefuge
2024-01-19 20:39:06 +01:00
committed by GitHub
parent 02231f0997
commit 4f12fee2ef
3 changed files with 4 additions and 3 deletions

View File

@ -1,11 +1,12 @@
import * as definition from '.';
import * as types from '../utils/types';
import * as knownColors from './known-colors';
import { Color } from '.';
const SHARP = '#';
const HEX_REGEX = /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i;
export class Color implements definition.Color {
export class ColorBase implements definition.Color {
private _argb: number;
private _name: string;

View File

@ -1,4 +1,4 @@
import { Color as ColorBase } from './color-common';
import { ColorBase } from './color-common';
export class Color extends ColorBase {
get android(): number {

View File

@ -1,4 +1,4 @@
import { Color as ColorBase } from './color-common';
import { ColorBase } from './color-common';
export class Color extends ColorBase {
private _ios: UIColor;