native-canvas
Version:
A canvas library allows for a HTML canvas to run natively on NodeJs, without a WebBrowser
268 lines • 8.31 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var SdlNavigator = /** @class */ (function () {
function SdlNavigator(window) {
this.window = window;
}
SdlNavigator.prototype.confirmSiteSpecificTrackingException = function (args) {
return false;
};
SdlNavigator.prototype.confirmWebWideTrackingException = function (args) {
return false;
};
SdlNavigator.prototype.getDisplayMedia = function (constraints) {
return undefined;
};
SdlNavigator.prototype.getGamepads = function () {
return [];
};
SdlNavigator.prototype.getUserMedia = function (constraints, successCallback, errorCallback) {
};
SdlNavigator.prototype.getVRDisplays = function () {
return undefined;
};
SdlNavigator.prototype.javaEnabled = function () {
return false;
};
SdlNavigator.prototype.msLaunchUri = function (uri, successCallback, noHandlerCallback) {
};
SdlNavigator.prototype.msSaveBlob = function (blob, defaultName) {
return false;
};
SdlNavigator.prototype.msSaveOrOpenBlob = function (blob, defaultName) {
return false;
};
SdlNavigator.prototype.removeSiteSpecificTrackingException = function (args) {
};
SdlNavigator.prototype.removeWebWideTrackingException = function (args) {
};
SdlNavigator.prototype.requestMediaKeySystemAccess = function (keySystem, supportedConfigurations) {
return undefined;
};
SdlNavigator.prototype.sendBeacon = function (url, data) {
return false;
};
SdlNavigator.prototype.storeSiteSpecificTrackingException = function (args) {
};
SdlNavigator.prototype.storeWebWideTrackingException = function (args) {
};
SdlNavigator.prototype.vibrate = function (pattern) {
return false;
};
Object.defineProperty(SdlNavigator.prototype, "gamepadInputEmulation", {
get: function () {
return this._gamepadInputEmulation;
},
set: function (value) {
this._gamepadInputEmulation = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "activeVRDisplays", {
get: function () {
return this._activeVRDisplays;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "appCodeName", {
get: function () {
return this._appCodeName;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "appName", {
get: function () {
return this._appName;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "appVersion", {
get: function () {
return this._appVersion;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "authentication", {
get: function () {
return this._authentication;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "cookieEnabled", {
get: function () {
return false;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "doNotTrack", {
get: function () {
return this._doNotTrack;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "geolocation", {
get: function () {
return this._geolocation;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "hardwareConcurrency", {
get: function () {
return this._hardwareConcurrency;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "language", {
get: function () {
return this._language;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "languages", {
get: function () {
return this._languages;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "maxTouchPoints", {
get: function () {
return this._maxTouchPoints;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "mediaDevices", {
get: function () {
return this._mediaDevices;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "mimeTypes", {
get: function () {
return this._mimeTypes;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "msManipulationViewsEnabled", {
get: function () {
return this._msManipulationViewsEnabled;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "msMaxTouchPoints", {
get: function () {
return this._msMaxTouchPoints;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "msPointerEnabled", {
get: function () {
return this._msPointerEnabled;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "onLine", {
get: function () {
return true;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "platform", {
get: function () {
return 'MacIntel';
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "plugins", {
get: function () {
return this._plugins;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "pointerEnabled", {
get: function () {
return this._pointerEnabled;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "product", {
get: function () {
return this._product;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "productSub", {
get: function () {
return this._productSub;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "serviceWorker", {
get: function () {
return this._serviceWorker;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "storage", {
get: function () {
return this._storage;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "userAgent", {
get: function () {
return 'User-agent header: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36';
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "vendor", {
get: function () {
return this._vendor;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "vendorSub", {
get: function () {
return this._vendorSub;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SdlNavigator.prototype, "webdriver", {
get: function () {
return this._webdriver;
},
enumerable: true,
configurable: true
});
return SdlNavigator;
}());
exports.SdlNavigator = SdlNavigator;
//# sourceMappingURL=sdl-navigator.js.map