js: declare extended scale type (fit start & fit end)
This commit is contained in:
parent
2029fc26c0
commit
18aba72fab
File diff suppressed because one or more lines are too long
@ -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);
|
||||
|
@ -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) {
|
||||
|
@ -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
4
doric-js/index.d.ts
vendored
@ -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 {
|
||||
/**
|
||||
|
4
doric-js/lib/src/widget/image.d.ts
vendored
4
doric-js/lib/src/widget/image.d.ts
vendored
@ -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 {
|
||||
/**
|
||||
|
@ -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) {
|
||||
|
@ -24,6 +24,8 @@ export enum ScaleType {
|
||||
ScaleAspectFit,
|
||||
ScaleAspectFill,
|
||||
Tile, // image tile mode
|
||||
ScaleAspectFitStart,
|
||||
ScaleAspectFitEnd,
|
||||
}
|
||||
|
||||
export class Image extends View {
|
||||
|
Reference in New Issue
Block a user