@compass-framework/core 1.2.1 → 1.2.3

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,3 +1,22 @@
1
- import { View } from "./View";
1
+ import {
2
+ Consumer,
3
+ InterfaceTemplate
4
+ } from "@compass-framework/library";
5
+
6
+ import {
7
+ View
8
+ } from "./View";
2
9
 
3
10
  export declare class ImageView extends View {}
11
+
12
+ export declare namespace ImageView {
13
+ export interface UpdateNotification<S> {
14
+ addNotification(c: Consumer<S>): void;
15
+
16
+ oneNotification(c: Consumer<S>): void;
17
+
18
+ removeNotification(c: Consumer<S>): void;
19
+ }
20
+
21
+ export class UpdateNotification<S> extends InterfaceTemplate {}
22
+ }
@@ -1,14 +1,23 @@
1
- import { BitmapDrawable } from "./BitmapDrawable";
1
+ import { Consumer, Implements } from "@compass-framework/library";
2
2
  import { Paint } from "./Paint";
3
+ import { BitmapDrawable } from "./BitmapDrawable";
3
4
  import { Picture } from "./Picture";
5
+ import { ImageView } from "./ImageView";
4
6
 
5
- export declare class PictureDrawable extends BitmapDrawable {
7
+ @Implements(ImageView.UpdateNotification)
8
+ export declare class PictureDrawable extends BitmapDrawable implements ImageView.UpdateNotification<Picture.PictureStatus> {
6
9
  public constructor(url?: string);
7
10
 
8
- public invalidate() : void;
11
+ public addNotification(c: Consumer<Picture.PictureStatus>): void;
12
+
13
+ public oneNotification(c: Consumer<Picture.PictureStatus>): void;
14
+
15
+ public removeNotification(c: Consumer<Picture.PictureStatus>): void;
9
16
 
10
17
  public setUrl(url: string): void;
11
18
 
19
+ public invalidate() : void;
20
+
12
21
  public getUrl(): string;
13
22
 
14
23
  public getPicture(): Picture;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-framework/core",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "@compass-framework/core public api",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./index.js",
@@ -11,6 +11,6 @@
11
11
  "access": "public"
12
12
  },
13
13
  "dependencies": {
14
- "@compass-framework/library": "1.0.4"
14
+ "@compass-framework/library": "1.0.5"
15
15
  }
16
16
  }