mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
6968be563e
@ -1,5 +1,5 @@
|
||||
created: 20140324223413403
|
||||
modified: 20140919161431562
|
||||
modified: 20150505063713581
|
||||
tags: Learning
|
||||
title: Making curved text with SVG
|
||||
type: text/vnd.tiddlywiki
|
||||
@ -19,7 +19,7 @@ $text$
|
||||
</svg>
|
||||
$$$
|
||||
\end
|
||||
This demo shows how to use SVG to render transcluded text along a path. Enter some text in the textbox below to try it out; view the source to see how it is done.
|
||||
This demo shows how to use SVG to render transcluded text along a path. Enter some text in the textbox below to try it out; [[view the source|Making curved text with SVG]] to see how it is done.
|
||||
|
||||
<$edit-text tiddler="$:/CurvedText" tag="input" placeholder="Type text here" default=""/>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
created: 20131028132700000
|
||||
modified: 20140912141152984
|
||||
modified: 20150505063640327
|
||||
tags: Features
|
||||
title: UsingSVG
|
||||
type: text/vnd.tiddlywiki
|
||||
@ -49,3 +49,7 @@ When embedding SVG elements you can also use WikiText features like transclusion
|
||||
<svg width="150" height="150"><circle cx="75" cy="75" r={{$:/SVGExampleRadius}} stroke="black" stroke-width="2" fill="green"/></svg>
|
||||
|
||||
You can edit the value of the radius here: <$edit-text tiddler="$:/SVGExampleRadius" tag="input"/>
|
||||
|
||||
! Making curved text with SVG
|
||||
|
||||
{{Making curved text with SVG}}
|
@ -47,6 +47,8 @@ StackedListView.prototype.placeTiddlers = function() {
|
||||
itemWidget = this.listWidget.children[t];
|
||||
var domNode = itemWidget.findFirstDomNode();
|
||||
if(domNode instanceof Element) {
|
||||
// Allows the width of the tiddler to be adjusted
|
||||
$tw.utils.addClass(domNode,"tc-storyview-zoomin-tiddler");
|
||||
// Find the position of the tiddler in the stack
|
||||
var pos = this.listStack.indexOf(itemWidget.parseTreeNode.itemTitle);
|
||||
if(pos !== -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user