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

taiyaki

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

taiyaki - npm Package Compare versions

Comparing version 0.5.12 to 0.5.13

10

build/src/RenderingContext.js

@@ -16,3 +16,3 @@ 'use strict';

var canvas = document.getElementById(id);
if (canvas == null) {
if (canvas === null) {
throw new Error('Missing HTMLCanvasElement id: ' + id);

@@ -23,3 +23,3 @@ }

var gl = canvas.getContext('webgl');
if (gl == null) {
if (gl === null) {
throw new Error('Missing WebGLRenderingContext');

@@ -61,3 +61,3 @@ }

if (source == null) {
if (source === null) {
throw new Error('Missing HTMLScriptElement id: ' + id);

@@ -79,3 +79,3 @@ }

if (shader == null) {
if (shader === null) {
throw new Error('Missing WebGLShader');

@@ -316,3 +316,3 @@ }

gl.clearDepth(depth);
flag = flag | gl.DEPTH_BUFFER_BIT;
flag = gl.DEPTH_BUFFER_BIT;
}

@@ -319,0 +319,0 @@

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

module.exports = require('./build/src/RenderingContext');
module.exports = require('./build/src/RenderingContext')
{
"name": "taiyaki",
"description": "the lightweight library of WebGL.",
"version": "0.5.12",
"version": "0.5.13",
"author": "dorayakikun",

@@ -13,8 +13,13 @@ "devDependencies": {

"babel-preset-flow": "6.23.0",
"babelify": "8.0.0",
"browserify": "^15.0.0",
"eslint": "4.15.0",
"eslint-config-prettier": "2.9.0",
"eslint-plugin-prettier": "2.4.0",
"flow-bin": "0.63.0",
"babelify": "^8.0.0",
"browserify": "^15.1.0",
"eslint": "4.17.0",
"eslint-config-fbjs": "^2.0.1",
"eslint-plugin-babel": "^4.1.2",
"eslint-plugin-flowtype": "^2.42.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.6.1",
"eslint-plugin-relay": "0.0.20",
"flow-bin": "0.64.0",
"flow-copy-source": "^1.2.1",
"flow-typed": "^2.1.2",

@@ -29,3 +34,4 @@ "husky": "^0.14.3",

"karma-jasmine": "^1.1.0",
"prettier": "1.10.0"
"lint-staged": "^6.0.0",
"prettier": "^1.10.1"
},

@@ -44,2 +50,8 @@ "files": [

"license": "MIT",
"lint-staged": {
".{js,json,md}": [
"prettier --write",
"git add"
]
},
"main": "index.js",

@@ -52,9 +64,11 @@ "repository": {

"build": "babel src --out-dir build/src",
"clean": "rm -rf build/src*",
"fmt": "prettier --write '**/*.{js,json,md}'",
"flow": "flow",
"prepublish": "npm run build",
"karma": "karma start karma.conf.js --single-run",
"prepush": "npm run karma",
"lint": "eslint src",
"precommit": "lint-staged",
"prepare": "npm run build",
"prepush": "npm run build",
"test": "echo \"Please run karma\""
}
}
# taiyaki
[![](http://img.shields.io/npm/dm/taiyaki.svg)](https://www.npmjs.org/package/taiayaki)
[![npm version](https://badge.fury.io/js/taiyaki.svg)](https://www.npmjs.com/package/taiyaki)
[![](http://img.shields.io/npm/dm/taiyaki.svg)](https://www.npmjs.org/package/taiayaki)
[![npm version](https://badge.fury.io/js/taiyaki.svg)](https://www.npmjs.com/package/taiyaki)
[![Build Status](https://travis-ci.org/dorayakikun/taiyaki.svg?branch=master)](https://travis-ci.org/dorayakikun/taiyaki)
[![Greenkeeper badge](https://badges.greenkeeper.io/dorayakikun/taiyaki.svg)](https://greenkeeper.io/)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

@@ -16,3 +17,3 @@ ## Overview

``` js
```js
import { RenderingContext } from 'taiyaki'

@@ -28,3 +29,3 @@

{ name: 'colors', value: colors, stride: 4 },
{ name: 'normals', value: normals, stride: 3 }
{ name: 'normals', value: normals, stride: 3 },
])

@@ -45,3 +46,3 @@

{ name: 'centerPoint', type: '3fv', value: centerPosition },
{ name: 'ambientColor', type: '4fv', value: ambientColor }
{ name: 'ambientColor', type: '4fv', value: ambientColor },
])

@@ -53,3 +54,2 @@

ctx.drawElements(ctx.gl.TRIANGLES, indexes.length)
```

@@ -56,0 +56,0 @@

@@ -8,3 +8,3 @@ // @flow

value: number,
stride: number
stride: number,
}

@@ -15,3 +15,3 @@

type: string,
value: any
value: any,
}

@@ -23,3 +23,3 @@

b: number,
a: number
a: number,
}

@@ -31,3 +31,3 @@

width: number,
height: number
height: number,
}

@@ -38,3 +38,3 @@

renderbuffer: WebGLRenderbuffer,
texture: WebGLTexture
texture: WebGLTexture,
}

@@ -50,3 +50,3 @@

const canvas = ((document.getElementById(id): any): ?HTMLCanvasElement)
if (canvas == null) {
if (canvas === null) {
throw new Error(`Missing HTMLCanvasElement id: ${id}`)

@@ -57,3 +57,3 @@ }

const gl = canvas.getContext('webgl')
if (gl == null) {
if (gl === null) {
throw new Error('Missing WebGLRenderingContext')

@@ -89,3 +89,3 @@ }

if (source == null) {
if (source === null) {
throw new Error(`Missing HTMLScriptElement id: ${id}`)

@@ -107,3 +107,3 @@ }

if (shader == null) {
if (shader === null) {
throw new Error('Missing WebGLShader')

@@ -147,3 +147,3 @@ }

return { value: frameBuffer, renderbuffer: renderBuffer, texture: texture }
return { value: frameBuffer, renderbuffer: renderBuffer, texture }
}

@@ -351,3 +351,3 @@

gl.clearDepth(depth)
flag = flag | gl.DEPTH_BUFFER_BIT
flag = gl.DEPTH_BUFFER_BIT
}

@@ -354,0 +354,0 @@

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