New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gdi

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gdi - npm Package Compare versions

Comparing version 0.1.4 to 0.2.0

2

lib/GDIGraphics.js

@@ -317,3 +317,3 @@ const util = require('./util');

width: ret[0],
height: ret[1],
height: ret[1]
};

@@ -320,0 +320,0 @@ },

@@ -9,3 +9,5 @@ const GDIGraphics = require('./GDIGraphics');

const windowObj = () => {
let windowStarted = false;
const windowObj = (mainLoop, windowConfig) => {
let currentCursor = 0;

@@ -56,2 +58,8 @@ const ret = {

getSize () {
if (!windowStarted) {
return {
width: windowConfig.width,
height: windowConfig.height
};
}
const rect = addon.getWindowRect();

@@ -397,3 +405,4 @@ return { width: rect[2], height: rect[3] };

height: 400,
backgroundColor: [39, 40, 34]
backgroundColor: [39, 40, 34],
showTitleBar: true
};

@@ -405,3 +414,3 @@ const windowConfig = { ...defaultConfig, ...options };

}
currentWindow = windowObj(mainLoop);
currentWindow = windowObj(mainLoop, windowConfig);
addon.setPaintCallback(onPaint);

@@ -417,4 +426,5 @@ addon.setWinProcCallback(onMsg);

b: windowConfig.backgroundColor[2],
showTitleBar: true
showTitleBar: windowConfig.showTitleBar
});
windowStarted = true;
});

@@ -421,0 +431,0 @@

{
"name": "gdi",
"version": "0.1.4",
"description": "Node.js bindings to Windows GDI (graphics device interface)",
"version": "0.2.0",
"description": "Node.js bindings to Windows GDI/GDI+ (graphics device interface)",
"main": "index.js",

@@ -17,2 +17,3 @@ "scripts": {

"gdi",
"gdi+",
"ui",

@@ -38,13 +39,12 @@ "windows",

"dependencies": {
"node-pre-gyp": "^0.10.3"
"node-pre-gyp": "^0.11.0"
},
"devDependencies": {
"aws-sdk": "^2.289.0",
"eslint": "^5.3.0",
"aws-sdk": "^2.298.0",
"eslint": "^5.4.0",
"eslint-config-standard": "^11.0.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-promise": "^3.7.0",
"eslint-plugin-standard": "^3.1.0",
"segfault-handler": "^1.0.1"
"eslint-plugin-promise": "^4.0.0",
"eslint-plugin-standard": "^3.1.0"
},

@@ -51,0 +51,0 @@ "binary": {

# node-gdi
Node.js bindings to Windows GDI (graphics device interface)
Node.js bindings to Windows GDI/GDI+ (graphics device interface)
Uses GDI for text rendering and GDI+ for graphics elements.
Alpha version, development in progress...
Beta version, development in progress...

@@ -82,2 +82,11 @@ Install

-----
```
options = {
title: 'GDI Window',
width: 600,
height: 400,
backgroundColor: [39, 40, 34],
showTitleBar: true
};
```

@@ -84,0 +93,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc