mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-25 08:26:52 +00:00
update for clamped edgecases
This commit is contained in:
parent
8637f16e2d
commit
ca68786a64
@ -65,23 +65,25 @@ title: $:/core/macros/sidebar-resizer
|
|||||||
storyRightStart={{{ [convert.to.pixels{$:/state/sidebar/resizing!!start-story-right}] }}}
|
storyRightStart={{{ [convert.to.pixels{$:/state/sidebar/resizing!!start-story-right}] }}}
|
||||||
storyWidthStart={{{ [convert.to.pixels{$:/state/sidebar/resizing!!start-story-width}] }}}
|
storyWidthStart={{{ [convert.to.pixels{$:/state/sidebar/resizing!!start-story-width}] }}}
|
||||||
storyMinWidth={{{ [convert.to.pixels{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}] }}}
|
storyMinWidth={{{ [convert.to.pixels{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}] }}}
|
||||||
|
sidebarMinWidth={{{ [convert.to.pixels{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}] }}}
|
||||||
|
storyLeft={{{ [convert.to.pixels{$:/themes/tiddlywiki/vanilla/metrics/storyleft}] }}}
|
||||||
|
clampedDiff={{{ [<storyWidthStart>add<storyLeft>add<sidebarMinWidth>subtract<widgetNodeWidth>compare:number:gt[0]] ~0 }}}
|
||||||
|
storyWidthStart={{{ [<storyWidthStart>subtract<clampedDiff>] }}}
|
||||||
|
storyRightStart={{{ [<storyRightStart>subtract<clampedDiff>] }}}
|
||||||
storyWidth={{{ [<storyWidthStart>add<dragDiff>] }}}
|
storyWidth={{{ [<storyWidthStart>add<dragDiff>] }}}
|
||||||
innerStoryWidth={{{ [<storyWidth>subtract[84]] }}}
|
innerStoryWidth={{{ [<storyWidth>subtract[84]] }}}
|
||||||
innerStoryWidthStart={{{ [<storyWidthStart>subtract[84]] }}}
|
innerStoryWidthStart={{{ [<storyWidthStart>subtract[84]] }}}
|
||||||
storyLeft={{{ [convert.to.pixels{$:/themes/tiddlywiki/vanilla/metrics/storyleft}] }}}
|
|
||||||
storyMinWidthAddLeft={{{ [<storyMinWidth>add<storyLeft>] }}}
|
storyMinWidthAddLeft={{{ [<storyMinWidth>add<storyLeft>] }}}
|
||||||
sidebarMinWidth={{{ [convert.to.pixels{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}] }}}
|
|
||||||
storyRiverLimit={{{ [<widgetNodeWidth>subtract<sidebarMinWidth>] }}}
|
storyRiverLimit={{{ [<widgetNodeWidth>subtract<sidebarMinWidth>] }}}
|
||||||
storyMaxWidth={{{ [<storyRiverLimit>subtract<storyLeft>] }}}
|
storyMaxWidth={{{ [<storyRiverLimit>subtract<storyLeft>] }}}
|
||||||
clampedDiff={{{ [<storyWidthStart>add<storyLeft>add<sidebarMinWidth>subtract<widgetNodeWidth>compare:number:gt[0]] ~0 }}}
|
|
||||||
tiddlerWidthMetric={{$:/state/sidebar/resizing!!tiddler-width-metric}}
|
tiddlerWidthMetric={{$:/state/sidebar/resizing!!tiddler-width-metric}}
|
||||||
tiddlerWidthStart={{$:/state/sidebar/resizing!!start-tiddler-width}}
|
tiddlerWidthStart={{$:/state/sidebar/resizing!!start-tiddler-width}}
|
||||||
tiddlerWidthStartPixels={{{ [<tiddlerWidthMetric>match[%]then<tiddlerWidthStart>multiply<innerStoryWidthStart>divide[100]] ~[convert.to.pixels<tiddlerWidthStart>] }}}
|
tiddlerWidthStartPixels={{{ [<tiddlerWidthMetric>match[%]then<tiddlerWidthStart>multiply<innerStoryWidthStart>divide[100]] ~[convert.to.pixels<tiddlerWidthStart>] }}}
|
||||||
|
tiddlerWidthStartPixels={{{ [<tiddlerWidthStartPixels>subtract<clampedDiff>] }}}
|
||||||
tiddlerWidth={{{ [<tiddlerWidthStartPixels>add<dragDiff>] }}}
|
tiddlerWidth={{{ [<tiddlerWidthStartPixels>add<dragDiff>] }}}
|
||||||
tiddlerWidthDiff={{{ [<storyWidth>subtract<tiddlerWidth>] }}}
|
tiddlerWidthDiff={{{ [<storyWidth>subtract<tiddlerWidth>] }}}
|
||||||
tiddlerMinWidth={{{ [<tiddlerWidthMetric>match[%]then<tiddlerWidth>] ~[<storyMinWidth>subtract<tiddlerWidthDiff>] }}}
|
tiddlerMinWidth={{{ [<tiddlerWidthMetric>match[%]then<tiddlerWidth>] ~[<storyMinWidth>subtract<tiddlerWidthDiff>] }}}
|
||||||
tiddlerMaxWidth={{{ [<tiddlerWidthMetric>match[%]then<tiddlerWidth>] ~[<storyMaxWidth>subtract<tiddlerWidthDiff>] }}}
|
tiddlerMaxWidth={{{ [<tiddlerWidthMetric>match[%]then<tiddlerWidth>] ~[<storyMaxWidth>subtract<tiddlerWidthDiff>] }}}
|
||||||
storyWidth={{{ [<storyWidth>subtract<clampedDiff>] }}}
|
|
||||||
storyRiverWidth={{{ [<storyRiverWidth>subtract<clampedDiff>] }}}>
|
storyRiverWidth={{{ [<storyRiverWidth>subtract<clampedDiff>] }}}>
|
||||||
|
|
||||||
<$let
|
<$let
|
||||||
|
Loading…
Reference in New Issue
Block a user