MCPcopy
hub / github.com/loggerhead/json4u / constructor

Method constructor

src/lib/table/tableNode.ts:61–79  ·  view source on GitHub ↗
(type: TableNodeType)

Source from the content-addressed store, hash-verified

59 y: number;
60
61 constructor(type: TableNodeType) {
62 this.type = type;
63 this.id = "";
64 this.row = 0;
65 this.span = isTableType(type) ? 0 : 1; // dummyTable span is calculated later
66 this.width = 0;
67 this.text = "";
68 this.level = 0;
69 this.x = 0;
70 this.y = 0;
71 this.borderFlags = {
72 left: false,
73 right: false,
74 top: false,
75 bottom: false,
76 };
77 this.classNames = [];
78 this.heads = [];
79 }
80
81 clone(fields?: Partial<TableNode>) {
82 const nd = new TableNode(this.type);

Callers

nothing calls this directly

Calls 1

isTableTypeFunction · 0.90

Tested by

no test coverage detected