@triniwiz/nativescript-masonkit 1.0.0-beta.95 → 1.0.0-beta.96

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.
@@ -13,3 +13,17 @@ export * from './web';
13
13
  export { setCssDiagnostics, getCssDiagnostics, clearCssDiagnostics, formatCssDiagnostics, cssDiagnosticsEnabled } from './diagnostics';
14
14
  export { setCssUnitContext, cssUnits } from './units';
15
15
  export { registerAppFontsDirectory } from './fonts';
16
+ export type BoxShadowRenderMode = 'auto' | 'render-node' | 'software';
17
+ /**
18
+ * Global override for the Android box shadow backend.
19
+ * 'auto' (default) renders with RenderNode on API 31+ hardware canvases and
20
+ * with bitmaps otherwise; the override applies process-wide, including to
21
+ * already-attached views.
22
+ */
23
+ export declare function setBoxShadowRenderMode(mode: BoxShadowRenderMode): void;
24
+ /**
25
+ * Global override for the software shadow raster scale (a linear scale in
26
+ * (0, 1]); pass null to restore the dynamic downsampling policy. Mostly
27
+ * useful when visually comparing the two backends at equal fidelity.
28
+ */
29
+ export declare function setBoxShadowSoftwareRasterScale(scale: number | null): void;
package/index.android.js CHANGED
@@ -14,5 +14,22 @@ export * from './web';
14
14
  export { setCssDiagnostics, getCssDiagnostics, clearCssDiagnostics, formatCssDiagnostics, cssDiagnosticsEnabled } from './diagnostics';
15
15
  export { setCssUnitContext, cssUnits } from './units';
16
16
  export { registerAppFontsDirectory } from './fonts';
17
+ /**
18
+ * Global override for the Android box shadow backend.
19
+ * 'auto' (default) renders with RenderNode on API 31+ hardware canvases and
20
+ * with bitmaps otherwise; the override applies process-wide, including to
21
+ * already-attached views.
22
+ */
23
+ export function setBoxShadowRenderMode(mode) {
24
+ org.nativescript.mason.masonkit.NodeHelper.getShared().setBoxShadowRenderMode(mode);
25
+ }
26
+ /**
27
+ * Global override for the software shadow raster scale (a linear scale in
28
+ * (0, 1]); pass null to restore the dynamic downsampling policy. Mostly
29
+ * useful when visually comparing the two backends at equal fidelity.
30
+ */
31
+ export function setBoxShadowSoftwareRasterScale(scale) {
32
+ org.nativescript.mason.masonkit.NodeHelper.getShared().setBoxShadowSoftwareRasterScale(scale ?? 0);
33
+ }
17
34
  registerAppFontsDirectory();
18
35
  //# sourceMappingURL=index.android.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../packages/nativescript-masonkit/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEpD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,WAAW,IAAI,EAAE,EAAE,aAAa,IAAI,EAAE,EAAE,MAAM,QAAQ,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,cAAc,OAAO,CAAC;AAEtB,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACvI,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEpD,yBAAyB,EAAE,CAAC"}
1
+ {"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../packages/nativescript-masonkit/index.android.ts"],"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AK,IAAI,CAAC,CAAC,CAAC;AACrG,CAAC;AAED,yBAAyB,EAAE,CAAC"}
package/index.d.ts CHANGED
@@ -378,3 +378,20 @@ export type { CssDiagnostic, CssDiagnosticKind, CssDiagnosticsOptions } from './
378
378
 
379
379
  export { setCssUnitContext, cssUnits } from './units';
380
380
  export type { CssUnitContext } from './units';
381
+
382
+ export type BoxShadowRenderMode = 'auto' | 'render-node' | 'software';
383
+
384
+ /**
385
+ * Global override for the Android box shadow backend.
386
+ * 'auto' (default) renders with RenderNode on API 31+ hardware canvases and
387
+ * with bitmaps otherwise; the override applies process-wide, including to
388
+ * already-attached views.
389
+ */
390
+ export declare function setBoxShadowRenderMode(mode: BoxShadowRenderMode): void;
391
+
392
+ /**
393
+ * Global override for the software shadow raster scale (a linear scale in
394
+ * (0, 1]); pass null to restore the dynamic downsampling policy. Mostly
395
+ * useful when visually comparing the two backends at equal fidelity.
396
+ */
397
+ export declare function setBoxShadowSoftwareRasterScale(scale: number | null): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triniwiz/nativescript-masonkit",
3
- "version": "1.0.0-beta.95",
3
+ "version": "1.0.0-beta.96",
4
4
  "description": "Web Inspired Layout",
5
5
  "main": "index",
6
6
  "typings": "index.d.ts",