Skip to content

Commit

Permalink
style(types): maintain consistent formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Jun 11, 2024
1 parent b19db90 commit c41f48f
Show file tree
Hide file tree
Showing 206 changed files with 23,056 additions and 21,031 deletions.
4 changes: 2 additions & 2 deletions Sources/Common/Core/Base64/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export function toArrayBuffer(b64Str: string): ArrayBuffer;
export function fromArrayBuffer(ab: ArrayBuffer): string;

interface Base64 {
toArrayBuffer: typeof toArrayBuffer,
fromArrayBuffer: typeof fromArrayBuffer,
toArrayBuffer: typeof toArrayBuffer;
fromArrayBuffer: typeof fromArrayBuffer;
}

export default Base64;
91 changes: 47 additions & 44 deletions Sources/Common/Core/CellArray/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,50 +1,48 @@
import { TypedArray } from "../../../types";
import vtkDataArray, { IDataArrayInitialValues } from "../../Core/DataArray";

import { TypedArray } from '../../../types';
import vtkDataArray, { IDataArrayInitialValues } from '../../Core/DataArray';

/**
* The inital values of a vtkCellArray.
*/
export interface ICellArrayInitialValues extends IDataArrayInitialValues {
empty?: boolean;
empty?: boolean;
}

/**
* You are NOT allowed to modify the cell array via `getData()`.
* Only via `setData` or `insertNextCell`
*/
export interface vtkCellArray extends vtkDataArray {
/**
* Get the number of cells in the array.
* @param {Boolean} [recompute] Recompute the number of cells.
*/
getNumberOfCells(recompute?: boolean): number;

/**
* Get the number of cells in the array.
* @param {Boolean} [recompute] Recompute the number of cells.
*/
getNumberOfCells(recompute?: boolean): number;

/**
* Get the sizes of the cells in this array.
* @param {Boolean} [recompute] Recompute the cell sizes.
*/
getCellSizes(recompute?: boolean): any;
/**
* Get the sizes of the cells in this array.
* @param {Boolean} [recompute] Recompute the cell sizes.
*/
getCellSizes(recompute?: boolean): any;

/**
* Set the data of this array.
* @param {Number[]|TypedArray} typedArray The Array value.
*/
setData(typedArray: number[]|TypedArray): void;
/**
* Set the data of this array.
* @param {Number[]|TypedArray} typedArray The Array value.
*/
setData(typedArray: number[] | TypedArray): void;

/**
* Returns the point indices at the given location as a subarray.
* @param loc
*/
getCell(loc: any): void;
/**
* Returns the point indices at the given location as a subarray.
* @param loc
*/
getCell(loc: any): void;

/**
* Insert a cell to this array in the next available slot.
* @param {Number[]} cellPointIds The list of point ids (NOT prefixed with the number of points)
* @returns {Number} Idx of where the cell was inserted
*/
insertNextCell(cellPointIds: number[]): number;
/**
* Insert a cell to this array in the next available slot.
* @param {Number[]} cellPointIds The list of point ids (NOT prefixed with the number of points)
* @returns {Number} Idx of where the cell was inserted
*/
insertNextCell(cellPointIds: number[]): number;
}

/**
Expand All @@ -54,37 +52,42 @@ export interface vtkCellArray extends vtkDataArray {
* @param model object on which data structure will be bounds (protected)
* @param {ICellArrayInitialValues} [initialValues] (default: {})
*/
export function extend(publicAPI: object, model: object, initialValues?: ICellArrayInitialValues): void;
export function extend(
publicAPI: object,
model: object,
initialValues?: ICellArrayInitialValues
): void;

/**
* Method used to create a new instance of vtkCellArray
* @param {ICellArrayInitialValues} [initialValues] for pre-setting some of its content
*/
export function newInstance(initialValues?: ICellArrayInitialValues): vtkCellArray;

export function newInstance(
initialValues?: ICellArrayInitialValues
): vtkCellArray;

/**
* @static
* @param cellArray
*/
export function extractCellSizes(cellArray: any): any;

/**
* @static
* @param cellArray
*/
/**
* @static
* @param cellArray
*/
export function getNumberOfCells(cellArray: any): any;

/**
* vtkCellArray stores dataset topologies as an explicit connectivity table
* listing the point ids that make up each cell.
*
*
* @see [vtkDataArray](./Common_Core_DataArray.html)
*/
export declare const vtkCellArray: {
newInstance: typeof newInstance;
extend: typeof extend;
extractCellSizes: typeof extractCellSizes;
getNumberOfCells: typeof getNumberOfCells;
}
newInstance: typeof newInstance;
extend: typeof extend;
extractCellSizes: typeof extractCellSizes;
getNumberOfCells: typeof getNumberOfCells;
};
export default vtkCellArray;
Loading

0 comments on commit c41f48f

Please sign in to comment.