Skip to content

Commit

Permalink
#154 Lint対応(WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
ienaga committed Sep 30, 2024
1 parent c8d9810 commit a6f0d65
Show file tree
Hide file tree
Showing 45 changed files with 291 additions and 291 deletions.
2 changes: 1 addition & 1 deletion packages/webgl/src/BezierConverter.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @description ベジェ曲線の変換後の値を格納するバッファ
* Buffer to store the converted values of the Bezier curve
*
*
* @type {Float32Array}
* @public
*/
Expand Down
26 changes: 13 additions & 13 deletions packages/webgl/src/Blend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { IBlendMode } from "./interface/IBlendMode";
/**
* @description 現在設定されているブレンドモード
* The currently set blend mode
*
*
* @type {IBlendMode}
* @default "normal"
* @private
Expand All @@ -14,7 +14,7 @@ let $currentBlendMode: IBlendMode = "normal";
* @description ブレンドモード情報を更新
* Update blend mode information
*
* @param {string} blend_mode
* @param {string} blend_mode
* @return {void}
* @method
* @protected
Expand All @@ -27,7 +27,7 @@ export const $setCurrentBlendMode = (blend_mode: IBlendMode): void =>
/**
* @description 現在設定されているブレンドモードを返却
* Returns the currently set blend mode
*
*
* @return {IBlendMode}
* @method
* @protected
Expand All @@ -40,7 +40,7 @@ export const $getCurrentBlendMode = (): IBlendMode =>
/**
* @description 現在設定されているアトラスアタッチメントオブジェクトのインデックス値
* Index value of the currently set atlas attachment object
*
*
* @type {number}
* @default 0
* @private
Expand All @@ -51,7 +51,7 @@ let $currentAtlasIndex: number = 0;
* @description 現在設定されているアトラスアタッチメントオブジェクトのインデックス値をセット
* Set the index value of the currently set atlas attachment object
*
* @param {number} index
* @param {number} index
* @return {void}
* @method
* @protected
Expand All @@ -64,7 +64,7 @@ export const $setCurrentAtlasIndex = (index: number): void =>
/**
* @description 現在設定されているアトラスアタッチメントオブジェクトのインデックス値を返却
* Returns the index value of the currently set atlas attachment object
*
*
* @return {number}
* @method
* @protected
Expand All @@ -77,7 +77,7 @@ export const $getCurrentAtlasIndex = (): number =>
/**
* @description ブレンドモードの設定
* Blend mode setting
*
*
* @type {boolean}
* @default false
* @private
Expand All @@ -86,8 +86,8 @@ export let $blendState: boolean = false;

/**
* @description ブレンドモードの設定を有効にする
* Enable blend mode setting
*
* Enable blend mode setting
*
* @return {void}
* @method
* @protected
Expand All @@ -100,7 +100,7 @@ export const $enabled = (): void =>
/**
* @description ブレンドモードの設定を無効にする
* Disable blend mode setting
*
*
* @return {void}
* @method
* @protected
Expand All @@ -113,7 +113,7 @@ export const $disabled = (): void =>
/**
* @description ブレンドモードの設定コード
* Blend mode setting code
*
*
* @type {number}
* @default 600
* @private
Expand All @@ -123,7 +123,7 @@ let $funcCode: number = 600;
/**
* @description ブレンドモードの設定コードを更新
* Update the blend mode setting code
*
*
* @param {number} func_code
* @return {void}
* @method
Expand All @@ -137,7 +137,7 @@ export const $setFuncCode = (func_code: number): void =>
/**
* @description ブレンドモードの設定コードを返却
* Returns the blend mode setting code
*
*
* @return {number}
* @method
* @protected
Expand Down
2 changes: 1 addition & 1 deletion packages/webgl/src/Blend/service/BlendAddService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { $gl } from "../../WebGLUtil";
/**
* @description ブレンドモードを加算に設定します。
* Set the blend mode to add.
*
*
* @return {void}
* @method
* @protected
Expand Down
2 changes: 1 addition & 1 deletion packages/webgl/src/Blend/service/BlendAlphaService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { $gl } from "../../WebGLUtil";
/**
* @description ブレンドモードをアルファに設定します。
* Set the blend mode to alpha.
*
*
* @return {void}
* @method
* @protected
Expand Down
2 changes: 1 addition & 1 deletion packages/webgl/src/Blend/service/BlendEraseService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { $gl } from "../../WebGLUtil";
/**
* @description ブレンドモードを消去に設定します。
* Set the blend mode to erase.
*
*
* @return {void}
* @method
* @protected
Expand Down
2 changes: 1 addition & 1 deletion packages/webgl/src/Blend/service/BlendOneZeroService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { $gl } from "../../WebGLUtil";
/**
* @description ブレンドモードをOne/Zeroに設定します。
* Set the blend mode to One/Zero.
*
*
* @return {void}
* @method
* @protected
Expand Down
2 changes: 1 addition & 1 deletion packages/webgl/src/Blend/service/BlendResetService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { $gl } from "../../WebGLUtil";
/**
* @description ブレンドモードをリセット
* Reset the blend mode
*
*
* @return {void}
* @method
* @protected
Expand Down
2 changes: 1 addition & 1 deletion packages/webgl/src/Blend/service/BlendScreenService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { $gl } from "../../WebGLUtil";
/**
* @description ブレンドモードをスクリーンに設定します。
* Set the blend mode to screen.
*
*
* @return {void}
* @method
* @protected
Expand Down
4 changes: 2 additions & 2 deletions packages/webgl/src/Blend/service/BlendSourceInService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { $gl } from "../../WebGLUtil";
/**
* @description ブレンドモードをソースインに設定します。
* Set the blend mode to source in.
*
*
* @return {void}
* @method
* @protected
Expand All @@ -18,4 +18,4 @@ export const execute = (): void =>
$setFuncCode(670);
$gl.blendFunc($gl.DST_ALPHA, $gl.ZERO);
}
}
};
2 changes: 1 addition & 1 deletion packages/webgl/src/Blend/usecase/BlendEnableUseCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { $gl } from "../../WebGLUtil";
/**
* @description ブレンドモードを有効にする
* Enable blend mode
*
*
* @return {void}
* @method
* @protected
Expand Down
2 changes: 1 addition & 1 deletion packages/webgl/src/Blend/usecase/BlendOperationUseCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { execute as blendOneZeroService } from "../service/BlendOneZeroService";
/**
* @description 設定されたブレンドモードへ切り替える
* Switch to the set blend mode
*
*
* @param {IBlendMode} operation
* @return {void}
* @method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { execute as variantsBlendInstanceShaderService } from "../../Shader/Vari
/**
* @description リサイズなどのイベント発火時には描画情報を初期化します
* Initialize drawing information when an event such as resizing is fired
*
*
* @return {void}
* @method
* @protected
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
/**
* @description インスタンス描画を実行します。
* Execute instance drawing.
*
*
* @return {void}
* @method
* @protected
Expand All @@ -25,7 +25,7 @@ export const execute = (): void =>
if (!shaderInstancedManager.count) {
return ;
}

const currentAttachmentObject = $context.currentAttachmentObject;

const atlasAttachmentObject = $context.atlasAttachmentObject;
Expand Down
22 changes: 11 additions & 11 deletions packages/webgl/src/Blend/usecase/BlnedDrawDisplayObjectUseCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,34 @@ import {
$getViewportHeight,
$getViewportWidth
} from "../../WebGLUtil";
import {
import {
$getCurrentBlendMode,
$setCurrentBlendMode,
$getCurrentAtlasIndex,
$setCurrentAtlasIndex,
} from "../../Blend";
$setCurrentAtlasIndex
} from "../../Blend";
import { $setActiveAtlasIndex } from "../../AtlasManager";

/**
* @description DisplayObject単体の描画を実行
* Execute drawing of a single DisplayObject
*
* @param {Node} node
* @param {number} x_min
* @param {number} y_min
* @param {number} x_max
* @param {number} y_max
*
* @param {Node} node
* @param {number} x_min
* @param {number} y_min
* @param {number} x_max
* @param {number} y_max
* @param {Float32Array} color_transform
* @return {void}
* @method
* @protected
*/
export const execute = (
node: Node,
x_min: number,
x_min: number,
y_min: number,
x_max: number,
y_max: number,
y_max: number,
color_transform: Float32Array
): void => {

Expand Down
2 changes: 1 addition & 1 deletion packages/webgl/src/ColorBufferObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { IColorBufferObject } from "./interface/IColorBufferObject";
/**
* @description ColorBufferObjectの再利用のための配列のオブジェクトプール、
* Object pool of array for reusing ColorBufferObject
*
*
* @type {IColorBufferObject[]}
* @private
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { $gl } from "../../WebGLUtil";
export const execute = (): IColorBufferObject =>
{
const stencilBufferObject: IStencilBufferObject = {
"id": 0,
"resource": $gl.createRenderbuffer() as NonNullable<WebGLRenderbuffer>,
"width": 0,
"height": 0,
Expand All @@ -28,4 +29,4 @@ export const execute = (): IColorBufferObject =>
"area": 0,
"dirty": false
};
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { $objectPool } from "../../ColorBufferObject";
/**
* @description めぐる式二分探索法でobject_poolを検索する
* Search object_pool with Meguru binary search method
*
*
* @param {number} area
* @return {number}
* @method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { $objectPool } from "../../ColorBufferObject";
/**
* @description 指定サイズのobjectがpoolにあれば再利用、なければ新規作成する
* If an object of the specified size is in the pool, reuse it, otherwise create a new one
*
*
* @param {number} area
* @return {object}
* @method
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IColorBufferObject } from "../../interface/IColorBufferObject";
import { execute as colorBufferObjectMeguruBinarySearchService } from "../service/ColorBufferObjectMeguruBinarySearchService"
import { execute as colorBufferObjectMeguruBinarySearchService } from "../service/ColorBufferObjectMeguruBinarySearchService";
import { $objectPool } from "../../ColorBufferObject";

/**
Expand Down
Loading

0 comments on commit a6f0d65

Please sign in to comment.