@pixi/core
Advanced tools
Comparing version 7.0.3 to 7.1.0-alpha
@@ -17,2 +17,3 @@ import { TYPES } from '@pixi/constants'; | ||
instance: boolean; | ||
divisor: number; | ||
/** | ||
@@ -26,4 +27,5 @@ * @param buffer - the id of the buffer that this attribute will look for | ||
* @param [instance=false] - Whether the geometry is instanced. | ||
* @param [divisor=1] - Divisor to use when doing instanced rendering | ||
*/ | ||
constructor(buffer: number, size?: number, normalized?: boolean, type?: TYPES, stride?: number, start?: number, instance?: boolean); | ||
constructor(buffer: number, size?: number, normalized?: boolean, type?: TYPES, stride?: number, start?: number, instance?: boolean, divisor?: number); | ||
/** Destroys the Attribute. */ | ||
@@ -30,0 +32,0 @@ destroy(): void; |
@@ -8,3 +8,3 @@ 'use strict'; | ||
class Attribute { | ||
constructor(buffer, size = 0, normalized = false, type = constants.TYPES.FLOAT, stride, start, instance) { | ||
constructor(buffer, size = 0, normalized = false, type = constants.TYPES.FLOAT, stride, start, instance, divisor = 1) { | ||
this.buffer = buffer; | ||
@@ -17,2 +17,3 @@ this.size = size; | ||
this.instance = instance; | ||
this.divisor = divisor; | ||
} | ||
@@ -19,0 +20,0 @@ destroy() { |
@@ -238,3 +238,3 @@ 'use strict'; | ||
if (this.hasInstance) { | ||
gl.vertexAttribDivisor(location, 1); | ||
gl.vertexAttribDivisor(location, attribute.divisor); | ||
} else { | ||
@@ -241,0 +241,0 @@ throw new Error("geometry error, GPU Instancing is not supported on this device"); |
@@ -48,9 +48,10 @@ /// <reference path="../global.d.ts" /> | ||
export * from './shader/utils/checkMaxIfStatementsInShader'; | ||
export * from './shader/utils/uniformParsers'; | ||
export * from './shader/utils/generateUniformBufferSync'; | ||
export * from './shader/utils/generateProgram'; | ||
export * from './shader/utils/getTestContext'; | ||
export * from './shader/utils/generateProgram'; | ||
export * from './shader/utils/uniformParsers'; | ||
export * from './shader/utils/unsafeEvalSupported'; | ||
export * from './shader/GLProgram'; | ||
export * from './shader/Program'; | ||
export * from './shader/Shader'; | ||
export * from './shader/Program'; | ||
export * from './shader/GLProgram'; | ||
export * from './shader/UniformGroup'; | ||
@@ -57,0 +58,0 @@ export * from './mask/MaskData'; |
@@ -41,9 +41,10 @@ 'use strict'; | ||
var checkMaxIfStatementsInShader = require('./shader/utils/checkMaxIfStatementsInShader.js'); | ||
var uniformParsers = require('./shader/utils/uniformParsers.js'); | ||
var generateUniformBufferSync = require('./shader/utils/generateUniformBufferSync.js'); | ||
var generateProgram = require('./shader/utils/generateProgram.js'); | ||
var getTestContext = require('./shader/utils/getTestContext.js'); | ||
var generateProgram = require('./shader/utils/generateProgram.js'); | ||
var uniformParsers = require('./shader/utils/uniformParsers.js'); | ||
var unsafeEvalSupported = require('./shader/utils/unsafeEvalSupported.js'); | ||
var GLProgram = require('./shader/GLProgram.js'); | ||
var Program = require('./shader/Program.js'); | ||
var Shader = require('./shader/Shader.js'); | ||
var Program = require('./shader/Program.js'); | ||
var GLProgram = require('./shader/GLProgram.js'); | ||
var UniformGroup = require('./shader/UniformGroup.js'); | ||
@@ -116,3 +117,3 @@ var MaskData = require('./mask/MaskData.js'); | ||
const VERSION = "7.0.3"; | ||
const VERSION = "7.1.0-alpha"; | ||
@@ -145,12 +146,13 @@ exports.utils = utils__namespace; | ||
exports.checkMaxIfStatementsInShader = checkMaxIfStatementsInShader.checkMaxIfStatementsInShader; | ||
exports.uniformParsers = uniformParsers.uniformParsers; | ||
exports.createUBOElements = generateUniformBufferSync.createUBOElements; | ||
exports.generateUniformBufferSync = generateUniformBufferSync.generateUniformBufferSync; | ||
exports.getUBOData = generateUniformBufferSync.getUBOData; | ||
exports.generateProgram = generateProgram.generateProgram; | ||
exports.getTestContext = getTestContext.getTestContext; | ||
exports.generateProgram = generateProgram.generateProgram; | ||
exports.Shader = Shader.Shader; | ||
exports.Program = Program.Program; | ||
exports.uniformParsers = uniformParsers.uniformParsers; | ||
exports.unsafeEvalSupported = unsafeEvalSupported.unsafeEvalSupported; | ||
exports.GLProgram = GLProgram.GLProgram; | ||
exports.IGLUniformData = GLProgram.IGLUniformData; | ||
exports.Program = Program.Program; | ||
exports.Shader = Shader.Shader; | ||
exports.UniformGroup = UniformGroup.UniformGroup; | ||
@@ -157,0 +159,0 @@ exports.MaskData = MaskData.MaskData; |
@@ -311,2 +311,3 @@ import type { MaskSystem } from './mask/MaskSystem'; | ||
get resolution(): number; | ||
set resolution(value: number); | ||
/** Whether CSS dimensions of canvas view should be resized to screen dimensions automatically. */ | ||
@@ -313,0 +314,0 @@ get autoDensity(): boolean; |
@@ -22,3 +22,13 @@ 'use strict'; | ||
const systemConfig = { | ||
runners: ["init", "destroy", "contextChange", "reset", "update", "postrender", "prerender", "resize"], | ||
runners: [ | ||
"init", | ||
"destroy", | ||
"contextChange", | ||
"resolutionChange", | ||
"reset", | ||
"update", | ||
"postrender", | ||
"prerender", | ||
"resize" | ||
], | ||
systems: _Renderer.__systems, | ||
@@ -118,2 +128,6 @@ priority: [ | ||
} | ||
set resolution(value) { | ||
this._view.resolution = value; | ||
this.runners.resolutionChange.emit(value); | ||
} | ||
get autoDensity() { | ||
@@ -120,0 +134,0 @@ return this._view.autoDensity; |
@@ -15,3 +15,3 @@ 'use strict'; | ||
if (options.hello) { | ||
console.log(`PixiJS ${"7.0.3"} - ${renderer.rendererLogId} - https://pixijs.com`); | ||
console.log(`PixiJS ${"7.1.0-alpha"} - ${renderer.rendererLogId} - https://pixijs.com`); | ||
} | ||
@@ -18,0 +18,0 @@ renderer.resize(this.renderer.screen.width, this.renderer.screen.height); |
@@ -44,3 +44,4 @@ import { Point, Rectangle } from '@pixi/math'; | ||
* | ||
* You can use a ticker or rAF to ensure your sprites load the finished textures after processing. See issue #3068. | ||
* You can use a ticker or rAF to ensure your sprites load the finished textures after processing. | ||
* See issue [#3085]{@link https://github.com/pixijs/pixijs/issues/3085}. | ||
* @memberof PIXI | ||
@@ -47,0 +48,0 @@ * @typeParam R - The BaseTexture's Resource type. |
{ | ||
"name": "@pixi/core", | ||
"version": "7.0.3", | ||
"version": "7.1.0-alpha", | ||
"main": "lib/index.js", | ||
@@ -43,12 +43,12 @@ "module": "lib/index.mjs", | ||
"dependencies": { | ||
"@pixi/constants": "7.0.3", | ||
"@pixi/extensions": "7.0.3", | ||
"@pixi/math": "7.0.3", | ||
"@pixi/runner": "7.0.3", | ||
"@pixi/settings": "7.0.3", | ||
"@pixi/ticker": "7.0.3", | ||
"@pixi/utils": "7.0.3", | ||
"@pixi/constants": "7.1.0-alpha", | ||
"@pixi/extensions": "7.1.0-alpha", | ||
"@pixi/math": "7.1.0-alpha", | ||
"@pixi/runner": "7.1.0-alpha", | ||
"@pixi/settings": "7.1.0-alpha", | ||
"@pixi/ticker": "7.1.0-alpha", | ||
"@pixi/utils": "7.1.0-alpha", | ||
"@types/offscreencanvas": "^2019.6.4" | ||
}, | ||
"gitHead": "1a8c89762cc348a7cb7c5f97b0cf97b2695c38b9" | ||
"gitHead": "0fb26a500c738cb550da277c112d15d9dd3f87b6" | ||
} |
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
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2421195
21764
1
+ Added@pixi/constants@7.1.0-alpha(transitive)
+ Added@pixi/extensions@7.1.0-alpha(transitive)
+ Added@pixi/math@7.1.0-alpha(transitive)
+ Added@pixi/runner@7.1.0-alpha(transitive)
+ Added@pixi/settings@7.1.0-alpha(transitive)
+ Added@pixi/ticker@7.1.0-alpha(transitive)
+ Added@pixi/utils@7.1.0-alpha(transitive)
- Removed@pixi/constants@7.0.3(transitive)
- Removed@pixi/extensions@7.0.3(transitive)
- Removed@pixi/math@7.0.3(transitive)
- Removed@pixi/runner@7.0.3(transitive)
- Removed@pixi/settings@7.0.3(transitive)
- Removed@pixi/ticker@7.0.3(transitive)
- Removed@pixi/utils@7.0.3(transitive)
Updated@pixi/constants@7.1.0-alpha
Updated@pixi/extensions@7.1.0-alpha
Updated@pixi/math@7.1.0-alpha
Updated@pixi/runner@7.1.0-alpha
Updated@pixi/settings@7.1.0-alpha
Updated@pixi/ticker@7.1.0-alpha
Updated@pixi/utils@7.1.0-alpha