js: declare extended scale type (fit start & fit end)

This commit is contained in:
王劲鹏 2023-09-13 14:32:55 +08:00 committed by osborn
parent 2029fc26c0
commit 18aba72fab
8 changed files with 17 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -2329,6 +2329,8 @@ exports.ScaleType = void 0;
ScaleType[ScaleType["ScaleAspectFit"] = 1] = "ScaleAspectFit";
ScaleType[ScaleType["ScaleAspectFill"] = 2] = "ScaleAspectFill";
ScaleType[ScaleType["Tile"] = 3] = "Tile";
ScaleType[ScaleType["ScaleAspectFitStart"] = 4] = "ScaleAspectFitStart";
ScaleType[ScaleType["ScaleAspectFitEnd"] = 5] = "ScaleAspectFitEnd";
})(exports.ScaleType || (exports.ScaleType = {}));
var Image = /** @class */ (function (_super) {
__extends$f(Image, _super);

View File

@ -1746,6 +1746,8 @@ exports.ScaleType = void 0;
ScaleType[ScaleType["ScaleAspectFit"] = 1] = "ScaleAspectFit";
ScaleType[ScaleType["ScaleAspectFill"] = 2] = "ScaleAspectFill";
ScaleType[ScaleType["Tile"] = 3] = "Tile";
ScaleType[ScaleType["ScaleAspectFitStart"] = 4] = "ScaleAspectFitStart";
ScaleType[ScaleType["ScaleAspectFitEnd"] = 5] = "ScaleAspectFitEnd";
})(exports.ScaleType || (exports.ScaleType = {}));
class Image extends View {
isAnimating(context) {

View File

@ -3287,6 +3287,8 @@ exports.ScaleType = void 0;
ScaleType[ScaleType["ScaleAspectFit"] = 1] = "ScaleAspectFit";
ScaleType[ScaleType["ScaleAspectFill"] = 2] = "ScaleAspectFill";
ScaleType[ScaleType["Tile"] = 3] = "Tile";
ScaleType[ScaleType["ScaleAspectFitStart"] = 4] = "ScaleAspectFitStart";
ScaleType[ScaleType["ScaleAspectFitEnd"] = 5] = "ScaleAspectFitEnd";
})(exports.ScaleType || (exports.ScaleType = {}));
class Image extends View {
isAnimating(context) {

4
doric-js/index.d.ts vendored
View File

@ -900,7 +900,9 @@ declare module "doric" {
ScaleToFill = 0,
ScaleAspectFit = 1,
ScaleAspectFill = 2,
Tile = 3
Tile = 3,
ScaleAspectFitStart = 4,
ScaleAspectFitEnd = 5
}
export class Image extends View {
/**

View File

@ -6,7 +6,9 @@ export declare enum ScaleType {
ScaleToFill = 0,
ScaleAspectFit = 1,
ScaleAspectFill = 2,
Tile = 3
Tile = 3,
ScaleAspectFitStart = 4,
ScaleAspectFitEnd = 5
}
export declare class Image extends View {
/**

View File

@ -32,6 +32,8 @@ export var ScaleType;
ScaleType[ScaleType["ScaleAspectFit"] = 1] = "ScaleAspectFit";
ScaleType[ScaleType["ScaleAspectFill"] = 2] = "ScaleAspectFill";
ScaleType[ScaleType["Tile"] = 3] = "Tile";
ScaleType[ScaleType["ScaleAspectFitStart"] = 4] = "ScaleAspectFitStart";
ScaleType[ScaleType["ScaleAspectFitEnd"] = 5] = "ScaleAspectFitEnd";
})(ScaleType || (ScaleType = {}));
export class Image extends View {
isAnimating(context) {

View File

@ -24,6 +24,8 @@ export enum ScaleType {
ScaleAspectFit,
ScaleAspectFill,
Tile, // image tile mode
ScaleAspectFitStart,
ScaleAspectFitEnd,
}
export class Image extends View {