Skip to content

Commit c41f48f

Browse files
committed
style(types): maintain consistent formatting
1 parent b19db90 commit c41f48f

File tree

206 files changed

+23056
-21031
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+23056
-21031
lines changed

Sources/Common/Core/Base64/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export function toArrayBuffer(b64Str: string): ArrayBuffer;
1717
export function fromArrayBuffer(ab: ArrayBuffer): string;
1818

1919
interface Base64 {
20-
toArrayBuffer: typeof toArrayBuffer,
21-
fromArrayBuffer: typeof fromArrayBuffer,
20+
toArrayBuffer: typeof toArrayBuffer;
21+
fromArrayBuffer: typeof fromArrayBuffer;
2222
}
2323

2424
export default Base64;
Lines changed: 47 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,48 @@
1-
import { TypedArray } from "../../../types";
2-
import vtkDataArray, { IDataArrayInitialValues } from "../../Core/DataArray";
3-
1+
import { TypedArray } from '../../../types';
2+
import vtkDataArray, { IDataArrayInitialValues } from '../../Core/DataArray';
43

54
/**
65
* The inital values of a vtkCellArray.
76
*/
87
export interface ICellArrayInitialValues extends IDataArrayInitialValues {
9-
empty?: boolean;
8+
empty?: boolean;
109
}
1110

1211
/**
1312
* You are NOT allowed to modify the cell array via `getData()`.
1413
* Only via `setData` or `insertNextCell`
1514
*/
1615
export interface vtkCellArray extends vtkDataArray {
16+
/**
17+
* Get the number of cells in the array.
18+
* @param {Boolean} [recompute] Recompute the number of cells.
19+
*/
20+
getNumberOfCells(recompute?: boolean): number;
1721

18-
/**
19-
* Get the number of cells in the array.
20-
* @param {Boolean} [recompute] Recompute the number of cells.
21-
*/
22-
getNumberOfCells(recompute?: boolean): number;
23-
24-
/**
25-
* Get the sizes of the cells in this array.
26-
* @param {Boolean} [recompute] Recompute the cell sizes.
27-
*/
28-
getCellSizes(recompute?: boolean): any;
22+
/**
23+
* Get the sizes of the cells in this array.
24+
* @param {Boolean} [recompute] Recompute the cell sizes.
25+
*/
26+
getCellSizes(recompute?: boolean): any;
2927

30-
/**
31-
* Set the data of this array.
32-
* @param {Number[]|TypedArray} typedArray The Array value.
33-
*/
34-
setData(typedArray: number[]|TypedArray): void;
28+
/**
29+
* Set the data of this array.
30+
* @param {Number[]|TypedArray} typedArray The Array value.
31+
*/
32+
setData(typedArray: number[] | TypedArray): void;
3533

36-
/**
37-
* Returns the point indices at the given location as a subarray.
38-
* @param loc
39-
*/
40-
getCell(loc: any): void;
34+
/**
35+
* Returns the point indices at the given location as a subarray.
36+
* @param loc
37+
*/
38+
getCell(loc: any): void;
4139

42-
/**
43-
* Insert a cell to this array in the next available slot.
44-
* @param {Number[]} cellPointIds The list of point ids (NOT prefixed with the number of points)
45-
* @returns {Number} Idx of where the cell was inserted
46-
*/
47-
insertNextCell(cellPointIds: number[]): number;
40+
/**
41+
* Insert a cell to this array in the next available slot.
42+
* @param {Number[]} cellPointIds The list of point ids (NOT prefixed with the number of points)
43+
* @returns {Number} Idx of where the cell was inserted
44+
*/
45+
insertNextCell(cellPointIds: number[]): number;
4846
}
4947

5048
/**
@@ -54,37 +52,42 @@ export interface vtkCellArray extends vtkDataArray {
5452
* @param model object on which data structure will be bounds (protected)
5553
* @param {ICellArrayInitialValues} [initialValues] (default: {})
5654
*/
57-
export function extend(publicAPI: object, model: object, initialValues?: ICellArrayInitialValues): void;
55+
export function extend(
56+
publicAPI: object,
57+
model: object,
58+
initialValues?: ICellArrayInitialValues
59+
): void;
5860

5961
/**
6062
* Method used to create a new instance of vtkCellArray
6163
* @param {ICellArrayInitialValues} [initialValues] for pre-setting some of its content
6264
*/
63-
export function newInstance(initialValues?: ICellArrayInitialValues): vtkCellArray;
64-
65+
export function newInstance(
66+
initialValues?: ICellArrayInitialValues
67+
): vtkCellArray;
6568

6669
/**
6770
* @static
6871
* @param cellArray
6972
*/
7073
export function extractCellSizes(cellArray: any): any;
7174

72-
/**
73-
* @static
74-
* @param cellArray
75-
*/
75+
/**
76+
* @static
77+
* @param cellArray
78+
*/
7679
export function getNumberOfCells(cellArray: any): any;
7780

7881
/**
7982
* vtkCellArray stores dataset topologies as an explicit connectivity table
8083
* listing the point ids that make up each cell.
81-
*
84+
*
8285
* @see [vtkDataArray](./Common_Core_DataArray.html)
8386
*/
8487
export declare const vtkCellArray: {
85-
newInstance: typeof newInstance;
86-
extend: typeof extend;
87-
extractCellSizes: typeof extractCellSizes;
88-
getNumberOfCells: typeof getNumberOfCells;
89-
}
88+
newInstance: typeof newInstance;
89+
extend: typeof extend;
90+
extractCellSizes: typeof extractCellSizes;
91+
getNumberOfCells: typeof getNumberOfCells;
92+
};
9093
export default vtkCellArray;

0 commit comments

Comments
 (0)