MCPcopy
hub / github.com/jabbany/CommentCoreLibrary / asRect

Method asRect

src/scripting/api/Display/Bitmap.ts:19–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 }
18
19 public asRect():Rectangle {
20 if (this.isEmpty()) {
21 return new Rectangle(0, 0, 0, 0);
22 }
23 return new Rectangle(this._xBegin,
24 this._yBegin,
25 this._xEnd - this._xBegin,
26 this._yEnd - this._yBegin);
27 }
28
29 public isEmpty():boolean {
30 return this._xBegin === null || this._yBegin === null ||

Callers 1

_updateBoxMethod · 0.80

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected