@compass-framework/core 1.2.0 → 1.2.1

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,7 +1,6 @@
1
1
  import { Drawable } from "./Drawable";
2
2
  import { Bitmap } from "./Bitmap";
3
3
  import { Canvas } from "./Canvas";
4
- import { Context } from "./Context";
5
4
 
6
5
  export declare abstract class BitmapDrawable extends Drawable {
7
6
  protected constructor(bitmap: Bitmap);
@@ -1,14 +1,21 @@
1
1
  import { BitmapDrawable } from "./BitmapDrawable";
2
+ import { Paint } from "./Paint";
2
3
  import { Picture } from "./Picture";
3
4
 
4
5
  export declare class PictureDrawable extends BitmapDrawable {
5
- public constructor(url: string);
6
+ public constructor(url?: string);
6
7
 
7
8
  public invalidate() : void;
8
9
 
9
- public getPictureWidth(): number;
10
+ public setUrl(url: string): void;
11
+
12
+ public getUrl(): string;
10
13
 
11
14
  public getPicture(): Picture;
12
15
 
16
+ public getPaint(): Paint;
17
+
18
+ public getPictureWidth(): number;
19
+
13
20
  public getPictureHeight(): number
14
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-framework/core",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "@compass-framework/core public api",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./index.js",