File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
src/plugins/felixhayashi/tiddlymap Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " tiddlymap" ,
3
- "version" : " 0.15.1 " ,
3
+ "version" : " 0.15.2 " ,
4
4
"author" : " Felix Küppers <felix.kueppers@outlook.com>" ,
5
5
"description" : " TiddlyMap is a TiddlyWiki plugin that turns your favorite personal note taking software in a wiki-concept-map hybrid!" ,
6
6
"license" : " BSD-2-Clause" ,
Original file line number Diff line number Diff line change @@ -341,15 +341,20 @@ export const notify = message => {
341
341
* in preview or not.
342
342
*/
343
343
export const isPreviewed = widget => {
344
-
345
344
if ( ! widget ) {
346
345
return false ;
347
346
}
348
347
348
+ // TODO: in the wiki utils we should not know about TiddlyMap domNode property!
349
+ if ( widget . domNode . isTiddlyWikiFakeDom ) {
350
+ return true ;
351
+ }
352
+
349
353
if ( widget . getVariable ( 'tv-tiddler-preview' ) ) {
350
354
return true ;
351
355
} else { // fallback for < v5.1.9
352
356
const cls = 'tc-tiddler-preview-preview' ;
357
+ // TODO: in the wiki utils we should not know about TiddlyMap domNode property!
353
358
return ! ! basicUtils . getAncestorWithClass ( widget . parentDomNode , cls ) ;
354
359
}
355
360
Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ class MapWidget extends Widget {
334
334
335
335
$tw . utils . addClass ( this . graphDomNode , 'tmap-vis-graph' ) ;
336
336
337
- if ( utils . isPreviewed ( this ) || this . domNode . isTiddlyWikiFakeDom ) {
337
+ if ( utils . isPreviewed ( this ) ) {
338
338
339
339
$tw . utils . addClass ( this . domNode , 'tmap-static-mode' ) ;
340
340
this . renderPreview ( this . graphBarDomNode , this . graphDomNode ) ;
Original file line number Diff line number Diff line change 2
2
"title": "$:/plugins/felixhayashi/tiddlymap",
3
3
"description": "TiddlyMap – Map drawing and topic visualization for your wiki",
4
4
"author": "Felix Küppers",
5
- "version": "0.15.1+9730 ",
6
- "released": "Sun, 21 Oct 2018 18:58:03 GMT",
5
+ "version": "0.15.2+9733 ",
6
+ "released": "Thu, 25 Oct 2018 20:37:42 GMT",
7
7
"core-version": ">=5.1.5",
8
8
"source": "https://github.com/felixhayashi/TW5-TiddlyMap",
9
9
"type": "application/json",
You can’t perform that action at this time.
0 commit comments