履歴: ソフトウェア/タイミングチャート清書サービス
各行は、その日時に書かれた内容です。追加・削除は、1 つ前の版との行数の差です (全 27 版)。「差分」は比較する版、「基準」は比べる相手の版を選びます
| 日時 | タイトル | 文字数 | 追加 | 削除 | 内容 | 差分 | 基準 |
|---|---|---|---|---|---|---|---|
| 2026/9/10 11:13:23 | ソフトウェア/タイミングチャート清書サービス 最新版 | 6,249 | +1 | -107 | 表示 | 差分 | — |
| 2026/9/10 11:13:23 | ソフトウェア/タイミングチャート清書サービス | 11,121 | +6 | -6 | 表示 | 差分 | 選択 |
| 2026/9/7 23:23:24 | ソフトウェア/タイミングチャート清書サービス | 10,843 | +11 | -0 | 表示 | 差分 | 選択 |
| 2021/4/26 20:58:09 | ソフトウェア/タイミングチャート清書サービス | 10,639 | +0 | -1 | 表示 | 差分 | 選択 |
| 2021/4/26 11:58:09 | ソフトウェア/タイミングチャート清書サービス | 10,704 | +1 | -0 | 表示 | 差分 | 選択 |
| 2019/8/6 15:08:29 | ソフトウェア/タイミングチャート清書サービス | 10,639 | +1 | -1 | 表示 | 差分 | 選択 |
| 2019/8/6 15:08:29 | ソフトウェア/タイミングチャート清書サービス | 10,638 | +23 | -0 | 表示 | 差分 | 選択 |
| 2019/8/6 8:07:57 | ソフトウェア/タイミングチャート清書サービス | 9,662 | +21 | -0 | 表示 | 差分 | 選択 |
| 2019/8/4 23:01:31 | ソフトウェア/タイミングチャート清書サービス | 7,961 | +5 | -0 | 表示 | 差分 | 選択 |
| 2019/8/4 15:22:48 | ソフトウェア/タイミングチャート清書サービス | 7,682 | +10 | -0 | 表示 | 差分 | 選択 |
| 2019/4/11 6:48:56 | ソフトウェア/タイミングチャート清書サービス | 7,494 | +22 | -0 | 表示 | 差分 | 選択 |
| 2019/2/21 8:05:12 | ソフトウェア/タイミングチャート清書サービス | 6,736 | +15 | -0 | 表示 | 差分 | 選択 |
| 2018/1/9 3:23:01 | ソフトウェア/タイミングチャート清書サービス | 6,157 | +9 | -9 | 表示 | 差分 | 選択 |
| 2018/1/9 3:23:01 | ソフトウェア/タイミングチャート清書サービス | 6,157 | +9 | -0 | 表示 | 差分 | 選択 |
| 2018/1/9 3:22:29 | ソフトウェア/タイミングチャート清書サービス | 5,996 | +29 | -7 | 表示 | 差分 | 選択 |
| 2016/3/30 0:54:31 | ソフトウェア/タイミングチャート清書サービス | 5,429 | +47 | -1128 | 表示 | 差分 | 選択 |
| 2016/2/11 9:47:31 | ソフトウェア/タイミングチャート清書サービス | 40,160 | +5 | -3 | 表示 | 差分 | 選択 |
| 2016/2/11 9:47:31 | ソフトウェア/タイミングチャート清書サービス | 40,118 | +26 | -1 | 表示 | 差分 | 選択 |
| 2016/2/11 9:47:31 | ソフトウェア/タイミングチャート清書サービス | 39,371 | +1 | -2 | 表示 | 差分 | 選択 |
| 2016/2/11 9:47:31 | ソフトウェア/タイミングチャート清書サービス | 39,373 | +165 | -0 | 表示 | 差分 | 選択 |
| 2016/2/10 9:22:32 | ソフトウェア/タイミングチャート清書サービス | 26,713 | +55 | -43 | 表示 | 表示中 | 選択 |
| 2016/2/10 9:22:32 | ソフトウェア/タイミングチャート清書サービス | 26,354 | +611 | -21 | 表示 | 差分 | 基準 |
| 2016/2/9 16:10:28 | ソフトウェア/タイミングチャート清書サービス | 14,219 | +23 | -24 | 表示 | 差分 | 選択 |
| 2016/2/9 5:04:39 | ソフトウェア/タイミングチャート清書サービス | 14,206 | +100 | -6 | 表示 | 差分 | 選択 |
| 2016/2/8 20:03:56 | ソフトウェア/タイミングチャート清書サービス | 11,920 | +353 | -148 | 表示 | 差分 | 選択 |
| 2016/2/8 5:26:00 | ソフトウェア/タイミングチャート清書サービス | 5,071 | +185 | -3 | 表示 | 差分 | 選択 |
| 2016/2/8 4:51:22 | ソフトウェア/タイミングチャート清書サービス | 210 | — | — | 表示 | — | 選択 |
基準: ソフトウェア/タイミングチャート清書サービス (2016/2/10 9:22:32) → 比較: ソフトウェア/タイミングチャート清書サービス (2016/2/10 9:22:32)
@@ -38,7 +38,7 @@
清書したタイミングチャートは SVG または PNG 形式で保存できます。
-入力内容がサーバーに送られることはなく、完全にブラウザ上だけで画像を生成していますので、守秘義務の問題も発生しません。心配であればリンク先の html を PC に保存して、そこから立ち上げても動作します。いくつかの javascript ライブラリへの参照さえ解決すれば、完全にオフラインでも作業が可能です。
+入力内容がサーバーに送られることはなく、完全にブラウザ上だけで画像を生成していますので、守秘義務の問題も発生しません。心配であればリンク先の html を PC に保存して、そこから立ち上げれば、完全にオフラインの状態でも動作します。
設置アドレスはこちらです:~
SIZE(20){http://dora.bk.tsukuba.ac.jp/~takeuchi/tchart.html}
@@ -50,7 +50,7 @@
** 不具合 [#a0ceca1d]
-IE ではリンク先で議論されている問題のため、[Save as PNG] および [Generate Images for Copy]
+IE では下記リンク先で議論されている問題のため、[Save as PNG] および [Generate Images for Copy]
のボタンが正常に働きません。~
https://connect.microsoft.com/IE/feedback/details/809823/draw-svg-image-on-canvas-context
@@ -59,14 +59,14 @@
同様に右クリックから [コピー] で画像をクリップボードへ入れられるので、
Word などへ貼り付ける用途ではむしろ IE の方が便利かもしれません。
-** クリップボードへのコピーの仕方 [#m4d46332]
+** IE 以外でクリップボードへのコピーの仕方 [#m4d46332]
セキュリティ上の制限のため、javascript からクリップボードへ
-自動的にコピーすることはできないようになっているため、
-手動で対応していただく必要があります。
+自動的にコピーすることはできないようになっています。
+そこで、手動で対応していただく必要があります。
[Generate Images for Copy] ボタンを押すと SVG ソースと PNG 画像が生成されます
-- SVG ソースをご入り用であれば、SVG ソースにフォーカスが当たっている状況でそのまま Ctrl+V すればコピー可能です
+- SVG ソースをご入り用であれば、SVG ソースにフォーカスが当たっている状況でそのまま Ctrl+C すればコピー可能です
- PNG 画像がご入り用であれば、PNG 画像上で右クリックから [画像をコピー] します
-- なぜか空の HTML も一緒にコピーされてしまうようで、なおかつこの空の HTML
が優先的に貼り付けられるようなので、Word などへ貼り付ける際には
@@ -623,14 +623,14 @@
* ソースコード [#sc7a574d]
-こちらでも参照可能です:http://jsbin.com/lezujowaba/1/edit?html,css,js,output
+こちらでも参照可能です:http://jsbin.com/lezujowaba/edit?html,css,js,output
LANG:html(linenumber)
<!DOCTYPE html>
<html>
<head>
- <script src="https://code.jquery.com/jquery-2.1.4.js"></script>
- <script src="https://rawgit.com/eligrey/FileSaver.js/master/FileSaver.js"></script>
+ <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
+ <script src="https://rawgit.com/eligrey/FileSaver.js/master/FileSaver.min.js"></script>
<script src="https://rawgit.com/eligrey/canvas-toBlob.js/master/canvas-toBlob.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
@@ -645,21 +645,25 @@
ready _____________[~~]______
</textarea>
<div id="result"></div>
- <input type="button" value="Download as SVG" id="as_svg" />
- <input type="button" value="Download as PNG" id="as_png" />
+ <input type="button" value="Save as SVG" id="as_svg" />
+ <input type="button" value="Save as PNG" id="as_png" />
+ <input type="button" value="Generate Images for Copy" id="for_copy" />
Background: <input id="background" value="white" style="width:60px" />
- </div>
+ <div id="images"></div>
</body>
</html>
LANG:scss(linenumber)
@import "compass";
+ $line-height: 18px;
textarea {
font-size: 15px;
- $line-height: 18px;
line-height: $line-height;
padding: 0px 10px;
+ }
+
+ #source {
@include background-image(
linear-gradient(left, white 5px, transparent 5px),
linear-gradient(right, white 5px, transparent 5px),
@@ -952,7 +956,7 @@
h= (@y + 2 * m) * @config.scale * 1.3
@width = w
@height = h
- """
+ @svg = """
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
width="#{w}px" height="#{h}px" viewBox="#{-m} #{-m} #{@x_max+2*m} #{@y+2*m}" version="1.1">
<![CDATA[
@@ -1027,37 +1031,23 @@
if Array.isArray(h)
@svg.unshift """<path d="M#{h[0]},#{t}V#{b}H#{h[1]}V#{t}Z" #{h[2]} />"""
- download= (dataUrl, filename)->
- form = $('<form>')
- form.action = dataUrl
- form.target = '_blank'
- form.submit()
-
lastSource = ''
+ lastChart = null
update = ->
source = $('#source').val()
return if lastSource==source
lastSource = source
- tchart= new TimingChart()
- svg= tchart.parse(source)
+ lastChart= new TimingChart()
+ svg= lastChart.parse(source)
$('#result').html(svg)
- $ ->
- $('#as_svg').on 'click', ->
- update()
- blob = new Blob([$('#result').html()], {type: "image/svg+xml"});
- saveAs(blob, 'timing-chart.svg')
-
- $('#as_png').on 'click', ->
- source = $('#source').val()
- tchart= new TimingChart()
- svg= tchart.parse(source)
-
+ $('#images>*').remove()
+
+ callbackWithCanvas = (f)->
canvas = document.createElement('canvas')
- canvas.width = tchart.width
- canvas.height = tchart.height
-
+ canvas.width = lastChart.width
+ canvas.height = lastChart.height
# http://nmi.jp/archives/223
img = new Image()
img.onload = ->
@@ -1065,15 +1055,37 @@
ctx.fillStyle = $('#background').val()
ctx.fillRect(0, 0, canvas.width, canvas.height)
ctx.drawImage(img, 0, 0, canvas.width, canvas.height)
- url = canvas.toDataURL('image/png')
- link = document.createElement('a')
- link.href = url
- link.download = 'timing-chart.png'
- link.click()
+ f(canvas)
+ img.src = "data:image/svg+xml;base64," + btoa(lastChart.svg)
- img.src = "data:image/svg+xml;base64," + btoa(svg)
-
+ $ ->
setInterval(update, 100)
+
+ $('#as_svg').on 'click', ->
+ update()
+ blob = new Blob([lastChart.svg], {type: "image/svg+xml"});
+ saveAs(blob, 'timing-chart.svg')
+
+ $('#as_png').on 'click', ->
+ update()
+ callbackWithCanvas (canvas)->
+ canvas.toBlob (blob)->
+ saveAs(blob, "timing-chart.png")
+
+ $('#for_copy').on 'click', ->
+ $('#images>*').remove()
+ update()
+
+ $('#images').append $('<h2>').html('SVG Source')
+
+ textarea = $('<textarea cols="60" rows="3">').val(lastChart.svg)
+ $('#images').append textarea
+ textarea.focus()
+ textarea.select()
+
+ $('#images').append $('<h2>').html('PNG Image')
+ callbackWithCanvas (canvas)->
+ $('#images').append $('<img>').attr('src', canvas.toDataURL())
* コメント・質問 [#m9652e62]