Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@luma.gl/webgl-state-tracker

Package Overview
Dependencies
Maintainers
7
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luma.gl/webgl-state-tracker - npm Package Compare versions

Comparing version 7.1.0-alpha.4 to 7.1.0-alpha.5

LICENSE

26

dist/es6/state-tracking/track-context-state.js

@@ -52,5 +52,6 @@ import GL_STATE_SETTERS from './webgl-function-to-parameters-table';

const _setter = setter(gl.state._updateCache, ...params),
valueChanged = _setter.valueChanged,
oldValue = _setter.oldValue;
const {
valueChanged,
oldValue
} = setter(gl.state._updateCache, ...params);

@@ -73,8 +74,6 @@ if (valueChanged) {

constructor(gl) {
let _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
_ref$copyState = _ref.copyState,
copyState = _ref$copyState === void 0 ? false : _ref$copyState,
_ref$log = _ref.log,
log = _ref$log === void 0 ? () => {} : _ref$log;
let {
copyState = false,
log = () => {}
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
this.gl = gl;

@@ -130,7 +129,6 @@ this.stateStack = [];

export default function trackContextState(gl) {
let _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
_ref2$enable = _ref2.enable,
enable = _ref2$enable === void 0 ? true : _ref2$enable,
copyState = _ref2.copyState;
let {
enable = true,
copyState
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
assert(copyState !== undefined);

@@ -137,0 +135,0 @@

@@ -9,4 +9,5 @@ import { pushContextState, popContextState } from './track-context-state';

const _parameters$nocatch = parameters.nocatch,
nocatch = _parameters$nocatch === void 0 ? true : _parameters$nocatch;
const {
nocatch = true
} = parameters;
assert(!parameters.frameBuffer);

@@ -13,0 +14,0 @@ pushContextState(gl);

@@ -1,3 +0,1 @@

import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
function isArray(array) {

@@ -47,8 +45,3 @@ return Array.isArray(array) || ArrayBuffer.isView(array);

value = isArray(value) ? value : [value, value];
const _value = value,
_value2 = _slicedToArray(_value, 2),
mask = _value2[0],
backMask = _value2[1];
const [mask, backMask] = value;
gl.stencilMaskSeparate(1028, mask);

@@ -59,12 +52,3 @@ gl.stencilMaskSeparate(1029, backMask);

args = isArray(args) && args.length === 3 ? [...args, ...args] : args;
const _args = args,
_args2 = _slicedToArray(_args, 6),
func = _args2[0],
ref = _args2[1],
mask = _args2[2],
backFunc = _args2[3],
backRef = _args2[4],
backMask = _args2[5];
const [func, ref, mask, backFunc, backRef, backMask] = args;
gl.stencilFuncSeparate(1028, func, ref, mask);

@@ -75,12 +59,3 @@ gl.stencilFuncSeparate(1029, backFunc, backRef, backMask);

args = isArray(args) && args.length === 3 ? [...args, ...args] : args;
const _args3 = args,
_args4 = _slicedToArray(_args3, 6),
sfail = _args4[0],
dpfail = _args4[1],
dppass = _args4[2],
backSfail = _args4[3],
backDpfail = _args4[4],
backDppass = _args4[5];
const [sfail, dpfail, dppass, backSfail, backDpfail, backDppass] = args;
gl.stencilOpSeparate(1028, sfail, dpfail, dppass);

@@ -87,0 +62,0 @@ gl.stencilOpSeparate(1029, backSfail, backDpfail, backDppass);

{
"name": "@luma.gl/webgl-state-tracker",
"version": "7.1.0-alpha.4",
"version": "7.1.0-alpha.5",
"description": "WebGL state manager that saves and restores WebGLRenderingContext state",

@@ -30,4 +30,5 @@ "license": "MIT",

"@babel/runtime": "^7.0.0",
"@luma.gl/constants": "7.1.0-alpha.4"
}
"@luma.gl/constants": "7.1.0-alpha.5"
},
"gitHead": "ef39b904ae17a9bc257b79f63aa1db1671e97b48"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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