@compass-framework/core 1.2.45 → 1.2.47

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,4 @@
1
+ import { Environment } from "./Environment";
1
2
  import { Resources } from "./Resources";
2
3
  import { XMLViewFactoryRegistry } from "./XMLViewFactoryRegistry";
3
4
 
@@ -5,4 +6,6 @@ export declare interface Context {
5
6
  getViewFactoryRegistry(): XMLViewFactoryRegistry;
6
7
 
7
8
  getResources(): Resources;
9
+
10
+ getEnvironment(): Environment;
8
11
  }
@@ -16,11 +16,11 @@ export declare abstract class Drawable {
16
16
 
17
17
  public abstract getOpacity(): number;
18
18
 
19
- public onBoundsChange(bounds: Rect): void;
20
-
21
19
  public onConfigurationChanged(newConfig: Configuration): void;
22
20
 
23
- public onDensityMetricsChanged(newConfig: Configuration): void;
21
+ public onBoundsChange(bounds: Rect): void;
22
+
23
+ public onDensityChanged(newConfig: Configuration): void;
24
24
 
25
25
  public copyBounds() : Rect;
26
26
  public copyBounds(bounds: Rect): void;
@@ -0,0 +1,5 @@
1
+ import { Resolver } from "./Resolver";
2
+
3
+ export interface Environment {
4
+ defineResolver(name: string, resolver: Resolver): void
5
+ }
@@ -0,0 +1,7 @@
1
+ import { Resources } from "./Resources";
2
+
3
+ export declare class Resolver {
4
+ public mounted(res: Resources): void;
5
+
6
+ public resolve(...parameter: any[]): any;
7
+ }
package/index.d.ts CHANGED
@@ -107,3 +107,5 @@ export * from './@types/ResourcesInflater';
107
107
  export * from './@types/ApplicationFrameSettings';
108
108
  export * from './@types/EditRichText';
109
109
  export * from './@types/InputMethodServer';
110
+ export * from './@types/Environment';
111
+ export * from './@types/Resolver';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-framework/core",
3
- "version": "1.2.45",
3
+ "version": "1.2.47",
4
4
  "description": "@compass-framework/core public api",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./index.js",