angular-docs-cn/modules/@angular/platform-browser/test/browser/rectangle_mock.ts

4 lines
99 B
TypeScript

export function createRectangle(left, top, width, height) {
return {left, top, width, height};
}