Files
NapCatQQ/.pnpm-store/v3/files/f5/04e610c8ab53f4c9a97fcc5da159256d7c14a437222fc4aea4e8db08caee216a68d530045b1ea2182d4837a70239559b30fdd77b99a6079b6d24ca78022f60
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

53 lines
2.1 KiB
Plaintext

function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "LayoutInfo", () => $8a899922c0a55745$export$7e0eeb9da702a085);
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/ class $8a899922c0a55745$export$7e0eeb9da702a085 {
/**
* Returns a copy of the LayoutInfo.
*/ copy() {
let res = new $8a899922c0a55745$export$7e0eeb9da702a085(this.type, this.key, this.rect.copy());
res.estimatedSize = this.estimatedSize;
res.opacity = this.opacity;
res.transform = this.transform;
res.parentKey = this.parentKey;
res.content = this.content;
res.isSticky = this.isSticky;
res.zIndex = this.zIndex;
res.allowOverflow = this.allowOverflow;
return res;
}
/**
* @param type The type of element represented by this LayoutInfo. Should match the `type` of the corresponding collection node.
* @param key A unique key for this LayoutInfo. Should match the `key` of the corresponding collection node.
* @param rect The rectangle describing the size and position of this element.
*/ constructor(type, key, rect){
this.type = type;
this.key = key;
this.parentKey = null;
this.content = null;
this.rect = rect;
this.estimatedSize = false;
this.isSticky = false;
this.opacity = 1;
this.transform = null;
this.zIndex = 0;
this.allowOverflow = false;
}
}
//# sourceMappingURL=LayoutInfo.main.js.map