質問編集履歴

3

検証による進捗報告

2018/07/09 07:05

投稿

sanezane
sanezane

スコア91

test CHANGED
File without changes
test CHANGED
@@ -131,3 +131,21 @@
131
131
  </g>
132
132
 
133
133
  ```
134
+
135
+
136
+
137
+ 追記*****************************************************************
138
+
139
+ プラグインをdarktooltipというものに変更したところ切り替わることを確認できました。
140
+
141
+ しかし、切り替える前のツールチップが現データ表示のツールチップの後ろに出てしまうという事象が発生しています。イメージ画像追加。
142
+
143
+ メモリのことを考えると現時点のツールチップ以外は出したくないので、切り替える以前のツールチップのオブジェクトを破棄するのになにか良い方法はありますでしょうか。
144
+
145
+ 私にはスキル不足で出来ませんが、プラグインを少しイジれば古いオブジェクトは消せるよー、っていう場合はご教授願います。
146
+
147
+ 以下、プラグインのURLです。
148
+
149
+ [リンク内容](https://github.com/rubentd/darktooltip)
150
+
151
+ ![イメージ説明](5e3978cf4892075372a01939a845845e.jpeg)

2

タブ追加

2018/07/09 07:05

投稿

sanezane
sanezane

スコア91

test CHANGED
File without changes
test CHANGED
File without changes

1

コード修正

2018/07/09 01:05

投稿

sanezane
sanezane

スコア91

test CHANGED
File without changes
test CHANGED
@@ -71,3 +71,63 @@
71
71
  このブロックがif(Number==5)まであります。
72
72
 
73
73
  オブジェクトをリフレッシュする方法があれば、ご教授いただければ幸いです。
74
+
75
+
76
+
77
+ 今回、オブジェクトをSVGファイルで管理していまして、htmlにつきましてはそのファイルを読み込むという形をとっています。ですので該当オブジェクトに関するSVGファイルの内容をご提示します。
78
+
79
+ 初期表示時に上記コードを入れていますので初期表示時はgタブにdata-titleが入っています。
80
+
81
+ ```html
82
+
83
+ <g
84
+
85
+ class="P"
86
+
87
+ //クラス
88
+
89
+ id="gP4"
90
+
91
+ //ID
92
+
93
+ transform="translate(-0.5291751,-3.4683591e-6)">
94
+
95
+ <rect
96
+
97
+ style="display:inline;fill:#b3b3b3;fill-opacity:1;stroke:#000000;stroke-width:0.07969642;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
98
+
99
+ id="P4_rect"
100
+
101
+ width="7.55512"
102
+
103
+ height="18.46151"
104
+
105
+ x="84.945335"
106
+
107
+ y="174.39366" />
108
+
109
+ <text
110
+
111
+ xml:space="preserve"
112
+
113
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.60198593px;line-height:1.25;font-family:'MS Gothic';-inkscape-font-specification:'MS Gothic, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26413709"
114
+
115
+ x="87.434586"
116
+
117
+ y="185.37314"
118
+
119
+ id="P4_text"
120
+
121
+ transform="scale(1.0001351,0.99986491)"><tspan
122
+
123
+ id="tspan1324-3-6-4-7-0-7"
124
+
125
+ x="87.434586"
126
+
127
+ y="185.37314"
128
+
129
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.60198593px;font-family:'MS Gothic';-inkscape-font-specification:'MS Gothic, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26413709">4</tspan></text>
130
+
131
+ </g>
132
+
133
+ ```