المشاريع
عرض على GitHub Electron-positioner
jenslind/electron-positioner
حول
:pushpin: تساعد على تحديد مواضع نوافذ Electron.
مشاريع أخرىالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلElectron-positioner

Helps positioning your electron windows.
Install
npm install --save electron-positioner
Usage
var Positioner = require('electron-positioner')
var positioner = new Positioner(browserWindow)
// Moves the window top right on the screen.
positioner.move('topRight')
// Returns `{x,y}`
positioner.calculate('trayCenter', trayBounds)
Note, trayBounds is only required with the positions that starts with tray.
Docs
new Positioner (browserWindow)
Constructor
BrowserWindow
The BrowserWindow instance.
calculate (position, trayBounds)
Returns coordinates {x,y}.
move (position, trayBounds)
Moves the window with BrowserWindow.setPosition()
position
A string telling where to place the window. Allowed values:
trayLefttrayBottomLefttrayRighttrayBottomRighttrayCentertrayBottomCentertopLefttopRightbottomLeftbottomRighttopCenterbottomCenterleftCenterrightCentercenter
trayBounds
Tray bounds, only needed for the following positions:
trayLefttrayBottomLefttrayRighttrayBottomRighttrayCentertrayBottomCenter
Tests
npm test
License
MIT
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…