Hi Thomas,

Thank you for this very useful resource! May I suggest that you add an
example to illustrate WikiText inclusion (especially transclusion) in SVG?

Also, here is an optimisation to move the example loading action directly
into the select widget:

Replace
---

Examples:&nbsp; <$select tiddler="selectTid" default="S:/examples/Open
Paths">
<$list filter="[prefix[$:/examples/]]">
<option value=<<currentTiddler>>>
<$view field=caption><$view field=title/></$view>
</option>
</$list>
</$select> &nbsp;
<$vars newSvg={{{ [[selectTid]get[text]] }}}>
<$button set="$:/telmiger/svg/icon/path" setTo={{{ [<newSvg>get[text]] }}}>
Load </$button>
</$vars>

---
with
---

Examples:&nbsp; <$select tiddler="selectTid" default="S:/examples/Open
Paths" actions="""<$action-setfield $tiddler="$:/telmiger/svg/icon/path"
$value={{{ [[selectTid]get[text]get[text]] }}} />""">
<$list filter="[prefix[$:/examples/]]">
<option value=<<currentTiddler>>>
<$view field=caption><$view field=title/></$view>
</option>
</$list>
</$select>

---

Cheers,
-- Xavier Cazin


On Mon, Jan 13, 2020 at 8:40 AM Thomas Elmiger <[email protected]>
wrote:

> Hello all,
>
> On my way to work I put a new version online
> https://tid.li/tw5/apps/svg.html :)
>
> Optimisations:
>
>    - Select and load examples
>    - I just had to add captions to examples (thanks, Mohammad!)
>    - Export button (thanks, Gloom!)
>    - Additional raster (renamed "grid") size 5 (thanks, Josiah!)
>    - TW icons from prerelease 5.1.22 (less code)
>    - Link to top
>    - ...
>
> Pending:
>
>    - Size options: I am thinking about resizing buttons as YouTube has
>    them for the video player
>    (width 100% is not optimal on my tiny laptop screen).
>
> Best,
> Thomas
>
> Am Sonntag, 12. Januar 2020 15:08:35 UTC+1 schrieb TiddlyTweeter:
>>
>> Ciao Thomas
>>
>> Looking at it more I'm thinking "Width 100%" is optimal! Are there
>> reasons not to have that as default?
>>
>> Just thoughts
>> J, x
>>
>> On Sunday, 12 January 2020 14:53:17 UTC+1, TiddlyTweeter wrote:
>>>
>>> Ciao Thomas
>>>
>>> Following up on on my last post ... the setting of "100% width" plus
>>> "Open in new window" is pretty much equivalent to "Edit at full-width".
>>> Something worth thinking about to give a button for automating that in the
>>> interface?
>>>
>>> Hope this is clear!
>>>
>>> Just thoughts
>>> TT
>>>
>>> On Sunday, 12 January 2020 14:45:50 UTC+1, TiddlyTweeter wrote:
>>>>
>>>> Thomas Elmiger wrote:
>>>>>
>>>>> Hello friends, a new version is live on
>>>>> https://tid.li/tw5/apps/svg.html :)
>>>>>
>>>>   <snip>
>>>>
>>>>> In the CSS editor below the result you can see *width: 70vh; *– this
>>>>> tells the graphic to use a width corresponding to 70% of viewport
>>>>> height.Try other values or entities and let us know what works best on 
>>>>> your
>>>>> screens.
>>>>
>>>>
>>>> Ciao Thomas
>>>>
>>>> Excellent info & changes ...
>>>>
>>>> FYI: I changed width to 100% and then "open in new window". Then
>>>> editing  is excellent!
>>>>
>>>> At that scale I'd like to increase the raster intervals more though ...
>>>> so ... *Raster "5, 10, 20, none"* would be really good! :-)
>>>>
>>>>
>>>>> Hope that helps.
>>>>>
>>>>
>>>> It did.
>>>>
>>>> J, x
>>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/28c784c0-e5ce-49e7-9a09-e7719d07cb04%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/28c784c0-e5ce-49e7-9a09-e7719d07cb04%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CADeSwYP9oBe7t_n7pPr2tTj%3DQC2xuAUC0-MDg4nqGj20Lbi8dg%40mail.gmail.com.

Reply via email to