MCPcopy Index your code
hub / github.com/rough-stuff/rough-notation / refresh

Method refresh

src/rough-notation.ts:158–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156
157 private pendingRefresh?: Promise<void>;
158 private refresh() {
159 if (this.isShowing() && (!this.pendingRefresh)) {
160 this.pendingRefresh = Promise.resolve().then(() => {
161 if (this.isShowing()) {
162 this.show();
163 }
164 delete this.pendingRefresh;
165 });
166 }
167 }
168
169 show(): void {
170 switch (this._state) {

Callers 3

colorMethod · 0.95
strokeWidthMethod · 0.95
paddingMethod · 0.95

Calls 2

isShowingMethod · 0.95
showMethod · 0.95

Tested by

no test coverage detected