!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/svg.js/spec/spec/   drwxrwxr-x
Free 13.16 GB of 57.97 GB (22.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     marker.js (2.73 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
describe('Marker', function() {
  
  describe('on a container element', function() {
    var marker

    beforeEach(function() {
      marker = draw.marker(10, 12, function(add) {
        add.rect(10, 12)

        this.ref(5, 6)
      })
    })

    it('creates an instance of SVG.Marker', function() {
      expect(marker instanceof SVG.Marker).toBeTruthy()
    })

    it('creates marker in defs', function() {
      expect(marker.parent() instanceof SVG.Defs).toBeTruthy()
    })

    describe('marker()', function() {
      it('returns the marker element', function() {
        expect(marker = draw.marker(10, 12)).toBe(marker)
      })
      it('sets the refX to half of the given width', function() {
        marker = draw.marker(10, 12)
        expect(marker.node.getAttribute('refX')).toBe('5')
      })
      it('sets the refY to half of the given height', function() {
        marker = draw.marker(13, 15)
        expect(marker.node.getAttribute('refY')).toBe('7.5')
      })
    })

  })
  
  describe('on a target path', function() {
    var path, marker

    beforeEach(function() {
      path = draw.path('M 100 200 C 200 100 300  0 400 100 C 500 200 600 300 700 200 C 800 100 900 100 900 100')

      path.marker('mid', 10, 12, function(add) {
        add.rect(10, 12)

        this.ref(5, 6)
      })

      marker = path.marker('mid', 10, 10)
    })

    it('creates an instance of SVG.Marker', function() {
      expect(path.reference('marker-mid') instanceof SVG.Marker).toBeTruthy()
    })

    describe('marker()', function() {
      it('returns the target element', function() {
        expect(path.marker('start', 10, 12)).toBe(path)
      })
      it('creates a marker and applies it to the marker-start attribute', function() {
        path.marker('start', 10, 12)
        marker = path.reference('marker-start')

        expect(path.node.getAttribute('marker-start')).toBe(marker.toString())
      })
      it('creates a marker and applies it to the marker-mid attribute', function() {
        path.marker('mid', 10, 12)
        marker = path.reference('marker-mid')

        expect(path.node.getAttribute('marker-mid')).toBe(marker.toString())
      })
      it('creates a marker and applies it to the marker-end attribute', function() {
        path.marker('end', 10, 12)
        marker = path.reference('marker-end')

        expect(path.node.getAttribute('marker-end')).toBe(marker.toString())
      })
      it('accepts an instance of an existing marker element as the second argument', function() {
        marker = draw.marker(11, 11)
        path.marker('mid', marker)

        expect(path.node.getAttribute('marker-mid')).toBe(marker.toString())
      })
    })
  })


})

:: 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.0453 ]--