Skip to content

Commit

Permalink
Fix a few formatting errors due to longer line lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantrem committed Apr 18, 2024
1 parent 6b9836d commit cb3992c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
8 changes: 7 additions & 1 deletion packages/dev/core/src/Engines/nullEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,13 @@ export class NullEngine extends Engine {
this._cachedViewport = viewport;
}

public override createShaderProgram(pipelineContext: IPipelineContext, vertexCode: string, fragmentCode: string, defines: string, context?: WebGLRenderingContext): WebGLProgram {
public override createShaderProgram(
pipelineContext: IPipelineContext,
vertexCode: string,
fragmentCode: string,
defines: string,
context?: WebGLRenderingContext
): WebGLProgram {
return {
// eslint-disable-next-line @typescript-eslint/naming-convention
__SPECTOR_rebuildProgram: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ export class FlowGraphConstantBlock<T> extends FlowGraphBlock {
* @param serializationObject the object to serialize to
* @param valueSerializeFunction the function to use to serialize the value
*/
public override serialize(serializationObject: any = {}, valueSerializeFunction: (key: string, value: any, serializationObject: any) => any = defaultValueSerializationFunction) {
public override serialize(
serializationObject: any = {},
valueSerializeFunction: (key: string, value: any, serializationObject: any) => any = defaultValueSerializationFunction
) {
super.serialize(serializationObject);
valueSerializeFunction("value", this.config.value, serializationObject.config);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,12 @@ export class MorphTargetsBlock extends NodeMaterialBlock {
}
}

public override replaceRepeatableContent(vertexShaderState: NodeMaterialBuildState, fragmentShaderState: NodeMaterialBuildState, mesh: AbstractMesh, defines: NodeMaterialDefines) {
public override replaceRepeatableContent(
vertexShaderState: NodeMaterialBuildState,
fragmentShaderState: NodeMaterialBuildState,
mesh: AbstractMesh,
defines: NodeMaterialDefines
) {
const position = this.position;
const normal = this.normal;
const tangent = this.tangent;
Expand Down
7 changes: 6 additions & 1 deletion packages/dev/core/src/Misc/depthReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ export class DepthReducer extends MinMaxReducer {
/**
* @internal
*/
public override setSourceTexture(sourceTexture: RenderTargetTexture, depthRedux: boolean, type: number = Constants.TEXTURETYPE_HALF_FLOAT, forceFullscreenViewport = true): void {
public override setSourceTexture(
sourceTexture: RenderTargetTexture,
depthRedux: boolean,
type: number = Constants.TEXTURETYPE_HALF_FLOAT,
forceFullscreenViewport = true
): void {
super.setSourceTexture(sourceTexture, depthRedux, type, forceFullscreenViewport);
}

Expand Down
11 changes: 10 additions & 1 deletion packages/dev/gui/src/2D/controls/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,16 @@ export class Container extends Control {
/**
* @internal
*/
public override _processPicking(x: number, y: number, pi: Nullable<PointerInfoBase>, type: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean {
public override _processPicking(
x: number,
y: number,
pi: Nullable<PointerInfoBase>,
type: number,
pointerId: number,
buttonIndex: number,
deltaX?: number,
deltaY?: number
): boolean {
if (!this._isEnabled || !this.isVisible || this.notRenderable) {
return false;
}
Expand Down

0 comments on commit cb3992c

Please sign in to comment.