This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/linkedom/cjs/interface/image.js
T

24 lines
502 B
JavaScript

'use strict';
const {HTMLImageElement} = require('../html/image-element.js');
const ImageClass = ownerDocument =>
/**
* @implements globalThis.Image
*/
class Image extends HTMLImageElement {
constructor(width, height) {
super(ownerDocument);
switch (arguments.length) {
case 1:
this.height = width;
this.width = width;
break;
case 2:
this.height = height;
this.width = width;
break;
}
}
};
exports.ImageClass = ImageClass;