OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
40
dev/DWGViewer/libs/dxf-parser/DxfArrayScanner.d.ts
vendored
Normal file
40
dev/DWGViewer/libs/dxf-parser/DxfArrayScanner.d.ts
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
export interface IGroup {
|
||||
code: number;
|
||||
value: number | string | boolean;
|
||||
}
|
||||
/**
|
||||
* DxfArrayScanner
|
||||
*
|
||||
* Based off the AutoCad 2012 DXF Reference
|
||||
* http://images.autodesk.com/adsk/files/autocad_2012_pdf_dxf-reference_enu.pdf
|
||||
*
|
||||
* Reads through an array representing lines of a dxf file. Takes an array and
|
||||
* provides an easy interface to extract group code and value pairs.
|
||||
* @param data - an array where each element represents a line in the dxf file
|
||||
* @constructor
|
||||
*/
|
||||
export default class DxfArrayScanner {
|
||||
private _pointer;
|
||||
private _eof;
|
||||
lastReadGroup: IGroup;
|
||||
private _data;
|
||||
constructor(data: string[]);
|
||||
/**
|
||||
* Gets the next group (code, value) from the array. A group is two consecutive elements
|
||||
* in the array. The first is the code, the second is the value.
|
||||
* @returns {{code: Number}|*}
|
||||
*/
|
||||
next(): IGroup;
|
||||
peek(): IGroup;
|
||||
rewind(numberOfGroups?: number): void;
|
||||
/**
|
||||
* Returns true if there is another code/value pair (2 elements in the array).
|
||||
* @returns {boolean}
|
||||
*/
|
||||
hasNext(): boolean;
|
||||
/**
|
||||
* Returns true if the scanner is at the end of the array
|
||||
* @returns {boolean}
|
||||
*/
|
||||
isEOF(): boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user