Difference between revisions of "UO:Atlas/Trammel"

m
m
Line 15: Line 15:
 
<div class="map-holder" style="float:right;width:66%;"><!--
 
<div class="map-holder" style="float:right;width:66%;"><!--
 
--><div style="display:inline-block;transform:scale({{#var:scale}}) translate(-{{#var:topLeftX}}px, -{{#var:topLeftY}}px);"><!--
 
--><div style="display:inline-block;transform:scale({{#var:scale}}) translate(-{{#var:topLeftX}}px, -{{#var:topLeftY}}px);"><!--
--><div class="map" style="-webkit-clip-path: inset({{#var:topLeftY}}px {{#expr: {{#expr: {{#var:mapWidth}} - {{#var:topLeftX}} }} - {{#var:width}} }}px {{#expr: {{#expr: {{#var:mapHeight}} - {{#var:topLeftY}} }} - {{#var:height}} }}px {{#var:topLeftX}}px);clip-path: inset({{#var:topLeftX}}px {{#var:topLeftY}}px {{#var:width}}px {{#var:height}}px);">[[File:MAP{{#var: map}}-1.png|link=]]</div><!--
+
--><div class="map" data-x1="{{#var:topLeftX}}" data-y1="{{#var:topLeftY}}" data-x2="{{#var:bottomRightY}}" data-y2="{{#var:bottomRightY}}" style="-webkit-clip-path: inset({{#var:topLeftY}}px {{#expr: {{#expr: {{#var:mapWidth}} - {{#var:topLeftX}} }} - {{#var:width}} }}px {{#expr: {{#expr: {{#var:mapHeight}} - {{#var:topLeftY}} }} - {{#var:height}} }}px {{#var:topLeftX}}px);clip-path: inset({{#var:topLeftX}}px {{#var:topLeftY}}px {{#var:width}}px {{#var:height}}px);">[[File:MAP{{#var: map}}-1.png|link=]]</div><!--
  
  

Revision as of 04:07, 11 September 2016

Trammel

MAP1-1v2.png