diff --git a/packages/core/ui/styling/converters.d.ts b/packages/core/ui/styling/converters.d.ts deleted file mode 100644 index f2efc36d5..000000000 --- a/packages/core/ui/styling/converters.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function timeConverter(value: string): number; -export function animationTimingFunctionConverter(value: string): any; diff --git a/packages/core/ui/styling/style-properties.d.ts b/packages/core/ui/styling/style-properties.d.ts deleted file mode 100644 index 0743bd35b..000000000 --- a/packages/core/ui/styling/style-properties.d.ts +++ /dev/null @@ -1,117 +0,0 @@ -import { CoreTypes } from '../../core-types'; -import { Color } from '../../color'; -import { CssProperty, CssAnimationProperty, ShorthandProperty, InheritedCssProperty } from '../core/properties'; -import { Style } from './style'; -import { Font, FontStyleType, FontWeightType, FontVariationSettingsType } from './font'; -import { Background } from './background'; -import { ClipPathFunction } from './clip-path-function'; -import { LinearGradient } from './linear-gradient'; - -export namespace FixedLength { - export function parse(text: string): CoreTypes.FixedLengthType; - export function equals(a: CoreTypes.FixedLengthType, b: CoreTypes.FixedLengthType): boolean; - /** - * Converts FixedLengthType unit to device pixels. - * @param length The FixedLengthType to convert. - */ - export function toDevicePixels(length: CoreTypes.FixedLengthType): number; - export function convertToString(length: CoreTypes.FixedLengthType): string; -} - -export namespace Length { - export function parse(text: string): CoreTypes.LengthType; - export function equals(a: CoreTypes.LengthType, b: CoreTypes.LengthType): boolean; - /** - * Converts LengthType unit to device pixels. - * @param length The LengthType to convert. - * @param auto Value to use for conversion of "auto". By default is Math.NaN. - */ - export function toDevicePixels(length: CoreTypes.LengthType, auto?: number): number; - export function convertToString(length: CoreTypes.LengthType): string; -} - -export namespace PercentLength { - export function parse(text: string): CoreTypes.PercentLengthType; - export function equals(a: CoreTypes.PercentLengthType, b: CoreTypes.PercentLengthType): boolean; - /** - * Converts PercentLengthType unit to device pixels. - * @param length The PercentLengthType to convert. - * @param auto Value to use for conversion of "auto". By default is Math.NaN. - * @param parentAvailableWidth Value to use as base when converting percent unit. By default is Math.NaN. - */ - export function toDevicePixels(length: CoreTypes.PercentLengthType, auto?: number, parentAvailableWidth?: CoreTypes.px): number; - export function convertToString(length: CoreTypes.PercentLengthType): string; -} - -export const zeroLength: CoreTypes.LengthType; - -export const rotateProperty: CssAnimationProperty; -export const scaleXProperty: CssAnimationProperty; -export const scaleYProperty: CssAnimationProperty; -export const translateXProperty: CssAnimationProperty; -export const translateYProperty: CssAnimationProperty; - -export const clipPathProperty: CssProperty; -export const colorProperty: InheritedCssProperty; - -export const backgroundProperty: ShorthandProperty; -export const backgroundColorProperty: CssAnimationProperty; -export const backgroundImageProperty: CssProperty; -export const backgroundRepeatProperty: CssProperty; -export const backgroundSizeProperty: CssProperty; -export const backgroundPositionProperty: CssProperty; - -export const borderColorProperty: ShorthandProperty; -export const borderTopColorProperty: CssProperty; -export const borderRightColorProperty: CssProperty; -export const borderBottomColorProperty: CssProperty; -export const borderLeftColorProperty: CssProperty; - -export const borderWidthProperty: ShorthandProperty; -export const borderTopWidthProperty: CssProperty; -export const borderRightWidthProperty: CssProperty; -export const borderBottomWidthProperty: CssProperty; -export const borderLeftWidthProperty: CssProperty; - -export const borderRadiusProperty: ShorthandProperty; -export const borderTopLeftRadiusProperty: CssProperty; -export const borderTopRightRadiusProperty: CssProperty; -export const borderBottomRightRadiusProperty: CssProperty; -export const borderBottomLeftRadiusProperty: CssProperty; - -export const zIndexProperty: CssProperty; -export const visibilityProperty: CssProperty; -export const opacityProperty: CssAnimationProperty; - -export const minWidthProperty: CssProperty; -export const minHeightProperty: CssProperty; -export const widthProperty: CssAnimationProperty; -export const heightProperty: CssAnimationProperty; -export const lineHeightProperty: CssProperty; -export const marginProperty: ShorthandProperty; -export const marginLeftProperty: CssProperty; -export const marginRightProperty: CssProperty; -export const marginTopProperty: CssProperty; -export const marginBottomProperty: CssProperty; - -export const paddingProperty: ShorthandProperty; -export const paddingLeftProperty: CssProperty; -export const paddingRightProperty: CssProperty; -export const paddingTopProperty: CssProperty; -export const paddingBottomProperty: CssProperty; - -export const horizontalAlignmentProperty: CssProperty; -export const verticalAlignmentProperty: CssProperty; - -export const fontSizeProperty: InheritedCssProperty; -export const fontFamilyProperty: InheritedCssProperty; -export const fontStyleProperty: InheritedCssProperty; -export const fontWeightProperty: InheritedCssProperty; - -export const backgroundInternalProperty: CssProperty; -export const fontInternalProperty: InheritedCssProperty; -export const fontScaleInternalProperty: InheritedCssProperty; -export const fontVariationSettingsProperty: InheritedCssProperty; - -export const androidElevationProperty: CssProperty; -export const androidDynamicElevationOffsetProperty: CssProperty; diff --git a/packages/core/ui/styling/style-scope.d.ts b/packages/core/ui/styling/style-scope.d.ts deleted file mode 100644 index 390f3d95b..000000000 --- a/packages/core/ui/styling/style-scope.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { ViewBase } from '../core/view-base'; -import { SyntaxTree } from '../../css'; -import { RuleSet, Node, SelectorCore, ChangeMap } from '../styling/css-selector'; -import { KeyframeAnimationInfo } from '../animation/keyframe-animation'; - -export class CssState { - /** - * Re-evaluate the selectors and apply any changes to the underlying view. - */ - public apply(): void; - - /** - * Gets the static selectors that match the view and the dynamic selectors that may potentially match the view. - */ - public changeMap: ChangeMap; - - /** - * Checks whether style scope and CSS state selectors are in sync. - */ - public isSelectorsLatestVersionApplied(): boolean; -} - -export class StyleScope { - public css: string; - public addCss(cssString: string, cssFileName?: string): void; - public addCssFile(cssFileName: string): void; - public changeCssFile(cssFileName: string): void; - - public static createSelectorsFromCss(css: string, cssFileName: string, keyframes: Object): RuleSet[]; - public static createSelectorsFromImports(tree: SyntaxTree, keyframes: Object): RuleSet[]; - public ensureSelectors(): number; - - /** - * Increase the application CSS selector version. - */ - public _increaseApplicationCssSelectorVersion(): void; - public isApplicationCssSelectorsLatestVersionApplied(): boolean; - public isLocalCssSelectorsLatestVersionApplied(): boolean; - - public applySelectors(view: ViewBase): void; - public query(options: Node): SelectorCore[]; - - public getKeyframeAnimationWithName(animationName: string): KeyframeAnimationInfo; - public getAnimations(ruleset: RuleSet): KeyframeAnimationInfo[]; -} - -export function resolveFileNameFromUrl(url: string, appDirectory: string, fileExists: (filepath: string) => boolean, importSource?: string): string; -export function applyInlineStyle(view: ViewBase, style: string): void; -export function addTaggedAdditionalCSS(cssText: string, tag?: string | Number): boolean; -export function removeTaggedAdditionalCSS(tag: String | Number): boolean;