@photon-os/sdk 1.0.0-alpha.6 → 1.0.0-alpha.7
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/index.d.mts +0 -11
- package/dist/index.d.ts +0 -11
- package/dist/index.js +0 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1337,25 +1337,6 @@ var PreferencesManager = class {
|
|
|
1337
1337
|
}
|
|
1338
1338
|
};
|
|
1339
1339
|
|
|
1340
|
-
// src/framework/SystemManager.ts
|
|
1341
|
-
var SystemManager = class {
|
|
1342
|
-
constructor(os) {
|
|
1343
|
-
this.os = os;
|
|
1344
|
-
}
|
|
1345
|
-
/** Get the OS scale factor */
|
|
1346
|
-
async getScale() {
|
|
1347
|
-
const api2 = await this.os.getRPCAPI();
|
|
1348
|
-
return await api2.system_getScale();
|
|
1349
|
-
}
|
|
1350
|
-
/** Apply the OS scale factor to the current document */
|
|
1351
|
-
async applyScale() {
|
|
1352
|
-
const scale = await this.getScale();
|
|
1353
|
-
document.documentElement.style.setProperty("--os-scale", String(scale));
|
|
1354
|
-
document.documentElement.style.zoom = String(scale);
|
|
1355
|
-
return scale;
|
|
1356
|
-
}
|
|
1357
|
-
};
|
|
1358
|
-
|
|
1359
1340
|
// src/framework/UserManager.ts
|
|
1360
1341
|
var UserManager = class {
|
|
1361
1342
|
constructor(os) {
|
|
@@ -1376,7 +1357,6 @@ var OS = class {
|
|
|
1376
1357
|
this.apps = new AppManager(this);
|
|
1377
1358
|
this.devices = new DeviceManager(this);
|
|
1378
1359
|
this.prefs = new PreferencesManager(this);
|
|
1379
|
-
this.system = new SystemManager(this);
|
|
1380
1360
|
this.user = new UserManager(this);
|
|
1381
1361
|
}
|
|
1382
1362
|
async homeButton() {
|