Skip to content

Commit

Permalink
Merge branch 'feat/all_events' of https://github.com/looking-glass/br…
Browse files Browse the repository at this point in the history
…idge.js into feat/all_events
  • Loading branch information
BryanChrisBrown committed Mar 8, 2024
2 parents b65caf9 + 8bc361e commit 7d5eab2
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 32 deletions.
2 changes: 1 addition & 1 deletion dist/looking-glass-bridge.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/looking-glass-bridge.js.map

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions dist/looking-glass-bridge.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class De {
x(this, "id");
x(this, "index");
x(this, "playlistName");
x(this, "tag");
this.hologram = e.hologram, this.id = e.id, this.index = e.index, this.playlistName = e.playlistName, this.orchestration = e.orchestration;
}
toBridge() {
Expand All @@ -190,7 +191,8 @@ class De {
focus: t.focus ? t.focus : 0,
aspect: t.aspect,
view_count: t.viewCount,
isRGBD: 0
isRGBD: 0,
tag: t.tag ? t.tag : ""
}, e;
} else if (this.hologram.type == "rgbd") {
const t = this.hologram.settings;
Expand All @@ -210,7 +212,8 @@ class De {
depth_inversion: t.depth_inversion,
chroma_depth: t.chroma_depth,
depthiness: t.depthiness,
zoom: t.zoom
zoom: t.zoom,
tag: t.tag ? t.tag : ""
}, e;
}
throw new Error("Invalid hologram type");
Expand Down Expand Up @@ -4034,7 +4037,8 @@ const q = (n, e) => i.number().refine((t) => t >= n && t <= e, {
columns: i.number(),
aspect: i.number(),
viewCount: i.number(),
focus: i.number().optional()
focus: i.number().optional(),
tag: i.string().optional()
}), _s = i.object({
/**Aspect Ratio of the hologram,
* this should match the source image you provide, not the RGBD Pair */
Expand All @@ -4056,7 +4060,8 @@ const q = (n, e) => i.number().refine((t) => t >= n && t <= e, {
/**Whether or not to cutoff depth beyond a certain point. 0 for false, 1 for true */
depth_cutoff: i.union([i.literal(1), i.literal(0)]).optional(),
/**Zoom can be between 0.1 and 2 */
zoom: Ze.range
zoom: Ze.range,
tag: i.string().optional()
}), bs = {
quilt: vs,
rgbd: _s
Expand Down
2 changes: 1 addition & 1 deletion dist/looking-glass-bridge.mjs.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/playlists/playlistItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export interface PlaylistItemArgs {
orchestration: string;
name: string;
index: number;
tag: string | undefined;
id: string;
uri: string;
rows: number;
Expand All @@ -27,6 +28,7 @@ declare class PlaylistItem {
id: number;
index: number;
playlistName: string;
tag: string | undefined;
constructor(args: {
hologram: HologramType;
id: number;
Expand Down
48 changes: 24 additions & 24 deletions dist/schemas/schema.events.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1827,13 +1827,13 @@ export declare const newItemPlayingResponse: z.ZodObject<{
name: string;
type: "WSTRING";
};
event: {
value: "Monitor Connect" | "Monitor Disconnect" | "Progress Start" | "Progress Completion" | "Progress Update" | "Playlist Instance" | "Playlist Insert" | "Playlist Delete" | "Sync/Play Playlist" | "Sync/Play Playlist Complete" | "Sync/Play Playlist Cancelled" | "Transport Control Pause" | "Transport Control Play" | "Transport Control Next" | "Transport Control Previous" | "All Events";
tag: {
value: string;
name: string;
type: "WSTRING";
};
tag: {
value: string;
event: {
value: "Monitor Connect" | "Monitor Disconnect" | "Progress Start" | "Progress Completion" | "Progress Update" | "Playlist Instance" | "Playlist Insert" | "Playlist Delete" | "Sync/Play Playlist" | "Sync/Play Playlist Complete" | "Sync/Play Playlist Cancelled" | "Transport Control Pause" | "Transport Control Play" | "Transport Control Next" | "Transport Control Previous" | "All Events";
name: string;
type: "WSTRING";
};
Expand All @@ -1848,13 +1848,13 @@ export declare const newItemPlayingResponse: z.ZodObject<{
name: string;
type: "WSTRING";
};
event: {
value: "Monitor Connect" | "Monitor Disconnect" | "Progress Start" | "Progress Completion" | "Progress Update" | "Playlist Instance" | "Playlist Insert" | "Playlist Delete" | "Sync/Play Playlist" | "Sync/Play Playlist Complete" | "Sync/Play Playlist Cancelled" | "Transport Control Pause" | "Transport Control Play" | "Transport Control Next" | "Transport Control Previous" | "All Events";
tag: {
value: string;
name: string;
type: "WSTRING";
};
tag: {
value: string;
event: {
value: "Monitor Connect" | "Monitor Disconnect" | "Progress Start" | "Progress Completion" | "Progress Update" | "Playlist Instance" | "Playlist Insert" | "Playlist Delete" | "Sync/Play Playlist" | "Sync/Play Playlist Complete" | "Sync/Play Playlist Cancelled" | "Transport Control Pause" | "Transport Control Play" | "Transport Control Next" | "Transport Control Previous" | "All Events";
name: string;
type: "WSTRING";
};
Expand All @@ -1871,13 +1871,13 @@ export declare const newItemPlayingResponse: z.ZodObject<{
name: string;
type: "WSTRING";
};
event: {
value: "Monitor Connect" | "Monitor Disconnect" | "Progress Start" | "Progress Completion" | "Progress Update" | "Playlist Instance" | "Playlist Insert" | "Playlist Delete" | "Sync/Play Playlist" | "Sync/Play Playlist Complete" | "Sync/Play Playlist Cancelled" | "Transport Control Pause" | "Transport Control Play" | "Transport Control Next" | "Transport Control Previous" | "All Events";
tag: {
value: string;
name: string;
type: "WSTRING";
};
tag: {
value: string;
event: {
value: "Monitor Connect" | "Monitor Disconnect" | "Progress Start" | "Progress Completion" | "Progress Update" | "Playlist Instance" | "Playlist Insert" | "Playlist Delete" | "Sync/Play Playlist" | "Sync/Play Playlist Complete" | "Sync/Play Playlist Cancelled" | "Transport Control Pause" | "Transport Control Play" | "Transport Control Next" | "Transport Control Previous" | "All Events";
name: string;
type: "WSTRING";
};
Expand All @@ -1896,13 +1896,13 @@ export declare const newItemPlayingResponse: z.ZodObject<{
name: string;
type: "WSTRING";
};
event: {
value: "Monitor Connect" | "Monitor Disconnect" | "Progress Start" | "Progress Completion" | "Progress Update" | "Playlist Instance" | "Playlist Insert" | "Playlist Delete" | "Sync/Play Playlist" | "Sync/Play Playlist Complete" | "Sync/Play Playlist Cancelled" | "Transport Control Pause" | "Transport Control Play" | "Transport Control Next" | "Transport Control Previous" | "All Events";
tag: {
value: string;
name: string;
type: "WSTRING";
};
tag: {
value: string;
event: {
value: "Monitor Connect" | "Monitor Disconnect" | "Progress Start" | "Progress Completion" | "Progress Update" | "Playlist Instance" | "Playlist Insert" | "Playlist Delete" | "Sync/Play Playlist" | "Sync/Play Playlist Complete" | "Sync/Play Playlist Cancelled" | "Transport Control Pause" | "Transport Control Play" | "Transport Control Next" | "Transport Control Previous" | "All Events";
name: string;
type: "WSTRING";
};
Expand Down Expand Up @@ -1941,13 +1941,13 @@ export declare const newItemPlayingResponse: z.ZodObject<{
name: string;
type: "WSTRING";
};
event: {
value: "Monitor Connect" | "Monitor Disconnect" | "Progress Start" | "Progress Completion" | "Progress Update" | "Playlist Instance" | "Playlist Insert" | "Playlist Delete" | "Sync/Play Playlist" | "Sync/Play Playlist Complete" | "Sync/Play Playlist Cancelled" | "Transport Control Pause" | "Transport Control Play" | "Transport Control Next" | "Transport Control Previous" | "All Events";
tag: {
value: string;
name: string;
type: "WSTRING";
};
tag: {
value: string;
event: {
value: "Monitor Connect" | "Monitor Disconnect" | "Progress Start" | "Progress Completion" | "Progress Update" | "Playlist Instance" | "Playlist Insert" | "Playlist Delete" | "Sync/Play Playlist" | "Sync/Play Playlist Complete" | "Sync/Play Playlist Cancelled" | "Transport Control Pause" | "Transport Control Play" | "Transport Control Next" | "Transport Control Previous" | "All Events";
name: string;
type: "WSTRING";
};
Expand Down Expand Up @@ -1979,13 +1979,13 @@ export declare const newItemPlayingResponse: z.ZodObject<{
name: string;
type: "WSTRING";
};
event: {
value: "Monitor Connect" | "Monitor Disconnect" | "Progress Start" | "Progress Completion" | "Progress Update" | "Playlist Instance" | "Playlist Insert" | "Playlist Delete" | "Sync/Play Playlist" | "Sync/Play Playlist Complete" | "Sync/Play Playlist Cancelled" | "Transport Control Pause" | "Transport Control Play" | "Transport Control Next" | "Transport Control Previous" | "All Events";
tag: {
value: string;
name: string;
type: "WSTRING";
};
tag: {
value: string;
event: {
value: "Monitor Connect" | "Monitor Disconnect" | "Progress Start" | "Progress Completion" | "Progress Update" | "Playlist Instance" | "Playlist Insert" | "Playlist Delete" | "Sync/Play Playlist" | "Sync/Play Playlist Complete" | "Sync/Play Playlist Cancelled" | "Transport Control Pause" | "Transport Control Play" | "Transport Control Next" | "Transport Control Previous" | "All Events";
name: string;
type: "WSTRING";
};
Expand Down
6 changes: 6 additions & 0 deletions dist/schemas/schema.hologram.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,21 @@ export declare const QuiltHologramArgs: z.ZodObject<{
aspect: z.ZodNumber;
viewCount: z.ZodNumber;
focus: z.ZodOptional<z.ZodNumber>;
tag: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
rows: number;
aspect: number;
columns: number;
viewCount: number;
focus?: number | undefined;
tag?: string | undefined;
}, {
rows: number;
aspect: number;
columns: number;
viewCount: number;
focus?: number | undefined;
tag?: string | undefined;
}>;
export declare const RGBDHologramArgs: z.ZodObject<{
/**Aspect Ratio of the hologram,
Expand All @@ -43,6 +46,7 @@ export declare const RGBDHologramArgs: z.ZodObject<{
depth_cutoff: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<0>]>>;
/**Zoom can be between 0.1 and 2 */
zoom: z.ZodEffects<z.ZodNumber, number, number>;
tag: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
zoom: number;
depth_loc: 0 | 2 | 1 | 3;
Expand All @@ -52,6 +56,7 @@ export declare const RGBDHologramArgs: z.ZodObject<{
aspect: number;
focus?: number | undefined;
depth_cutoff?: 0 | 1 | undefined;
tag?: string | undefined;
}, {
zoom: number;
depth_loc: 0 | 2 | 1 | 3;
Expand All @@ -61,6 +66,7 @@ export declare const RGBDHologramArgs: z.ZodObject<{
aspect: number;
focus?: number | undefined;
depth_cutoff?: 0 | 1 | undefined;
tag?: string | undefined;
}>;
export interface HologramClasses {
quilt: QuiltHologram;
Expand Down
3 changes: 3 additions & 0 deletions dist/schemas/schema.requests.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export declare const insert_playlist_entry: z.ZodObject<{
chroma_depth: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
depthiness: z.ZodOptional<z.ZodNumber>;
zoom: z.ZodOptional<z.ZodNumber>;
tag: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
orchestration: string;
name: string;
Expand All @@ -137,6 +138,7 @@ export declare const insert_playlist_entry: z.ZodObject<{
chroma_depth?: 0 | 1 | undefined;
depthiness?: number | undefined;
zoom?: number | undefined;
tag?: string | undefined;
}, {
orchestration: string;
name: string;
Expand All @@ -154,6 +156,7 @@ export declare const insert_playlist_entry: z.ZodObject<{
chroma_depth?: 0 | 1 | undefined;
depthiness?: number | undefined;
zoom?: number | undefined;
tag?: string | undefined;
}>;
export type update_playlist_entry = {
orchestration: string;
Expand Down
2 changes: 1 addition & 1 deletion dist/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

0 comments on commit 7d5eab2

Please sign in to comment.