mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
22 lines
467 B
JavaScript
22 lines
467 B
JavaScript
var util = require('util')
|
|
|
|
function FrameConfig(real, virtual) {
|
|
this.realWidth = real.width
|
|
this.realHeight = real.height
|
|
this.virtualWidth = virtual.width
|
|
this.virtualHeight = virtual.height
|
|
this.rotation = virtual.rotation
|
|
}
|
|
|
|
FrameConfig.prototype.toString = function() {
|
|
return util.format(
|
|
'%dx%d@%dx%d/%d'
|
|
, this.realWidth
|
|
, this.realHeight
|
|
, this.virtualWidth
|
|
, this.virtualHeight
|
|
, this.rotation
|
|
)
|
|
}
|
|
|
|
module.exports = FrameConfig
|