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

@antv/g-webgpu

Package Overview
Dependencies
Maintainers
35
Versions
234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g-webgpu - npm Package Compare versions

Comparing version 0.5.4-alpha.3 to 0.5.4-alpha.6

8

es/geometry/Merged.js

@@ -7,4 +7,2 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";

import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
import _isTypedArray from "lodash/isTypedArray";
import _isNumber from "lodash/isNumber";

@@ -19,2 +17,4 @@ var _dec, _class;

import { injectable } from 'inversify';
import isNumber from 'lodash-es/isNumber';
import isTypedArray from 'lodash-es/isTypedArray';
import { Geometry } from '.';

@@ -70,6 +70,6 @@ import { merge } from '../utils/typedarray';

if (attribute.data) {
if (_isNumber(attribute.data)) {
if (isNumber(attribute.data)) {
// @ts-ignore
mergedAttributes[i].push(attribute.data);
} else if (_isTypedArray(attribute.data)) {
} else if (isTypedArray(attribute.data)) {
// @ts-ignore

@@ -76,0 +76,0 @@ mergedAttributes[i].data = merge( // @ts-ignore

@@ -9,5 +9,2 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";

import _initializerWarningHelper from "@babel/runtime/helpers/initializerWarningHelper";
import _isTypedArray from "lodash/isTypedArray";
import _isNumber from "lodash/isNumber";
import _isArray from "lodash/isArray";

@@ -20,6 +17,9 @@ var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2, _temp;

import { AST_TOKEN_TYPES, DefineValuePlaceholder, IDENTIFIER, STORAGE_CLASS, Target, createEntity } from '@antv/g-webgpu-core'; // tslint:disable-next-line:no-submodule-imports
import { AST_TOKEN_TYPES, createEntity, DefineValuePlaceholder, IDENTIFIER, STORAGE_CLASS, Target } from '@antv/g-webgpu-core'; // tslint:disable-next-line:no-submodule-imports
import * as WebGPUConstants from '@webgpu/types/dist/constants';
import { inject, injectable } from 'inversify';
import isArray from 'lodash-es/isArray';
import isNumber from 'lodash-es/isNumber';
import isTypedArray from 'lodash-es/isTypedArray';
import { createCanvas } from './utils/canvas';

@@ -84,3 +84,3 @@ export var Kernel = (_dec = injectable(), _dec2 = inject(IDENTIFIER.RenderEngine), _dec3 = inject(IDENTIFIER.ConfigService), _dec(_class = (_class2 = (_temp = /*#__PURE__*/function () {

if (typeof name === 'string') {
var isNumberLikeData = _isNumber(data) || _isTypedArray(data) || _isArray(data);
var isNumberLikeData = isNumber(data) || isTypedArray(data) || isArray(data);

@@ -87,0 +87,0 @@ if (this.compiledBundle && this.compiledBundle.context) {

import { vec3 } from 'gl-matrix';
import isNumber from 'lodash/isNumber';
import isNumber from 'lodash-es/isNumber';
export function getAngle(angle) {

@@ -4,0 +4,0 @@ if (angle === undefined) {

@@ -22,6 +22,2 @@ "use strict";

var _isTypedArray2 = _interopRequireDefault(require("lodash/isTypedArray"));
var _isNumber2 = _interopRequireDefault(require("lodash/isNumber"));
var _gWebgpuCore = require("@antv/g-webgpu-core");

@@ -31,2 +27,6 @@

var _isNumber = _interopRequireDefault(require("lodash-es/isNumber"));
var _isTypedArray = _interopRequireDefault(require("lodash-es/isTypedArray"));
var _ = require(".");

@@ -89,6 +89,6 @@

if (attribute.data) {
if ((0, _isNumber2.default)(attribute.data)) {
if ((0, _isNumber.default)(attribute.data)) {
// @ts-ignore
mergedAttributes[i].push(attribute.data);
} else if ((0, _isTypedArray2.default)(attribute.data)) {
} else if ((0, _isTypedArray.default)(attribute.data)) {
// @ts-ignore

@@ -95,0 +95,0 @@ mergedAttributes[i].data = (0, _typedarray.merge)( // @ts-ignore

@@ -28,8 +28,2 @@ "use strict";

var _isTypedArray2 = _interopRequireDefault(require("lodash/isTypedArray"));
var _isNumber2 = _interopRequireDefault(require("lodash/isNumber"));
var _isArray2 = _interopRequireDefault(require("lodash/isArray"));
var _gWebgpuCore = require("@antv/g-webgpu-core");

@@ -41,2 +35,8 @@

var _isArray = _interopRequireDefault(require("lodash-es/isArray"));
var _isNumber = _interopRequireDefault(require("lodash-es/isNumber"));
var _isTypedArray = _interopRequireDefault(require("lodash-es/isTypedArray"));
var _canvas = require("./utils/canvas");

@@ -105,3 +105,3 @@

if (typeof name === 'string') {
var isNumberLikeData = (0, _isNumber2.default)(data) || (0, _isTypedArray2.default)(data) || (0, _isArray2.default)(data);
var isNumberLikeData = (0, _isNumber.default)(data) || (0, _isTypedArray.default)(data) || (0, _isArray.default)(data);

@@ -108,0 +108,0 @@ if (this.compiledBundle && this.compiledBundle.context) {

@@ -13,3 +13,3 @@ "use strict";

var _isNumber = _interopRequireDefault(require("lodash/isNumber"));
var _isNumber = _interopRequireDefault(require("lodash-es/isNumber"));

@@ -16,0 +16,0 @@ function getAngle(angle) {

{
"name": "@antv/g-webgpu",
"version": "0.5.4-alpha.3",
"version": "0.5.4-alpha.6",
"description": "",

@@ -27,4 +27,4 @@ "main": "lib/index.js",

"dependencies": {
"@antv/g-webgpu-core": "^0.5.4-alpha.3",
"@antv/g-webgpu-engine": "^0.5.4-alpha.3",
"@antv/g-webgpu-core": "^0.5.4-alpha.6",
"@antv/g-webgpu-engine": "^0.5.4-alpha.6",
"@webgpu/types": "^0.0.31",

@@ -36,3 +36,3 @@ "gl-matrix": "^3.1.0",

"inversify-inject-decorators": "^3.1.0",
"lodash": "^4.17.15",
"lodash-es": "^4.17.15",
"polyline-miter-util": "^1.0.1",

@@ -39,0 +39,0 @@ "polyline-normals": "^2.0.2",

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

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