@layer_ai/sdk 1.0.95 → 1.0.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.
- package/dist/generated/types.d.ts +40 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1503,6 +1503,10 @@ export interface FileMetadataView {
|
|
|
1503
1503
|
nine_slice?: NineSliceMetadataView | null;
|
|
1504
1504
|
/** Frame grid and animations, for a sprite sheet. */
|
|
1505
1505
|
sprite_sheet?: SpriteSheetMetadataView | null;
|
|
1506
|
+
/** The layers of a layered file, back to front, so drawing each visible PNG at its `left` and `top`, in order, rebuilds the image (blend modes and clipping aside). */
|
|
1507
|
+
layers?: Array<LayerView> | null;
|
|
1508
|
+
/** Scroll factors, for a background split into parallax layers. */
|
|
1509
|
+
parallax?: ParallaxMetadataView | null;
|
|
1506
1510
|
}
|
|
1507
1511
|
export interface FileScore {
|
|
1508
1512
|
/** The rule that produced this verdict. */
|
|
@@ -1979,6 +1983,29 @@ export interface IssuedDeviceCode {
|
|
|
1979
1983
|
interval: number;
|
|
1980
1984
|
}
|
|
1981
1985
|
export type JsonValue = unknown;
|
|
1986
|
+
/** One layer of a layered file, such as the PSD `image.split_layers` returns. */
|
|
1987
|
+
export interface LayerView {
|
|
1988
|
+
/** The layer's name in the file. */
|
|
1989
|
+
name: string;
|
|
1990
|
+
/** `group`, `pixel`, `shape`, `type`, `smartobject` or `psdimage`. */
|
|
1991
|
+
kind: string;
|
|
1992
|
+
/** Download URL of the layer's pixels as a PNG at the layer's own size. Null when it has none. */
|
|
1993
|
+
url: string | null;
|
|
1994
|
+
/** X of the layer's top-left corner on the canvas, in pixels. */
|
|
1995
|
+
left: number;
|
|
1996
|
+
/** Y of the layer's top-left corner on the canvas, in pixels. */
|
|
1997
|
+
top: number;
|
|
1998
|
+
/** Width of the layer's PNG, in pixels. */
|
|
1999
|
+
width: number;
|
|
2000
|
+
/** Height of the layer's PNG, in pixels. */
|
|
2001
|
+
height: number;
|
|
2002
|
+
/** The layer's own visibility; a hidden group hides every layer in it. */
|
|
2003
|
+
visible: boolean;
|
|
2004
|
+
/** The layer's own opacity, 0 (transparent) to 255 (opaque). */
|
|
2005
|
+
opacity: number;
|
|
2006
|
+
/** Index in `layers` of the group that holds this layer; a group's members follow it. Null at the top level. */
|
|
2007
|
+
group: number | null;
|
|
2008
|
+
}
|
|
1982
2009
|
export type LibraryObjectType = "directory" | "file" | "asset" | "style" | "blueprint" | "skill";
|
|
1983
2010
|
export interface ListAiPoliciesOutput {
|
|
1984
2011
|
policies: Array<AiPolicyRecord>;
|
|
@@ -2298,6 +2325,19 @@ export interface PaletteColor {
|
|
|
2298
2325
|
hex: string;
|
|
2299
2326
|
role?: string | null;
|
|
2300
2327
|
}
|
|
2328
|
+
export interface ParallaxLayerView {
|
|
2329
|
+
/** The layer's name. */
|
|
2330
|
+
name: string;
|
|
2331
|
+
/** Share of the camera's movement the layer moves by: 1 moves with the camera, as the playfield does, and 0 stays put, as a sky at infinity does. */
|
|
2332
|
+
scroll: number;
|
|
2333
|
+
}
|
|
2334
|
+
/** How a parallax split's layers scroll. Its layers pair, in order, with top-level `layers` (`group` null). */
|
|
2335
|
+
export interface ParallaxMetadataView {
|
|
2336
|
+
/** True when every layer repeats left to right at the canvas width. */
|
|
2337
|
+
loops: boolean;
|
|
2338
|
+
/** One entry per layer, farthest first. */
|
|
2339
|
+
layers: Array<ParallaxLayerView>;
|
|
2340
|
+
}
|
|
2301
2341
|
export interface ParallaxSplit {
|
|
2302
2342
|
layers?: number;
|
|
2303
2343
|
cuts?: Array<number> | null;
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.0.
|
|
1
|
+
export const VERSION = "1.0.96";
|