mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Inset clip path + Background circ-ref
This commit is contained in:
@ -1898,7 +1898,7 @@ function isNonNegativeFiniteNumber(value: number): boolean {
|
||||
return isFinite(value) && !isNaN(value) && value >= 0;
|
||||
}
|
||||
|
||||
let supportedPaths = ["rect", "circle", "ellipse", "polygon"];
|
||||
let supportedPaths = ["rect", "circle", "ellipse", "polygon", "inset"];
|
||||
function isClipPathValid(value: string): boolean {
|
||||
if (!value) {
|
||||
return true;
|
||||
|
@ -2,7 +2,6 @@ import { Background as BackgroundDefinition, BackgroundDrawParams } from "ui/sty
|
||||
import { Color, BackgroundRepeat } from "ui/core/view";
|
||||
import { ImageSource } from "image-source";
|
||||
import { CSSValue, parse as cssParse } from "css-value";
|
||||
export * from "ui/core/view";
|
||||
|
||||
export class Background implements BackgroundDefinition {
|
||||
public static default = new Background();
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { View } from "./background-common";
|
||||
import { View } from "ui/core/view";
|
||||
import { isNullOrUndefined, isFunction, getClass } from "utils/types";
|
||||
import { CacheLayerType, layout } from "utils/utils";
|
||||
import { parse } from "css-value";
|
||||
|
@ -1,5 +1,7 @@
|
||||
import { Background, View, Point, layout, Color } from "./background-common";
|
||||
import { View, Color, Point } from "ui/core/view";
|
||||
import { Background } from "./background-common";
|
||||
import { ios as utilsIos } from "utils/utils";
|
||||
import { layout } from "utils/utils";
|
||||
|
||||
export * from "./background-common";
|
||||
|
||||
|
Reference in New Issue
Block a user