https://aplwiki.com/index.php?title=MediaWiki:LeadingAndTrailingCells.js&feed=atom&action=history
MediaWiki:LeadingAndTrailingCells.js - Revision history
2024-03-29T05:01:25Z
Revision history for this page on the wiki
MediaWiki 1.38.2
https://aplwiki.com/index.php?title=MediaWiki:LeadingAndTrailingCells.js&diff=2014&oldid=prev
Marshall: Protected "MediaWiki:LeadingAndTrailingCells.js": Executed as JS ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
2019-11-21T13:20:43Z
<p>Protected "<a href="/wiki/MediaWiki:LeadingAndTrailingCells.js" title="MediaWiki:LeadingAndTrailingCells.js">MediaWiki:LeadingAndTrailingCells.js</a>": Executed as JS ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en-GB">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 13:20, 21 November 2019</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en-GB"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Marshall
https://aplwiki.com/index.php?title=MediaWiki:LeadingAndTrailingCells.js&diff=1921&oldid=prev
RichPark: 6 revisions imported: Migrate from miraheze
2019-11-20T15:34:26Z
<p>6 revisions imported: Migrate from miraheze</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en-GB">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 15:34, 20 November 2019</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en-GB"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
RichPark
https://aplwiki.com/index.php?title=MediaWiki:LeadingAndTrailingCells.js&diff=1920&oldid=prev
Miraheze>Marshall at 16:19, 15 November 2019
2019-11-15T16:19:32Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en-GB">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 16:19, 15 November 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l3">Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>const sc = 0.7;</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>const sc = 0.7;</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>let svg = d3.select('.LeadingAndTrailingCells')</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>let svg = d3.select('.LeadingAndTrailingCells')</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> .append('svg').attrs({height:<del style="font-weight: bold; text-decoration: none;">890</del>*sc, width:620*sc})</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> .append('svg').attrs({height:<ins style="font-weight: bold; text-decoration: none;">820</ins>*sc, width:620*sc})</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .append('g')</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .append('g')</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .attr('transform',`scale(${sc})`)</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .attr('transform',`scale(${sc})`)</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l29">Line 29:</td>
<td colspan="2" class="diff-lineno">Line 29:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> H = (shape[0]*(1+shape[1])-1)*h;</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> H = (shape[0]*(1+shape[1])-1)*h;</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>let gs = svg.selectAll().data(['Trailing','Leading']).enter()</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>let gs = svg.selectAll().data(['Trailing','Leading']).enter()</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> .append('g').attr('transform',(_,i)=>`translate(${Wo+(W+Wg)*i},<del style="font-weight: bold; text-decoration: none;">140</del>)`);</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> .append('g').attr('transform',(_,i)=>`translate(${Wo+(W+Wg)*i},<ins style="font-weight: bold; text-decoration: none;">70</ins>)`);</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>gs.append('rect').attrs({x:-w/2,y:0,width:W+w,height:H,fill:'white'});</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>gs.append('rect').attrs({x:-w/2,y:0,width:W+w,height:H,fill:'white'});</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>gs.append('text').text(t=>t).attrs({ x:W/2, y:-40, 'font-size':40, fill:'#<del style="font-weight: bold; text-decoration: none;">8c817a' });</del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>gs.append('text').text(t=>t).attrs({ x:W/2, y:-40, 'font-size':40, fill:'#<ins style="font-weight: bold; text-decoration: none;">6b6560</ins>' });</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">svg.append('text').text('Cell axes').attrs({ x:Wo+W+Wg/2, y:h-22, fill:'#5b5754</del>' });</div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>gs.attr('stroke-width',3);</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>gs.attr('stroke-width',3);</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
</table>
Miraheze>Marshall
https://aplwiki.com/index.php?title=MediaWiki:LeadingAndTrailingCells.js&diff=1919&oldid=prev
Miraheze>Marshall at 13:15, 11 November 2019
2019-11-11T13:15:12Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en-GB">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 13:15, 11 November 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l5">Line 5:</td>
<td colspan="2" class="diff-lineno">Line 5:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .append('svg').attrs({height:890*sc, width:620*sc})</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .append('svg').attrs({height:890*sc, width:620*sc})</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .append('g')</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .append('g')</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> .attr('transform',<del style="font-weight: bold; text-decoration: none;">'</del>scale(sc)<del style="font-weight: bold; text-decoration: none;">'</del>)</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> .attr('transform',<ins style="font-weight: bold; text-decoration: none;">`</ins>scale(<ins style="font-weight: bold; text-decoration: none;">${</ins>sc<ins style="font-weight: bold; text-decoration: none;">}</ins>)<ins style="font-weight: bold; text-decoration: none;">`</ins>)</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .attr('font-size',46)</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .attr('font-size',46)</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .attr('text-anchor','middle');</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .attr('text-anchor','middle');</div></td></tr>
</table>
Miraheze>Marshall
https://aplwiki.com/index.php?title=MediaWiki:LeadingAndTrailingCells.js&diff=1918&oldid=prev
Miraheze>Marshall at 13:13, 11 November 2019
2019-11-11T13:13:59Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en-GB">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 13:13, 11 November 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>let div = (a,b) => Math.floor(a/b);</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>let div = (a,b) => Math.floor(a/b);</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">const sc = 0.7;</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>let svg = d3.select('.LeadingAndTrailingCells')</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>let svg = d3.select('.LeadingAndTrailingCells')</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> .append('svg')</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> .append('svg').attrs({height:890<ins style="font-weight: bold; text-decoration: none;">*sc</ins>, width:<ins style="font-weight: bold; text-decoration: none;">620*sc</ins>})</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"> </del>.attrs({height:890, width:<del style="font-weight: bold; text-decoration: none;">800</del>}).append('g')</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> </ins>.append('g<ins style="font-weight: bold; text-decoration: none;">')</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> .attr('transform','scale(sc)</ins>')</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .attr('font-size',46)</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .attr('font-size',46)</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .attr('text-anchor','middle');</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .attr('text-anchor','middle');</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l22">Line 22:</td>
<td colspan="2" class="diff-lineno">Line 24:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>}</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>}</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>let Wo= <del style="font-weight: bold; text-decoration: none;">160</del>,</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>let Wo= <ins style="font-weight: bold; text-decoration: none;">w/2+10</ins>,</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> W = (shape[rank-1]-1)*w,</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> W = (shape[rank-1]-1)*w,</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> Wg= 180,</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> Wg= 180,</div></td></tr>
</table>
Miraheze>Marshall
https://aplwiki.com/index.php?title=MediaWiki:LeadingAndTrailingCells.js&diff=1917&oldid=prev
Miraheze>Marshall: Protected "MediaWiki:LeadingAndTrailingCells.js": Run as Javascript ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite) [Delete=Allow only administrators] (indefinite))
2019-11-11T12:43:58Z
<p>Protected "<a href="/wiki/MediaWiki:LeadingAndTrailingCells.js" title="MediaWiki:LeadingAndTrailingCells.js">MediaWiki:LeadingAndTrailingCells.js</a>": Run as Javascript ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite) [Delete=Allow only administrators] (indefinite))</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en-GB">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 12:43, 11 November 2019</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en-GB"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Miraheze>Marshall
https://aplwiki.com/index.php?title=MediaWiki:LeadingAndTrailingCells.js&diff=1916&oldid=prev
Miraheze>Marshall at 11:44, 11 November 2019
2019-11-11T11:44:40Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en-GB">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:44, 11 November 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l2">Line 2:</td>
<td colspan="2" class="diff-lineno">Line 2:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>let svg = d3.select('.LeadingAndTrailingCells')</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>let svg = d3.select('.LeadingAndTrailingCells')</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> .append('svg')</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .attrs({height:890, width:800}).append('g')</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .attrs({height:890, width:800}).append('g')</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .attr('font-size',46)</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> .attr('font-size',46)</div></td></tr>
</table>
Miraheze>Marshall
https://aplwiki.com/index.php?title=MediaWiki:LeadingAndTrailingCells.js&diff=1915&oldid=prev
Miraheze>Marshall: Created page with "let div = (a,b) => Math.floor(a/b); let svg = d3.select('.LeadingAndTrailingCells') .attrs({height:890, width:800}).append('g') .attr('font-size',46) .attr('text-..."
2019-11-11T11:40:00Z
<p>Created page with "let div = (a,b) => Math.floor(a/b); let svg = d3.select('.LeadingAndTrailingCells') .attrs({height:890, width:800}).append('g') .attr('font-size',46) .attr('text-..."</p>
<p><b>New page</b></p><div>let div = (a,b) => Math.floor(a/b);<br />
<br />
let svg = d3.select('.LeadingAndTrailingCells')<br />
.attrs({height:890, width:800}).append('g')<br />
.attr('font-size',46)<br />
.attr('text-anchor','middle');<br />
let w = 60,<br />
h = 58,<br />
boxPad = 5,<br />
xp = 3;<br />
<br />
let shape = [3,3,4],<br />
rank = shape.length,<br />
dat = [0,0,1,0,1,1,0,0,1,1,1,0,0,0,0,0,0,0,0,1,0,0,1,0,1,0,1,1,0,0,1,0,1,1,1,0];<br />
function getPos(i) {<br />
let a = rank-1;<br />
let pos = [div(i,shape[a]), i%shape[a]]; a--;<br />
let y = pos[0];<br />
while (a--) { y=div(y,shape[a]); pos[0]+=y; }<br />
return {x:w*pos[1], y:h*pos[0]};<br />
}<br />
<br />
let Wo= 160,<br />
W = (shape[rank-1]-1)*w,<br />
Wg= 180,<br />
H = (shape[0]*(1+shape[1])-1)*h;<br />
let gs = svg.selectAll().data(['Trailing','Leading']).enter()<br />
.append('g').attr('transform',(_,i)=>`translate(${Wo+(W+Wg)*i},140)`);<br />
gs.append('rect').attrs({x:-w/2,y:0,width:W+w,height:H,fill:'white'});<br />
gs.append('text').text(t=>t).attrs({ x:W/2, y:-40, 'font-size':40, fill:'#8c817a' });<br />
svg.append('text').text('Cell axes').attrs({ x:Wo+W+Wg/2, y:h-22, fill:'#5b5754' });<br />
gs.attr('stroke-width',3);<br />
<br />
let getColor = i => d3.hsl(d3.interpolateViridis(0.9-0.25*i));<br />
function getColors(i) {<br />
let c = getColor(i); c.s+=0.2; c.l-=0.05;<br />
let f = d3.hsl(c); f.l=0.96;<br />
return {s:c,f:f};<br />
}<br />
function getRect(i,j,dim) {<br />
let t = boxPad*i,<br />
c = getColors(i),<br />
xp= 3;<br />
return {<br />
x:-t-w/2+xp, width: w*dim[0]+2*(t-xp),<br />
y:-t+4*h*j, height:h*dim[1]+2*t,<br />
stroke:c.s, fill:c.f<br />
};<br />
}<br />
<br />
let trail = gs.filter((_,i)=>i===0)<br />
.selectAll().data(d3.range(rank).reverse()).enter()<br />
.append('rect').attrs(i => {<br />
let dim = [1,1];<br />
d3.range(i).forEach(j=>dim[j]=shape[rank-1-j]);<br />
return getRect(i,0,dim);<br />
});<br />
<br />
let lead = gs.filter((_,i)=>i===1).selectAll()<br />
.data(d3.range(rank).reverse()).enter()<br />
.append('g');<br />
lead.selectAll().data(i => {<br />
let dim = [1,1];<br />
if (i>1) dim[1]=shape[rank-2];<br />
return d3.range(i>0?3:1).map(j=>getRect(i,j,dim));<br />
}).enter()<br />
.append('rect').attrs(a=>a);<br />
<br />
gs.selectAll().data(dat).enter()<br />
.append('text').text(b=>b)<br />
.attrs((b,i)=>{let p=getPos(i); p.y+=h-13; return p;});<br />
<br />
let iw = w*1.16,<br />
iH = H+h+32;<br />
indg = gs.append('g').attr('transform',`translate(${(w-iw)*rank/2},0)`)<br />
.selectAll().data((_,j)=>shape.map(_=>j)).enter();<br />
let inds = indg.append('text').text('1')<br />
.attrs((j,i)=>({x:(i+1/2)*iw, y:iH, 'font-size':42, 'font-weight':'bold',<br />
fill:'#444'/*getColors(j?i:rank-1-i).s.darker(0.2)*/}));<br />
indg.selectAll().data((j,i)=>{<br />
i%=rank;<br />
let c = getColor(i);<br />
c.l = 1 - (1-c.l)*0.8; c.s*=0.86;<br />
let y = iH+8+4*i,<br />
dy= -44-8*i,<br />
sw= [5,3],<br />
ir= rank-i;<br />
return [<br />
[0 , 0 , ir],<br />
[ir, 0 , dy],<br />
[ir, dy, i ]<br />
].map((r,i) => {<br />
let h = i!==1,<br />
p = ['M',' ',h?'h':'v'],<br />
mulh = m => { r[0]*=m; if (h) r[2]*=m; };<br />
if (j) r[0]-=rank; r[1]+=y;<br />
mulh(iw);<br />
r[2-i] += (i-1)*(sw[0]-sw[1]);<br />
if (i===2) r[2]+=18;<br />
if (j) mulh(-1);<br />
return {<br />
d:d3.merge(d3.zip(p,r)).join(''),<br />
stroke:c, 'stroke-width':sw[+(i===1)]<br />
};<br />
});<br />
}).enter()<br />
.append('path')<br />
.attrs({ fill:'none', 'stroke-linecap':'round', 'stroke-linejoin':'round' })<br />
.attrs(a=>a)<br />
.filter((_,i)=>i==2).lower();<br />
<br />
gs.on('mousemove', function () {<br />
let m = d3.mouse(this);<br />
let x = div(m[0]+w/2,w),<br />
y = div(m[1] ,h),<br />
s0= 1+shape[0],<br />
b = y%s0,<br />
c = div(y,s0);<br />
if (x<0||x>=shape[rank-1] || b>=shape[0] || c<0||c>=shape[1]) return;<br />
inds.data([c,b,x]).text(i=>i+1);<br />
x*=w; c*=s0;<br />
let s = b+c,<br />
yt= [s,s,c],<br />
yl= [s,b,0];<br />
trail.attr('transform', i=>`translate(${(i?0:x)},${h*yt[i]})`);<br />
lead .attr('transform', i=>`translate(${ x },${h*yl[i]})`);<br />
});</div>
Miraheze>Marshall