Beginnings of the film out display selection UI

This commit is contained in:
mmcwilliams 2019-06-22 11:52:36 -04:00
parent 9a464a2fcf
commit 6cda9aed1d
8 changed files with 38 additions and 10 deletions

View File

@ -346,10 +346,22 @@
<div>
<div>
<div id="path_bar">
<input id="video_file" type="text" onclick="devices.digitalSelect();" readonly />
<input id="filmout_file" type="text" onclick="devices.digitalSelect();" readonly />
<button>Use Video</butto>
</div>
<div id="video_preview_wrap">
<img src="#" id="video_preview">
<div id="filmout_preview_wrap">
<img src="#" id="filmout">
</div>
<div id="filmout_position_wrap">
<button id="filmout_rewind"><</button>
<input id="filmout_position" type="text" value="00001"/>
<button id="filmout_advance">></button>
</div>
<div id="filmout_functions">
<button id="filmout_preview">Preview</button>
<button id="filmout_meter">Meter</button>
<button id="filmout_focus">Focus</button>
<button id="filmout_field">Field Guide</button>
</div>
</div>
</div>

View File

@ -2,6 +2,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
const os_1 = require("os");
const systeminformation_1 = require("systeminformation");
const electron_1 = require("electron");
//private
const exec_1 = require("exec");
/**
@ -44,7 +45,10 @@ function displayMap(obj) {
async function displays() {
const obj = await systeminformation_1.graphics();
const arr = obj.displays;
return arr.map(displayMap);
const displays = electron_1.screen.getAllDisplays();
const siarr = arr.map(displayMap);
console.dir(arr);
console.dir(displays);
}
/**
* Profile the current system and return an object with

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,2BAAkC;AAClC,yDAA6C;AAC7C,SAAS;AACT,+BAA4B;AAC5B;;;;;;IAMI;AAEJ,KAAK,UAAU,YAAY,CAAE,QAAiB;IAC7C,IAAI,GAAG,GAAS,EAAE,CAAC;IAEnB,IAAI;QACH,MAAM,WAAI,CAAC,WAAW,CAAC,CAAC;QACxB,GAAG,CAAC,MAAM,GAAG,QAAQ,CAAC;KACtB;IAAC,OAAO,GAAG,EAAE;QACb,4CAA4C;QAC5C,OAA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AM,GAAG,GAAW,GAAG,CAAC,QAAQ,CAAC;IACjC,MAAM,QAAQ,GAAW,iBAAM,CAAC,cAAc,EAAE,CAAC;IACjD,MAAM,KAAK,GAAW,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC1C,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAChB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;AACtB,CAAC;AAED;;;;;;GAMG;AACH,KAAK,UAAU,MAAM;IACpB,MAAM,GAAG,GAAS,EAAE,CAAC;IACrB,IAAI,QAAiB,CAAC;IAEtB,IAAI;QACH,GAAG,CAAC,GAAG,GAAG,WAAM,EAAE,CAAC;KACnB;IAAC,OAAO,GAAG,EAAE;QACb,GAAG,CAAC,GAAG,GAAG,MAAM,CAAA;KAChB;IAED,QAAQ,GAAG,SAAI,EAAE,CAAC;IAElB,IAAI,QAAQ,KAAK,QAAQ,EAAE;QAC1B,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;KACrB;SAAM,IAAI,QAAQ,KAAK,YAAY,EAAE;QACrC,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;KACrB;SAAM;QACN,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;KACrB;IAED,GAAG,CAAC,QAAQ,GAAG,MAAM,QAAQ,EAAE,CAAA;IAC/B,GAAG,CAAC,IAAI,GAAG,MAAM,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAE5C,OAAO,GAAG,CAAC;AACZ,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC"}

View File

@ -2,6 +2,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
const os_1 = require("os");
const systeminformation_1 = require("systeminformation");
const electron_1 = require("electron");
//private
const exec_1 = require("exec");
/**
@ -44,7 +45,10 @@ function displayMap(obj) {
async function displays() {
const obj = await systeminformation_1.graphics();
const arr = obj.displays;
return arr.map(displayMap);
const displays = electron_1.screen.getAllDisplays();
const siarr = arr.map(displayMap);
console.dir(arr);
console.dir(displays);
}
/**
* Profile the current system and return an object with

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,2BAAkC;AAClC,yDAA6C;AAC7C,SAAS;AACT,+BAA4B;AAC5B;;;;;;IAMI;AAEJ,KAAK,UAAU,YAAY,CAAE,QAAiB;IAC7C,IAAI,GAAG,GAAS,EAAE,CAAC;IAEnB,IAAI;QACH,MAAM,WAAI,CAAC,WAAW,CAAC,CAAC;QACxB,GAAG,CAAC,MAAM,GAAG,QAAQ,CAAC;KACtB;IAAC,OAAO,GAAG,EAAE;QACb,4CAA4C;QAC5C,OAAO,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,GAAG,CAAC,CAAC;KACrD;IACD,UAAU;IACV,IAAI,QAAQ,KAAK,KAAK,EAAE;QACvB,IAAI;YACH,MAAM,WAAI,CAAC,QAAQ,CAAC,CAAC;YACrB,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC;SAChB;QAAC,OAAO,GAAG,EAAE;YACb,yCAAyC;YACzC,OAAO,OAAO,CAAC,KAAK,CAAC,sBAAsB,EAAE,GAAG,CAAC,CAAC;SAClD;KACD;IAED,OAAO,GAAG,CAAC;AACZ,CAAC;AAED,SAAS,UAAU,CAAE,GAAS;IAC7B,MAAM,EAAE,GAAG;QACV,KAAK,EAAG,GAAG,CAAC,WAAW;QACvB,MAAM,EAAG,GAAG,CAAC,WAAW;KACxB,CAAC;IACF,OAAO,EAAE,CAAC;AACX,CAAC;AAED,KAAK,UAAU,QAAQ;IACtB,MAAM,GAAG,GAAS,MAAM,4BAAQ,EAAE,CAAA;IAClC,MAAM,GAAG,GAAW,GAAG,CAAC,QAAQ,CAAC;IACjC,OAAO,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AAC5B,CAAC;AAED;;;;;;GAMG;AACH,KAAK,UAAU,MAAM;I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AC;KACrB;IAED,GAAG,CAAC,QAAQ,GAAG,MAAM,QAAQ,EAAE,CAAA;IAC/B,GAAG,CAAC,IAAI,GAAG,MAAM,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAE5C,OAAO,GAAG,CAAC;AACZ,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC"}

View File

@ -2,6 +2,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
const os_1 = require("os");
const systeminformation_1 = require("systeminformation");
const electron_1 = require("electron");
//private
const exec_1 = require("exec");
/**
@ -44,7 +45,10 @@ function displayMap(obj) {
async function displays() {
const obj = await systeminformation_1.graphics();
const arr = obj.displays;
return arr.map(displayMap);
const displays = electron_1.screen.getAllDisplays();
const siarr = arr.map(displayMap);
console.dir(arr);
console.dir(displays);
}
/**
* Profile the current system and return an object with

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,2BAAkC;AAClC,yDAA6C;AAC7C,SAAS;AACT,+BAA4B;AAC5B;;;;;;IAMI;AAEJ,KAAK,UAAU,YAAY,CAAE,QAAiB;IAC7C,IAAI,GAAG,GAAS,EAAE,CAAC;IAEnB,IAAI;QACH,MAAM,WAAI,CAAC,WAAW,CAAC,CAAC;QACxB,GAAG,CAAC,MAAM,GAAG,QAAQ,CAAC;KACtB;IAAC,OAAO,GAAG,EAAE;QACb,4CAA4C;QAC5C,OAAO,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,GAAG,CAAC,CAAC;KACrD;IACD,UAAU;IACV,IAAI,QAAQ,KAAK,KAAK,EAAE;QACvB,IAAI;YACH,MAAM,WAAI,CAAC,QAAQ,CAAC,CAAC;YACrB,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC;SAChB;QAAC,OAAO,GAAG,EAAE;YACb,yCAAyC;YACzC,OAAO,OAAO,CAAC,KAAK,CAAC,sBAAsB,EAAE,GAA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U,MAAM;IACpB,MAAM,GAAG,GAAS,EAAE,CAAC;IACrB,IAAI,QAAiB,CAAC;IAEtB,IAAI;QACH,GAAG,CAAC,GAAG,GAAG,WAAM,EAAE,CAAC;KACnB;IAAC,OAAO,GAAG,EAAE;QACb,GAAG,CAAC,GAAG,GAAG,MAAM,CAAA;KAChB;IAED,QAAQ,GAAG,SAAI,EAAE,CAAC;IAElB,IAAI,QAAQ,KAAK,QAAQ,EAAE;QAC1B,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;KACrB;SAAM,IAAI,QAAQ,KAAK,YAAY,EAAE;QACrC,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;KACrB;SAAM;QACN,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;KACrB;IAED,GAAG,CAAC,QAAQ,GAAG,MAAM,QAAQ,EAAE,CAAA;IAC/B,GAAG,CAAC,IAAI,GAAG,MAAM,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAE5C,OAAO,GAAG,CAAC;AACZ,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC"}

View File

@ -2,6 +2,7 @@
import { tmpdir, type } from 'os';
import { graphics } from 'systeminformation';
import { screen } from 'electron';
//private
import { exec } from 'exec';
/**
@ -47,7 +48,10 @@ function displayMap (obj : any) {
async function displays () {
const obj : any = await graphics()
const arr : any[] = obj.displays;
return arr.map(displayMap);
const displays : any[] = screen.getAllDisplays();
const siarr : any[] = arr.map(displayMap);
console.dir(arr)
console.dir(displays)
}
/**