@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.
@@ -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
- complete(): boolean;
5
+ addListener(notify: Consumer<Picture.PictureStatus>): void
6
6
 
7
- setUrl(url: string): void
7
+ removeListener(notify: Consumer<Picture.PictureStatus>): void
8
8
 
9
- getUrl(): string;
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
- addListener(notify: Consumer<Picture.PictureStatus>): void
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 setGravity(gravity: number): void;
10
+ public getPictureWidth(): number;
12
11
 
13
- public addOnLoaded(notify: Consumer<Picture.PictureStatus>): void;
12
+ public getPicture(): Picture;
13
+
14
+ public getPictureHeight(): number
14
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-framework/core",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "@compass-framework/core public api",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./index.js",