Skip to content

Commit

Permalink
Chore: Remove constant tag from documentation (#8914)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed Dec 1, 2022
1 parent c2af9e2 commit e2f27bf
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 47 deletions.
1 change: 0 additions & 1 deletion packages/constants/src/index.ts
Expand Up @@ -446,7 +446,6 @@ export enum GC_MODES
* Constants that specify float precision in shaders.
* @name PRECISION
* @memberof PIXI
* @constant
* @static
* @enum {string}
* @property {string} [LOW='lowp'] -
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/filters/Filter.ts
Expand Up @@ -302,7 +302,7 @@ export class Filter extends Shader

/**
* The default vertex shader source
* @constant
* @readonly
*/
static get defaultVertexSrc(): string
{
Expand All @@ -311,7 +311,7 @@ export class Filter extends Shader

/**
* The default fragment shader source
* @constant
* @readonly
*/
static get defaultFragmentSrc(): string
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/renderTexture/RenderTexturePool.ts
Expand Up @@ -220,7 +220,7 @@ export class RenderTexturePool

/**
* Key that is used to store fullscreen renderTextures in a pool
* @constant
* @readonly
*/
static SCREEN_KEY = -1;
}
1 change: 0 additions & 1 deletion packages/display/src/settings.ts
Expand Up @@ -5,7 +5,6 @@ Object.defineProperties(settings, {
/**
* Sets the default value for the container property 'sortableChildren'.
* @static
* @constant
* @name SORTABLE_CHILDREN
* @memberof PIXI.settings
* @deprecated since 7.1.0
Expand Down
2 changes: 1 addition & 1 deletion packages/graphics/src/const.ts
Expand Up @@ -85,7 +85,7 @@ export const curves = {

/**
* @static
* @constant
* @readonly
* @memberof PIXI
* @name GRAPHICS_CURVES
* @type {object}
Expand Down
47 changes: 12 additions & 35 deletions packages/math/src/groupD8.ts
Expand Up @@ -116,136 +116,119 @@ export const groupD8 = {
* | Rotation | Direction |
* |----------|-----------|
* | 0° | East |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/
E: 0,

/**
* | Rotation | Direction |
* |----------|-----------|
* | 45°↻ | Southeast |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/
SE: 1,

/**
* | Rotation | Direction |
* |----------|-----------|
* | 90°↻ | South |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/
S: 2,

/**
* | Rotation | Direction |
* |----------|-----------|
* | 135°↻ | Southwest |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/
SW: 3,

/**
* | Rotation | Direction |
* |----------|-----------|
* | 180° | West |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/
W: 4,

/**
* | Rotation | Direction |
* |-------------|--------------|
* | -135°/225°↻ | Northwest |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/
NW: 5,

/**
* | Rotation | Direction |
* |-------------|--------------|
* | -90°/270°↻ | North |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/
N: 6,

/**
* | Rotation | Direction |
* |-------------|--------------|
* | -45°/315°↻ | Northeast |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/
NE: 7,

/**
* Reflection about Y-axis.
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/
MIRROR_VERTICAL: 8,

/**
* Reflection about the main diagonal.
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/
MAIN_DIAGONAL: 10,

/**
* Reflection about X-axis.
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/
MIRROR_HORIZONTAL: 12,

/**
* Reflection about reverse diagonal.
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/
REVERSE_DIAGONAL: 14,

/**
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @returns {PIXI.GD8Symmetry} The X-component of the U-axis
* after rotating the axes.
*/
uX: (ind: GD8Symmetry): GD8Symmetry => ux[ind],

/**
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @returns {PIXI.GD8Symmetry} The Y-component of the U-axis
* after rotating the axes.
*/
uY: (ind: GD8Symmetry): GD8Symmetry => uy[ind],

/**
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @returns {PIXI.GD8Symmetry} The X-component of the V-axis
* after rotating the axes.
*/
vX: (ind: GD8Symmetry): GD8Symmetry => vx[ind],

/**
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @returns {PIXI.GD8Symmetry} The Y-component of the V-axis
* after rotating the axes.
*/
vY: (ind: GD8Symmetry): GD8Symmetry => vy[ind],

/**
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} rotation - symmetry whose opposite
* is needed. Only rotations have opposite symmetries while
* reflections don't.
Expand Down Expand Up @@ -278,7 +261,6 @@ export const groupD8 = {
* | N^=14 | N^ | W^ | S^ | E^ | N | W | S | E |
*
* [This is a Cayley table]{@link https://en.wikipedia.org/wiki/Cayley_table}
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} rotationSecond - Second operation, which
* is the row in the above cayley table.
* @param {PIXI.GD8Symmetry} rotationFirst - First operation, which
Expand All @@ -291,7 +273,6 @@ export const groupD8 = {

/**
* Reverse of `add`.
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} rotationSecond - Second operation
* @param {PIXI.GD8Symmetry} rotationFirst - First operation
* @returns {PIXI.GD8Symmetry} Result
Expand All @@ -303,7 +284,6 @@ export const groupD8 = {
/**
* Adds 180 degrees to rotation, which is a commutative
* operation.
* @memberof PIXI.groupD8
* @param {number} rotation - The number to rotate.
* @returns {number} Rotated number
*/
Expand All @@ -312,7 +292,6 @@ export const groupD8 = {
/**
* Checks if the rotation angle is vertical, i.e. south
* or north. It doesn't work for reflections.
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} rotation - The number to check.
* @returns {boolean} Whether or not the direction is vertical
*/
Expand All @@ -321,7 +300,6 @@ export const groupD8 = {
/**
* Approximates the vector `V(dx,dy)` into one of the
* eight directions provided by `groupD8`.
* @memberof PIXI.groupD8
* @param {number} dx - X-component of the vector
* @param {number} dy - Y-component of the vector
* @returns {PIXI.GD8Symmetry} Approximation of the vector into
Expand Down Expand Up @@ -366,7 +344,6 @@ export const groupD8 = {

/**
* Helps sprite to compensate texture packer rotation.
* @memberof PIXI.groupD8
* @param {PIXI.Matrix} matrix - sprite world matrix
* @param {PIXI.GD8Symmetry} rotation - The rotation factor to use.
* @param {number} tx - sprite anchoring
Expand Down
1 change: 0 additions & 1 deletion packages/settings/src/settings.ts
Expand Up @@ -120,7 +120,6 @@ export const settings: ISettings & Partial<GlobalMixins.Settings> = {
* Advantages can include sharper image quality (like text) and faster rendering on canvas.
* The main disadvantage is movement of objects may appear less smooth.
* @static
* @constant
* @memberof PIXI.settings
* @type {boolean}
* @default false
Expand Down
1 change: 0 additions & 1 deletion packages/text/src/const.ts
@@ -1,7 +1,6 @@
/**
* Constants that define the type of gradient on text.
* @static
* @constant
* @name TEXT_GRADIENT
* @memberof PIXI
* @type {object}
Expand Down
1 change: 0 additions & 1 deletion packages/ticker/src/const.ts
Expand Up @@ -3,7 +3,6 @@
* the {@link PIXI.Ticker} object. Higher priority items are updated first and lower
* priority items, such as render, should go later.
* @static
* @constant
* @name UPDATE_PRIORITY
* @memberof PIXI
* @enum {number}
Expand Down
1 change: 0 additions & 1 deletion packages/utils/src/color/premultiply.ts
Expand Up @@ -37,7 +37,6 @@ function mapPremultipliedBlendModes(): number[][]
/**
* maps premultiply flag and blendMode to adjusted blendMode
* @memberof PIXI.utils
* @constant premultiplyBlendMode
* @type {Array<number[]>}
*/
export const premultiplyBlendMode = mapPremultipliedBlendModes();
Expand Down
7 changes: 5 additions & 2 deletions packages/utils/src/const.ts
Expand Up @@ -2,8 +2,11 @@
* Regexp for data URI.
* Based on: {@link https://github.com/ragingwind/data-uri-regex}
* @static
* @constant {RegExp|string} DATA_URI
* @type {RegExp}
* @memberof PIXI
* @example data:image/png;base64
* @example
* import { DATA_URI } from 'pixi.js';
*
* DATA_URI.test('data:image/png;base64,foobar'); // => true
*/
export const DATA_URI = /^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;

0 comments on commit e2f27bf

Please sign in to comment.