Skip to content

Commit

Permalink
Fix/focus (#11)
Browse files Browse the repository at this point in the history
* ensure that focus is also sent along with the hologram
  • Loading branch information
BryanChrisBrown authored Jul 26, 2023
1 parent 7732953 commit 9f916f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lookingglass/bridge",
"version": "0.0.6-alpha",
"version": "0.0.7-alpha",
"license": "MIT",
"description": "Official Looking Glass Library for interacting with Looking Glass holographic displays.",
"types": "./dist/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion src/library/playlists/playlistItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface PlaylistItemArgs {
zoom: number
}

/**Playist items are what we actually end up sending to Bridge.
/**Playist items are what we actually end up sending to Bridge.
* These are managed by the Playlist class, and should not be called externally.
* We take the hologram object the user creates and prepare it to be added to a playlist with the toBridge function. */
class PlaylistItem {
Expand Down Expand Up @@ -56,6 +56,7 @@ class PlaylistItem {
uri: this.hologram.uri,
rows: settings.rows,
cols: settings.columns,
focus: settings.focus ? settings.focus : 0,
aspect: settings.aspect,
view_count: settings.viewCount,
isRGBD: 0,
Expand All @@ -71,6 +72,7 @@ class PlaylistItem {
uri: this.hologram.uri,
rows: 8,
cols: 13,
focus: settings.focus ? settings.focus : 0,
aspect: settings.aspect,
view_count: 8 * 13,
isRGBD: 1,
Expand Down
1 change: 1 addition & 0 deletions src/library/schemas/schema.hologram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const QuiltHologramArgs = z.object({
columns: z.number(),
aspect: z.number(),
viewCount: z.number(),
focus: z.number().optional(),
})

export const RGBDHologramArgs = z.object({
Expand Down
1 change: 1 addition & 0 deletions src/library/schemas/schema.requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const insert_playlist_entry = z.object({
id: z.number(),
index: z.number(),
uri: z.string(),
focus: z.number(),
rows: z.number(),
cols: z.number(),
aspect: z.number(),
Expand Down

0 comments on commit 9f916f8

Please sign in to comment.