Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.31 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.31 KB

Sketch-Measure-Compare

A tool for easy comparison of UI and web pages

Guide

Step1: Installation

Method 1: Using CDN in HTML (Recommend)

const script = document.createElement('script');
script.onload = () => {
    // sketchMeasureCompare.init();
    // or init with options
    sketchMeasureCompare.init({
      zIndex: 10000,
      width: 0,
      enableDomRulers: false,
      enableTextReplace: false,
      offsetY: 0
    });
};
script.src = "https://unpkg.com/sketch-measure-compare@latest/index.min.js";
document.head.appendChild(script);

Available CDN:

Backup:

Method 2: Using Chrome Extension

Download and unzip: https://github.com/Neco86/Sketch-Measure-Compare/archive/refs/heads/extension.zip

Load the unpacked extension

Step2: Click the UI button to switch page

Step3: Choose files

Click upload button to upload local sketch measure folder;

Step4: Compare UI and your website page

demo