Add simple scroll of long waveform
This commit is contained in:
parent
664b7b1f5c
commit
d04282e1c7
@ -119,6 +119,11 @@
|
|||||||
width: 50%;
|
width: 50%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#logdiv pre {
|
||||||
|
position: absolute;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@ -744,12 +744,22 @@
|
|||||||
;;;
|
;;;
|
||||||
;;; Make log HTML
|
;;; Make log HTML
|
||||||
;;;
|
;;;
|
||||||
(define (make-log-html log vcd canvas-width)
|
(define* (make-log-html log vcd canvas-width #:key
|
||||||
|
(minimum-sample-width 10)
|
||||||
|
(maximum-canvas-width 20000))
|
||||||
(if vcd
|
(if vcd
|
||||||
(format "~a<br/>\n<pre id=\"log\">~a</pre>\n"
|
(let ((need-width
|
||||||
(string-concatenate
|
(* minimum-sample-width
|
||||||
(vcd->svg vcd canvas-width))
|
(length (vcd-timestamps vcd)))))
|
||||||
log)
|
(format "~a<br/>\n<pre id=\"log\">~a</pre>\n"
|
||||||
|
(string-concatenate
|
||||||
|
(vcd->svg vcd
|
||||||
|
(if (< need-width canvas-width)
|
||||||
|
canvas-width
|
||||||
|
(if (> need-width maximum-canvas-width)
|
||||||
|
maximum-canvas-width
|
||||||
|
need-width))))
|
||||||
|
log))
|
||||||
(format "<pre>~a</pre>\n" log)))
|
(format "<pre>~a</pre>\n" log)))
|
||||||
|
|
||||||
;;;
|
;;;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user