graphics() positionX, positionY Ventura fix (max OS)
This commit is contained in:
parent
0d138b2b19
commit
4a422b7168
@ -82,6 +82,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
||||
| 5.17.1 | 2023-01-06 | `graphics()` positionX, positionY Ventura fix (max OS) |
|
||||
| 5.17.0 | 2023-01-06 | `graphics()` added positionX, positionY (max OS) |
|
||||
| 5.16.9 | 2022-12-27 | updated docs |
|
||||
| 5.16.8 | 2022-12-22 | `processes()` params truncated fix (max OS) |
|
||||
|
||||
@ -57,6 +57,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.17.1</th>
|
||||
<td>2023-01-06</td>
|
||||
<td><span class="code">graphics()</span> positionX, positionY Ventura fix (max OS)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.17.0</th>
|
||||
<td>2023-01-06</td>
|
||||
|
||||
@ -170,7 +170,7 @@
|
||||
<img class="logo" src="assets/logo.png" alt="logo">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span> </div>
|
||||
<div class="version">New Version: <span id="version">5.17.0</span></div>
|
||||
<div class="version">New Version: <span id="version">5.17.1</span></div>
|
||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||
</div>
|
||||
<div class="down">
|
||||
@ -204,7 +204,7 @@
|
||||
</div>
|
||||
<div class="row number-section">
|
||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||
<div class="numbers">15,381</div>
|
||||
<div class="numbers">15,452</div>
|
||||
<div class="title">Lines of code</div>
|
||||
</div>
|
||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||
|
||||
@ -188,7 +188,7 @@
|
||||
<div class="subtitle">Lightweight collection of 40+ functions to retrieve detailed hardware, system and OS information. For Linux, macOS, partial Windows, FreeBSD, OpenBSD, NetBSD, SunOS and Android support</div>
|
||||
<div class="npmicons">
|
||||
<a href="https://npmjs.org/package/systeminformation" rel="nofollow"><img src="https://camo.githubusercontent.com/df25636cbefadf18ca1532e3bdcd0d2794235e19/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f73797374656d696e666f726d6174696f6e2e7376673f7374796c653d666c61742d737175617265" alt="NPM Version" data-canonical-src="https://img.shields.io/npm/v/systeminformation.svg?style=flat-square" style="max-width:100%;"></a>
|
||||
<a href="https://david-dm.org/sebhildebrandt/systeminformation" rel="nofollow"><img src="https://camo.githubusercontent.com/69739c043c2be3a38545f105b89381a2a6310f59/68747470733a2f2f696d672e736869656c64732e696f2f64617669642f73656268696c64656272616e64742f73797374656d696e666f726d6174696f6e2e7376673f7374796c653d666c61742d737175617265" alt="deps status" data-canonical-src="https://img.shields.io/david/sebhildebrandt/systeminformation.svg?style=flat-square" style="max-width:100%;"></a>
|
||||
<a href="https://systeminformation.io" rel="nofollow"><img src="../assets/no-dependencies.svg" alt="no dependencies"></a>
|
||||
<a href="https://github.com/sebhildebrandt/systeminformation/blob/master/LICENSE"><img src="https://camo.githubusercontent.com/4b5966a2a252ee0f241a1e03b13417178eb4964f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265" alt="MIT license" data-canonical-src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" style="max-width:100%;"></a>
|
||||
</div>
|
||||
<div class="text"><span class="bold">Version 4 maintenance</span>: We are still maintaining version 4 and providing especially fixes to security issues and other important fixes. New functionality is only added to the new version 5, so please consider upgrading to version 5 soon. <span class="bold">Version 5 is NOT fully backward compatible to version 4!</span> Be aware, there are some breaking changes. Please refer to the <a href="../changes.html">Version 5 - Changes</a> page to see a full documentation of all changes you should have a look on.</div>
|
||||
@ -369,4 +369,4 @@
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@ -689,11 +689,11 @@ function graphics(callback) {
|
||||
const current = obj['DisplayAnyUserSets'][0];
|
||||
let i = 0;
|
||||
current.forEach((o) => {
|
||||
if ('LimitsOriginX' in o && result.displays && result.displays[i]) {
|
||||
result.displays[i].positionX = o['LimitsOriginX'];
|
||||
if ('OriginX' in o && result.displays && result.displays[i]) {
|
||||
result.displays[i].positionX = o['OriginX'];
|
||||
}
|
||||
if ('LimitsOriginY' in o && result.displays && result.displays[i]) {
|
||||
result.displays[i].positionY = o['LimitsOriginY'];
|
||||
if ('OriginY' in o && result.displays && result.displays[i]) {
|
||||
result.displays[i].positionY = o['OriginY'];
|
||||
}
|
||||
if (o['Mode'] && 'BitsPerPixel' in o['Mode'] && result.displays && result.displays[i]) {
|
||||
result.displays[i].pixelDepth = o['Mode']['BitsPerPixel'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user