resemblejs
Advanced tools
Sorry, the diff of this file is too big to display
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title></title> | ||
| </head> | ||
| <body> | ||
| <p>Check the console for test results</p> | ||
| <script src="../resemble.js"></script> | ||
| <script src="//cdnjs.cloudflare.com/ajax/libs/chai/3.4.1/chai.js"></script> | ||
| <script src="main_spec.js"></script> | ||
| </body> | ||
| </html> |
+167
-17
@@ -7,3 +7,2 @@ <?xml version="1.0" encoding="UTF-8"?> | ||
| <change type="MODIFICATION" beforePath="$PROJECT_DIR$/package.json" afterPath="$PROJECT_DIR$/package.json" /> | ||
| <change type="MODIFICATION" beforePath="$PROJECT_DIR$/resemble.js" afterPath="$PROJECT_DIR$/resemble.js" /> | ||
| </list> | ||
@@ -29,7 +28,7 @@ <ignored path="Resemble.js.iws" /> | ||
| <leaf> | ||
| <file leaf-file-name="package.json" pinned="false" current-in-tab="true"> | ||
| <file leaf-file-name="package.json" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.23421355"> | ||
| <caret line="12" column="12" selection-start-line="12" selection-start-column="12" selection-end-line="12" selection-end-column="12" /> | ||
| <state vertical-scroll-proportion="-1.3076923"> | ||
| <caret line="2" column="19" selection-start-line="2" selection-start-column="19" selection-end-line="2" selection-end-column="19" /> | ||
| <folding /> | ||
@@ -40,2 +39,42 @@ </state> | ||
| </file> | ||
| <file leaf-file-name="index.html" pinned="false" current-in-tab="true"> | ||
| <entry file="file://$PROJECT_DIR$/index.html"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.3903559"> | ||
| <caret line="20" column="33" selection-start-line="20" selection-start-column="33" selection-end-line="20" selection-end-column="33" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name="resemble.css" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/demoassets/resemble.css"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="27" column="8" selection-start-line="13" selection-start-column="27" selection-end-line="13" selection-end-column="33" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name="test.html" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/tests/test.html"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="-5.230769"> | ||
| <caret line="8" column="13" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name="main_spec.js" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/tests/main_spec.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="127.07407"> | ||
| <caret line="43" column="7" selection-start-line="43" selection-start-column="7" selection-end-line="43" selection-end-column="7" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| <file leaf-file-name="bower.json" pinned="false" current-in-tab="false"> | ||
@@ -54,4 +93,4 @@ <entry file="file://$PROJECT_DIR$/bower.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="-17.0"> | ||
| <caret line="468" column="41" selection-start-line="468" selection-start-column="41" selection-end-line="468" selection-end-column="41" /> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="482" column="25" selection-start-line="482" selection-start-column="25" selection-end-line="482" selection-end-column="25" /> | ||
| <folding> | ||
@@ -74,4 +113,7 @@ <element signature="n#!!doc" expanded="true" /> | ||
| <option value="$PROJECT_DIR$/resemble.js" /> | ||
| <option value="$PROJECT_DIR$/demoassets/resemble.css" /> | ||
| <option value="$PROJECT_DIR$/tests/test.html" /> | ||
| <option value="$PROJECT_DIR$/tests/main_spec.js" /> | ||
| <option value="$PROJECT_DIR$/package.json" /> | ||
| <option value="$PROJECT_DIR$/bower.json" /> | ||
| <option value="$PROJECT_DIR$/package.json" /> | ||
| </list> | ||
@@ -117,3 +159,2 @@ </option> | ||
| <pane id="Scratches" /> | ||
| <pane id="Scope" /> | ||
| <pane id="ProjectPane"> | ||
@@ -139,2 +180,3 @@ <subPane> | ||
| </pane> | ||
| <pane id="Scope" /> | ||
| </panes> | ||
@@ -147,2 +189,36 @@ </component> | ||
| </component> | ||
| <component name="RunManager"> | ||
| <configuration default="true" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application"> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="DartUnitRunConfigurationType" factoryName="DartUnit"> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma" config-file=""> | ||
| <envs /> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug"> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="JsTestDriver-test-runner" factoryName="JsTestDriver"> | ||
| <setting name="configLocationType" value="CONFIG_FILE" /> | ||
| <setting name="settingsFile" value="" /> | ||
| <setting name="serverType" value="INTERNAL" /> | ||
| <setting name="preferredDebugBrowser" value="Chrome" /> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" working-dir=""> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="cucumber.js" factoryName="Cucumber.js"> | ||
| <option name="cucumberJsArguments" value="" /> | ||
| <option name="executablePath" /> | ||
| <option name="filePath" /> | ||
| <method /> | ||
| </configuration> | ||
| <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js"> | ||
| <method /> | ||
| </configuration> | ||
| </component> | ||
| <component name="ShelveChangesManager" show_recycled="false" /> | ||
@@ -163,5 +239,5 @@ <component name="SvnConfiguration"> | ||
| <frame x="1912" y="-8" width="1936" height="1056" extended-state="6" /> | ||
| <editor active="true" /> | ||
| <editor active="false" /> | ||
| <layout> | ||
| <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.16859852" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> | ||
| <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.16859852" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> | ||
| <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> | ||
@@ -171,5 +247,7 @@ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" /> | ||
| <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" /> | ||
| <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> | ||
@@ -179,7 +257,5 @@ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> | ||
| <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
| <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | ||
| </layout> | ||
@@ -206,2 +282,44 @@ </component> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="12" column="12" selection-start-line="12" selection-start-column="12" selection-end-line="12" selection-end-column="12" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/index.html"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="20" column="33" selection-start-line="20" selection-start-column="33" selection-end-line="20" selection-end-column="33" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/demoassets/resemble.css"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/bower.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="3" column="19" selection-start-line="3" selection-start-column="19" selection-end-line="3" selection-end-column="19" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/resemble.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="468" column="41" selection-start-line="468" selection-start-column="41" selection-end-line="468" selection-end-column="41" /> | ||
| <folding> | ||
| <element signature="n#!!doc" expanded="true" /> | ||
| </folding> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="2" column="19" selection-start-line="2" selection-start-column="19" selection-end-line="2" selection-end-column="19" /> | ||
@@ -229,4 +347,4 @@ <folding /> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="-17.0"> | ||
| <caret line="468" column="41" selection-start-line="468" selection-start-column="41" selection-end-line="468" selection-end-column="41" /> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="482" column="25" selection-start-line="482" selection-start-column="25" selection-end-line="482" selection-end-column="25" /> | ||
| <folding> | ||
@@ -238,2 +356,34 @@ <element signature="n#!!doc" expanded="true" /> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/test.html"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="-5.230769"> | ||
| <caret line="8" column="13" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/demoassets/resemble.css"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="27" column="8" selection-start-line="13" selection-start-column="27" selection-end-line="13" selection-end-column="33" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/tests/main_spec.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="127.07407"> | ||
| <caret line="43" column="7" selection-start-line="43" selection-start-column="7" selection-end-line="43" selection-end-column="7" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="-1.3076923"> | ||
| <caret line="2" column="19" selection-start-line="2" selection-start-column="19" selection-end-line="2" selection-end-column="19" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/bower.json"> | ||
@@ -247,6 +397,6 @@ <provider selected="true" editor-type-id="text-editor"> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <entry file="file://$PROJECT_DIR$/index.html"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.23421355"> | ||
| <caret line="12" column="12" selection-start-line="12" selection-start-column="12" selection-end-line="12" selection-end-column="12" /> | ||
| <state vertical-scroll-proportion="0.3903559"> | ||
| <caret line="20" column="33" selection-start-line="20" selection-start-column="33" selection-end-line="20" selection-end-column="33" /> | ||
| <folding /> | ||
@@ -253,0 +403,0 @@ </state> |
+1
-1
| { | ||
| "name": "resemblejs", | ||
| "version": "2.0.1", | ||
| "version": "2.1.0", | ||
| "description": "Image analysis and comparison with HTML5", | ||
@@ -5,0 +5,0 @@ "main": "resemble.js", |
+15
-1
@@ -151,3 +151,10 @@ /* | ||
| hiddenImage.onerror = function () { | ||
| hiddenImage.onerror = null; //fixes pollution between calls | ||
| images.push({ error : "Image load error."}); | ||
| callback(); | ||
| }; | ||
| hiddenImage.onload = function() { | ||
| hiddenImage.onload = null; //fixes pollution between calls | ||
@@ -469,3 +476,4 @@ var hiddenCanvas = document.createElement('canvas'); | ||
| data.misMatchPercentage = (mismatchCount / (height*width) * 100).toFixed(2); | ||
| data.rawMisMatchPercentage = (mismatchCount / (height*width) * 100); | ||
| data.misMatchPercentage = data.rawMisMatchPercentage.toFixed(2); | ||
| data.diffBounds = diffBounds; | ||
@@ -536,2 +544,8 @@ data.analysisTime = Date.now() - time; | ||
| if(images.length === 2){ | ||
| if( images[0].error || images[1].error ){ | ||
| data = {}; | ||
| data.error = images[0].error ? images[0].error : images[1].error; | ||
| triggerDataUpdate(); | ||
| return; | ||
| } | ||
| width = images[0].width > images[1].width ? images[0].width : images[1].width; | ||
@@ -538,0 +552,0 @@ height = images[0].height > images[1].height ? images[0].height : images[1].height; |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
115489
232.87%13
18.18%887
67.04%5
150%