Plugin Directory

Changeset 3158849


Ignore:
Timestamp:
09/27/2024 02:57:20 PM (16 months ago)
Author:
mehjabin6310
Message:

modified

Location:
interactive-image-map-builder/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • interactive-image-map-builder/trunk/assets/js/main-output-file.js

    r3147856 r3158849  
    234234    let topPos;
    235235    if (toolTipPosition == 1 || alwaysShow == 1) {
    236       fromTop -= contentHeight;
     236      fromTop = fromTop + areaHeight / 2 - contentHeight;
    237237      topPos = fromTop + "px";
    238238    } else if (toolTipPosition == 2) {
     
    470470    maxY = 0,
    471471    minY = 0,
    472     coords = coords.split(" ");
    473 
    474   for (var j = 0; j < coords.length; j++) {
    475     var tempCords = coords[j].split(",");
     472    coordsArray = coords.split(" ");
     473
     474  for (var j = 0; j < coordsArray.length; j++) {
     475    var tempCords = coordsArray[j].split(",");
     476    var x = parseFloat(tempCords[0]);
     477    var y = parseFloat(tempCords[1]);
     478
    476479    if (j == 0) {
    477       maxX = tempCords[0];
    478       minX = tempCords[0];
    479       maxY = tempCords[1];
    480       minY = tempCords[1];
     480      maxX = x;
     481      minX = x;
     482      maxY = y;
     483      minY = y;
    481484    } else {
    482       if (tempCords[0] > maxX) maxX = tempCords[0];
    483       if (tempCords[0] < minX) minX = tempCords[0];
    484 
    485       if (tempCords[1] > maxY) maxY = tempCords[1];
    486       if (tempCords[1] < minY) minY = tempCords[1];
     485      if (x > maxX) maxX = x;
     486      if (x < minX) minX = x;
     487      if (y > maxY) maxY = y;
     488      if (y < minY) minY = y;
    487489    }
    488490  }
  • interactive-image-map-builder/trunk/index.php

    r3147856 r3158849  
    77  Author: Mehjabin Orthi
    88  Author URI: https://www.wpmart.org/
    9   Version: 2.1
     9  Version: 2.2
    1010 */
    1111if (!defined('ABSPATH'))
     
    1818define('isimb_6310_plugin_url', plugin_dir_path(__FILE__));
    1919define('isimb_6310_plugin_dir_url', plugin_dir_url(__FILE__));
    20 define('isimb_6310_PLUGIN_CURRENT_VERSION', 2.1);
     20define('isimb_6310_PLUGIN_CURRENT_VERSION', 2.2);
    2121
    2222add_shortcode('isimb_6310_builder', 'isimb_6310_builder_shortcode');
  • interactive-image-map-builder/trunk/readme.txt

    r3147859 r3158849  
    44Requires at least: 5.4
    55Tested up to: 6.6
    6 Stable tag: 2.1
     6Stable tag: 2.2
    77Requires PHP: 5.6
    88License: GPLv2 or later
     
    132132
    133133== Changelog ==
     134= 2.2 =
     135* Tooltip Position Fixed
     136
    134137= 2.1 =
    135138* Zoom feature added
Note: See TracChangeset for help on using the changeset viewer.