舰R百科是靠无数自愿编辑者持续地建设更新完善的。编辑非常简单,请勇于更新页面!
编辑入门 | 资助百科 | 留言讨论页 | 微博@舰R百科 | 百科编辑讨论Q群:366818861

微件:Map:修订间差异

来自舰R百科
跳转到导航 跳转到搜索
无编辑摘要
无编辑摘要
第1行: 第1行:
<noinclude>
<noinclude>
{{#widget:map|map=701|size=396}}
{{#widget:map|map=701|size=396}}
</noinclude><includeonly><canvas id="map-<!--{$map|escape:'quotes'}-->" width='1024' height='576' style='background-image:url(/wg_img/ccbResources/map/<!--{$map|escape:'url'}-->.jpg); background-position:center'></canvas><script src='https://cruiseliu.github.io/zjsnrwiki/data/pveData.js'></script><script>(function() {
</noinclude><includeonly><canvas id="map-<!--{$map|escape:'quotes'}-->" width='1024' height='576' style="width:<!--{$size|escape:'quotes'}-->px;background-image:url(/wg_img/ccbResources/map/<!--{$map|escape:'quotes'}-->.jpg); background-position:center; background-size=<!--{$size|escape:'quotes'}-->px auto;"></canvas><script src='https://cruiseliu.github.io/zjsnrwiki/data/pveData.js'></script><script>(function() {
var mapId = "<!--{$map|escape:'quotes'}-->";
var mapId = "<!--{$map|escape:'quotes'}-->";


第9行: 第9行:
mapCanvas.style.height = h + 'px';
mapCanvas.style.height = h + 'px';
mapCanvas.style.width = w + 'px';
mapCanvas.style.width = w + 'px';
mapCanvas.style.backgroundSize = w + 'px auto';


var nodes = [ ];
var nodes = [ ];
第107行: 第106行:


     var map = mapCanvas.getContext('2d');
     var map = mapCanvas.getContext('2d');
     map.font = 'bold 36px monospace';
     map.font = 'bold 2em "Noto Sans", sans-serif';
     map.textAlign = 'center';
     map.textAlign = 'center';
     map.fillStyle = 'white';
     map.fillStyle = 'white';
     map.strokeStype = 'black';
     map.strokeStype = 'black';
     map.lineWidth = 3;
     map.lineWidth = 5;
     var labels = '0ABCDEFGHIJKLMNOPQRSTUVWXYZ';
     var labels = '0ABCDEFGHIJKLMNOPQRSTUVWXYZ';
     for (var i = 1; i < nodes.length; ++i) {
     for (var i = 1; i < nodes.length; ++i) {

2016年10月7日 (五) 07:22的版本