MCPcopy Create free account
hub / github.com/alienkitty/space.js / drawLine

Method drawLine

src/utils/Interface.js:316–330  ·  view source on GitHub ↗
(progress = this.progress || 0)

Source from the content-addressed store, hash-verified

314 }
315
316 drawLine(progress = this.progress || 0) {
317 const start = this.start || 0;
318 const offset = this.offset || 0;
319
320 const length = this.element.getTotalLength();
321 const dash = length * progress;
322 const gap = length - dash;
323
324 const style = {
325 strokeDasharray: `${dash},${gap}`,
326 strokeDashoffset: -length * (start + offset)
327 };
328
329 return this.css(style);
330 }
331
332 tween(props, duration, ease, delay = 0, complete, update) {
333 if (!this.element) {

Callers

nothing calls this directly

Calls 1

cssMethod · 0.95

Tested by

no test coverage detected