forked from olcxjas-softworks/LarpixClient
update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
30
electron/node_modules/resedit/dist/_esm/data/RawIconItem.js
generated
vendored
Normal file
30
electron/node_modules/resedit/dist/_esm/data/RawIconItem.js
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { allocatePartialBinary } from '../util/functions.js';
|
||||
/**
|
||||
* Represents the raw-graphic icon item, such as PNG data.
|
||||
*/
|
||||
var RawIconItem = /** @class */ (function () {
|
||||
function RawIconItem(bin, width, height, bitCount, byteOffset, byteLength) {
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.bitCount = bitCount;
|
||||
if (typeof byteOffset !== 'number') {
|
||||
byteOffset = 0;
|
||||
byteLength = bin.byteLength;
|
||||
}
|
||||
else if (typeof byteLength !== 'number') {
|
||||
byteLength = bin.byteLength - byteOffset;
|
||||
}
|
||||
this.bin = allocatePartialBinary(bin, byteOffset, byteLength);
|
||||
}
|
||||
RawIconItem.from = function (bin, width, height, bitCount, byteOffset, byteLength) {
|
||||
return new RawIconItem(bin, width, height, bitCount, byteOffset, byteLength);
|
||||
};
|
||||
RawIconItem.prototype.isIcon = function () {
|
||||
return false;
|
||||
};
|
||||
RawIconItem.prototype.isRaw = function () {
|
||||
return true;
|
||||
};
|
||||
return RawIconItem;
|
||||
}());
|
||||
export default RawIconItem;
|
||||
Loading…
Add table
Add a link
Reference in a new issue