@compass-framework/core 1.1.4 → 1.1.5
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.
package/@types/Picture.d.ts
CHANGED
|
@@ -2,17 +2,21 @@ import { Consumer } from "@compass-framework/library";
|
|
|
2
2
|
import { Bitmap } from "./Bitmap";
|
|
3
3
|
|
|
4
4
|
export declare interface Picture {
|
|
5
|
-
|
|
5
|
+
addListener(notify: Consumer<Picture.PictureStatus>): void
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
removeListener(notify: Consumer<Picture.PictureStatus>): void
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
complete(): boolean;
|
|
10
|
+
|
|
11
|
+
oneListener(notify: Consumer<Picture.PictureStatus>): void
|
|
10
12
|
|
|
11
13
|
getWidth(): number
|
|
12
14
|
|
|
13
15
|
getHeight(): number
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
getUrl(): string;
|
|
18
|
+
|
|
19
|
+
setUrl(url: string): void
|
|
16
20
|
|
|
17
21
|
asBitmap(): Bitmap
|
|
18
22
|
asBitmap(scale: number): Bitmap
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Consumer } from "@compass-framework/library";
|
|
2
1
|
import { BitmapDrawable } from "./BitmapDrawable";
|
|
3
2
|
import { Picture } from "./Picture";
|
|
4
3
|
import { Context } from "./Context";
|
|
@@ -8,7 +7,9 @@ export declare class PictureDrawable extends BitmapDrawable {
|
|
|
8
7
|
|
|
9
8
|
public invalidate() : void;
|
|
10
9
|
|
|
11
|
-
public
|
|
10
|
+
public getPictureWidth(): number;
|
|
12
11
|
|
|
13
|
-
public
|
|
12
|
+
public getPicture(): Picture;
|
|
13
|
+
|
|
14
|
+
public getPictureHeight(): number
|
|
14
15
|
}
|