How to use the bplist-creator.Real function in bplist-creator

To help you get started, we’ve selected a few bplist-creator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LinusU / node-ds-store / lib / entry.js View on Github external
})

      break
    case 'icvp':

      var plistObj = {
        backgroundType: 1,
        backgroundColorRed: new bplist.Real(1),
        backgroundColorGreen: new bplist.Real(1),
        backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
        plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
      }

      if (opts.rawAlias) {
        plistObj.backgroundType = 2
        plistObj.backgroundImageAlias = opts.rawAlias
      }
github LinusU / node-ds-store / lib / entry.js View on Github external
backgroundColorGreen: new bplist.Real(1),
        backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
        plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
      }

      if (opts.rawAlias) {
        plistObj.backgroundType = 2
        plistObj.backgroundImageAlias = opts.rawAlias
      }

      dataType = 'bplist'
      blob = bplist(plistObj)

      break
    case 'vSrn':

      dataType = 'long'
github LinusU / node-ds-store / lib / entry.js View on Github external
ShowSidebar: true,
        ShowStatusBar: false,
        ShowTabView: false,
        ShowToolbar: false,
        SidebarWidth: 0,
        WindowBounds:
          '{{' + opt('x') + ', ' + opt('y') + '},' +
          ' {' + opt('width') + ', ' + opt('height') + '}}'
      })

      break
    case 'icvp':

      var plistObj = {
        backgroundType: 1,
        backgroundColorRed: new bplist.Real(1),
        backgroundColorGreen: new bplist.Real(1),
        backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
github LinusU / node-ds-store / lib / entry.js View on Github external
WindowBounds:
          '{{' + opt('x') + ', ' + opt('y') + '},' +
          ' {' + opt('width') + ', ' + opt('height') + '}}'
      })

      break
    case 'icvp':

      var plistObj = {
        backgroundType: 1,
        backgroundColorRed: new bplist.Real(1),
        backgroundColorGreen: new bplist.Real(1),
        backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
        plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
      }

      if (opts.rawAlias) {
github LinusU / node-ds-store / lib / entry.js View on Github external
ShowStatusBar: false,
        ShowTabView: false,
        ShowToolbar: false,
        SidebarWidth: 0,
        WindowBounds:
          '{{' + opt('x') + ', ' + opt('y') + '},' +
          ' {' + opt('width') + ', ' + opt('height') + '}}'
      })

      break
    case 'icvp':

      var plistObj = {
        backgroundType: 1,
        backgroundColorRed: new bplist.Real(1),
        backgroundColorGreen: new bplist.Real(1),
        backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
github LinusU / node-ds-store / lib / entry.js View on Github external
ShowTabView: false,
        ShowToolbar: false,
        SidebarWidth: 0,
        WindowBounds:
          '{{' + opt('x') + ', ' + opt('y') + '},' +
          ' {' + opt('width') + ', ' + opt('height') + '}}'
      })

      break
    case 'icvp':

      var plistObj = {
        backgroundType: 1,
        backgroundColorRed: new bplist.Real(1),
        backgroundColorGreen: new bplist.Real(1),
        backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
        plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
github LinusU / node-ds-store / lib / entry.js View on Github external
backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
        plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
      }

      if (opts.rawAlias) {
        plistObj.backgroundType = 2
        plistObj.backgroundImageAlias = opts.rawAlias
      }

      dataType = 'bplist'
      blob = bplist(plistObj)

      break
    case 'vSrn':

      dataType = 'long'
      blob = new Buffer(4)
github LinusU / node-ds-store / lib / entry.js View on Github external
showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
        plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
      }

      if (opts.rawAlias) {
        plistObj.backgroundType = 2
        plistObj.backgroundImageAlias = opts.rawAlias
      }

      dataType = 'bplist'
      blob = bplist(plistObj)

      break
    case 'vSrn':

      dataType = 'long'
      blob = new Buffer(4)
github LinusU / node-ds-store / lib / entry.js View on Github external
break
    case 'icvp':

      var plistObj = {
        backgroundType: 1,
        backgroundColorRed: new bplist.Real(1),
        backgroundColorGreen: new bplist.Real(1),
        backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
        plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
      }

      if (opts.rawAlias) {
        plistObj.backgroundType = 2
        plistObj.backgroundImageAlias = opts.rawAlias
      }

      dataType = 'bplist'
github LinusU / node-ds-store / lib / entry.js View on Github external
'{{' + opt('x') + ', ' + opt('y') + '},' +
          ' {' + opt('width') + ', ' + opt('height') + '}}'
      })

      break
    case 'icvp':

      var plistObj = {
        backgroundType: 1,
        backgroundColorRed: new bplist.Real(1),
        backgroundColorGreen: new bplist.Real(1),
        backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
        plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
      }

      if (opts.rawAlias) {
        plistObj.backgroundType = 2

bplist-creator

Binary Mac OS X Plist (property list) creator.

MIT
Latest version published 2 years ago

Package Health Score

67 / 100
Full package analysis

Popular bplist-creator functions