!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/node_modules/jsvectormap/src/js/core/   drwxrwxr-x
Free 13.04 GB of 57.97 GB (22.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     createLines.js (1.89 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import { merge } from '../util/index'
import Line from '../elements/line'

function createLineUid(from, to) {
  return `${from.toLowerCase()}:to:${to.toLowerCase()}`
}

export default function createLines(lines, markers, isRecentlyCreated = false) {
  let line, point1 = false, point2 = false

  // Create group for holding lines
  // we're checking if `linesGroup` exists or not becuase we may add lines after the map has loaded
  // so we will append the futured lines to this group as well.
  this.linesGroup = this.linesGroup || this.canvas.createGroup('jvm-lines-group')

  for (let index in lines) {
    const lineConfig = lines[index]

    for (let mindex in markers) {
      const markerConfig = isRecentlyCreated ? markers[mindex].config : markers[mindex]

      if (markerConfig.name === lineConfig.from) {
        point1 = this.getMarkerPosition(markerConfig)
      }

      if (markerConfig.name === lineConfig.to) {
        point2 = this.getMarkerPosition(markerConfig)
      }
    }

    if (point1 !== false && point2 !== false) {
      line = new Line({
        index: index,
        map: this,
        // Merge the lineStyle object with the line config style
        style: merge({ initial: this.params.lineStyle }, {
          initial: lineConfig.style || {}
        }, true),
        x1: point1.x,
        y1: point1.y,
        x2: point2.x,
        y2: point2.y,
        group: this.linesGroup,
      })

      // Prevent line duplication elements in the DOM
      if (isRecentlyCreated) {
        Object.keys(this.lines).forEach(key => {
          if (key === createLineUid(lines[0].from, lines[0].to)) {
            this.lines[key].element.remove()
          }
        })
      }

      // Register lines with unique keys
      this.lines[createLineUid(lineConfig.from, lineConfig.to)] = {
        element: line, config: lineConfig
      }
    }
  }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0042 ]--