@advanced-rest-client/arc-resizable-mixin

中文文档
1.2.3发布于 2021/10/17Apache-2.0ESM + CJS近 30 天下载 4782

arc-resizable-mixin is a port of iron-fit-behavior that works with web components

原始使用文档
文档目录5 节
  1. Installation
  2. Usage
  3. Development
  4. Running the demo locally
  5. Running the tests

DEPRECATED

Use the @anypoint-web-components/awc module instead.


Published on NPM

Tests and publishing

This mixin is a port of iron-resizable-behavior that works with any JavaScript class.

ArcResizableMixin is a mixin that can be used in web components to coordinate the flow of resize events between "resizers" (elements that control the size or hidden state of their children) and "resizables" (elements that need to be notified when they are resized or un-hidden by their parents in order to take action on their new measurements).

Elements that perform measurement should add the ArcResizableMixin mixin to their element definition and listen for the resize event on themselves. This event will be fired when they become showing after having been hidden, when they are resized explicitly by another resizable, or when the window has been resized.

Note, the resize event is non-bubbling.

Installation

npm i @advanced-rest-client/arc-resizable-mixin

Usage

import { LitElement } from 'lit-element';
import { ArcResizableMixin } from '@advanced-rest-client/arc-resizable-mixin';

class ArcResizableImpl extends ArcResizableMixin(LitElement) {

}

Development

git clone https://github.com/advanced-rest-client/arc-resizable-mixin
cd arc-resizable-mixin
npm install

Running the demo locally

npm start

Running the tests

npm test

版本与发布记录

@advanced-rest-client/arc-resizable-mixin 共发布 8 个版本,首次发布于 2019/06/08;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.2.3latest2021/10/175 年前
1.2.22021/06/115 年前
1.2.12021/03/135 年前
1.2.02020/11/265 年前
1.1.22020/10/036 年前
1.1.12020/10/016 年前

关于 @advanced-rest-client/arc-resizable-mixin 的常见问题

@advanced-rest-client/arc-resizable-mixin 是什么?

arc-resizable-mixin is a port of iron-fit-behavior that works with web components

如何安装 @advanced-rest-client/arc-resizable-mixin?

在项目目录运行 npm install @advanced-rest-client/arc-resizable-mixin,或使用 pnpm add / yarn add / bun add。

@advanced-rest-client/arc-resizable-mixin 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/advanced-rest-client__arc-resizable-mixin 是否存在。

@advanced-rest-client/arc-resizable-mixin 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@advanced-rest-client/arc-resizable-mixin 可以商用吗?

@advanced-rest-client/arc-resizable-mixin 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@advanced-rest-client/arc-resizable-mixin 的下载量有多少?

根据 npm 官方下载统计,@advanced-rest-client/arc-resizable-mixin 在 2026/10/05 – 2026/11/03 这 30 天内被下载 4,782 次,日均约 159 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@advanced-rest-client/arc-resizable-mixin 还在维护吗?

最新版本 1.2.3 发布于 2021/10/17(5 年前);至今共发布 8 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/06/08。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。