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

glfw-raub

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glfw-raub - npm Package Compare versions

Comparing version 4.4.1 to 4.5.0

8

js/document.js

@@ -71,6 +71,6 @@ 'use strict';

return {
get width() { return that.width; },
set width(v) { that.width = parseInt(v); },
get height() { return that.height; },
set height(v) { that.height = parseInt(v); },
get width() { return that.innerWidth; },
set width(v) { that.width = parseInt(v) * that.devicePixelRatio; },
get height() { return that.innetHeight; },
set height(v) { that.height = parseInt(v) * that.devicePixelRatio; },
};

@@ -77,0 +77,0 @@ }

@@ -18,2 +18,5 @@ 'use strict';

this._major = opts.major === undefined ? 2 : opts.major;
this._minor = opts.minor === undefined ? 1 : opts.minor;
this._title = null;

@@ -46,9 +49,5 @@ this._icon = null;

if (opts.osxCore && process.platform === 'darwin') {
glfw.windowHint(glfw.CONTEXT_VERSION_MAJOR, 3);
glfw.windowHint(glfw.CONTEXT_VERSION_MINOR, 2);
glfw.windowHint(glfw.OPENGL_FORWARD_COMPAT, glfw.TRUE);
glfw.windowHint(glfw.OPENGL_PROFILE, glfw.OPENGL_CORE_PROFILE);
}
glfw.windowHint(glfw.CONTEXT_VERSION_MAJOR, this._major);
glfw.windowHint(glfw.CONTEXT_VERSION_MINOR, this._minor);
glfw.windowHint(glfw.RESIZABLE, glfw.TRUE);

@@ -76,5 +75,2 @@ glfw.windowHint(glfw.VISIBLE, glfw.TRUE);

this._pxWidth = sizeFB.width;
this._pxHeight = sizeFB.height;
this.icon = opts.icon;

@@ -259,3 +255,2 @@

get width() { return this._pxWidth; }

@@ -270,4 +265,7 @@ get height() { return this._pxHeight; }

this._pxWidth = v;
glfw.setWindowSize(this._window, this._width, this._height);
}
set height(v) {

@@ -315,10 +313,10 @@ if (this._pxHeight === v) {

get innerWidth() { return this.width; }
get innerWidth() { return this._width; }
set innerWidth(v) { this.width = v; }
get innerHeight() { return this.height; }
get innerHeight() { return this._height; }
set innerHeight(v) { this.height = v; }
get clientWidth() { return this.width; }
get clientWidth() { return this._width; }
set clientWidth(v) { this.width = v; }
get clientHeight() { return this.height; }
get clientHeight() { return this._height; }
set clientHeight(v) { this.height = v; }

@@ -325,0 +323,0 @@

{
"author": "Luis Blanco <luisblanco1337@gmail.com>",
"name": "glfw-raub",
"version": "4.4.1",
"version": "4.5.0",
"description": "GLFW for Node.js",

@@ -34,3 +34,3 @@ "license": "MIT",

"config": {
"install": "v4.4.0"
"install": "v4.5.0"
},

@@ -45,3 +45,3 @@ "scripts": {

"dependencies": {
"addon-tools-raub": "5.1.x",
"addon-tools-raub": "5.2.x",
"deps-opengl-raub": "3.0.x",

@@ -48,0 +48,0 @@ "segfault-raub": "1.1.x"

@@ -64,2 +64,4 @@ # GLFW for Node.js

* `Window({ title, width, height, display, vsync, mode, autoIconify, msaa })`
* `number major 2` - major OpenGL version to be used.
* `number minor 1` - minor OpenGL version to be used.
* `string title $PWD` - window title, takes current directory as default.

@@ -71,4 +73,2 @@ * `number width 800` - window initial width.

* `boolean fullscreen false` - if the window is fullscreen, takes presedence over `mode`.
* `boolean osxCore false` - use OSX core profile 3.2.0 context. Works only for OSX.
This can also be replaced with a bunch of manual `glfw.windowHint` calls on any OS.
* `string mode 'windowed'` - one of `'windowed', 'borderless', 'fullscreen'`.

@@ -75,0 +75,0 @@ * `boolean autoIconify true` - if fullscreen windows should iconify automatically on focus loss.

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