jpf 4.1.69 → 4.1.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { View, IView } from "../../../framework/View";
|
|
2
2
|
import { ViewModelOptions } from "../../../framework/ViewModel";
|
|
3
3
|
import { ObservableArray, Computed, Subscribable } from "knockout";
|
|
4
|
+
import { PreserveAspectRatio } from "../../../framework/types";
|
|
4
5
|
export interface SvgViewModelOptions extends ViewModelOptions {
|
|
5
6
|
x?: number | string | Subscribable<number | string>;
|
|
6
7
|
y?: number | string | Subscribable<number | string>;
|
|
7
8
|
height?: number | string | Subscribable<number | string>;
|
|
8
9
|
width?: number | string | Subscribable<number | string>;
|
|
9
10
|
viewBox?: string;
|
|
11
|
+
preserveAspectRatio?: PreserveAspectRatio | Subscribable<PreserveAspectRatio>;
|
|
10
12
|
children?: Array<IView> | ObservableArray<IView> | Computed<Array<IView>>;
|
|
11
13
|
}
|
|
12
14
|
export declare class SvgView extends View<SvgViewModelOptions> {
|
|
@@ -11,7 +11,8 @@ export class SvgView extends View {
|
|
|
11
11
|
y: viewModel.y,
|
|
12
12
|
height: viewModel.height,
|
|
13
13
|
width: viewModel.width,
|
|
14
|
-
viewBox: viewModel.viewBox
|
|
14
|
+
viewBox: viewModel.viewBox,
|
|
15
|
+
preserveAspectRatio: viewModel.preserveAspectRatio
|
|
15
16
|
}
|
|
16
17
|
}, viewModel),
|
|
17
18
|
children: viewModel.children
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Svg.js","sourceRoot":"","sources":["../../../../src/controls/svg/Svg/Svg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAoB,eAAe,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"Svg.js","sourceRoot":"","sources":["../../../../src/controls/svg/Svg/Svg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAoB,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAcjF,MAAM,OAAO,OAAQ,SAAQ,IAAyB;IAClD,YAAY,SAA8B;QACtC,KAAK,CACD;YACI,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,eAAe,CACtB;gBACI,QAAQ,EAAE,KAAK;gBACf,UAAU,EAAE;oBACR,CAAC,EAAE,SAAS,CAAC,CAAC;oBACd,CAAC,EAAE,SAAS,CAAC,CAAC;oBACd,MAAM,EAAE,SAAS,CAAC,MAAM;oBACxB,KAAK,EAAE,SAAS,CAAC,KAAK;oBACtB,OAAO,EAAE,SAAS,CAAC,OAAO;oBAC1B,mBAAmB,EAAE,SAAS,CAAC,mBAAmB;iBACrD;aACJ,EACD,SAAS,CACZ;YACD,QAAQ,EAAE,SAAS,CAAC,QAAQ;SAC/B,CACJ,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Subscribable } from "knockout";
|
|
2
|
+
import { PreserveAspectRatio } from "./types";
|
|
2
3
|
export interface Attributes {
|
|
3
4
|
alt?: string;
|
|
4
5
|
disabled?: string;
|
|
@@ -40,6 +41,7 @@ export interface Attributes {
|
|
|
40
41
|
dx?: number | string;
|
|
41
42
|
dy?: number | string;
|
|
42
43
|
rotate?: string;
|
|
44
|
+
preserveAspectRatio?: PreserveAspectRatio;
|
|
43
45
|
}
|
|
44
46
|
export interface AttributesSubscribable {
|
|
45
47
|
alt?: string | Subscribable<string>;
|
|
@@ -82,4 +84,5 @@ export interface AttributesSubscribable {
|
|
|
82
84
|
dx?: number | string | Subscribable<number | string>;
|
|
83
85
|
dy?: number | string | Subscribable<number | string>;
|
|
84
86
|
rotate?: string | Subscribable<string>;
|
|
87
|
+
preserveAspectRatio?: PreserveAspectRatio | Subscribable<PreserveAspectRatio>;
|
|
85
88
|
}
|
|
@@ -83,4 +83,5 @@ export type TouchAction = CssGlobalValues | "auto" | "none" | "pan-x" | "pan-lef
|
|
|
83
83
|
export type VerticalAlign = CssGlobalValues | "baseline" | "sub" | "super" | "text-top" | "text-bottom" | "middle" | "top" | "bottom" | CssLength | CssPercentage;
|
|
84
84
|
export type WritingMode = CssGlobalValues | "horizontal-tb" | "vertical-rl" | "vertical-lr" | "sideways-rl" | "sideways-lr";
|
|
85
85
|
export type CssStyleName = "alignContent" | "alignItems";
|
|
86
|
+
export type PreserveAspectRatio = "none" | "xMinYMin" | "xMidYMin" | "xMaxYMin" | "xMinYMid" | "xMidYMid" | "xMaxYMid" | "xMinYMax" | "xMidYMax" | "xMaxYMax" | "meet" | "slice";
|
|
86
87
|
export {};
|