Scrollbar.(constructor)
构造 Scrollbar
类的新实例
Signature:
constructor(workspace: WorkspaceSvg, horizontal: boolean, opt_pair?: boolean, opt_class?: string, opt_margin?: number);
参数
参数 | 类型 | 说明 |
---|---|---|
工作区 | WorkspaceSvg | 将滚动条绑定到的工作区。 |
横向 | boolean | 如果是水平方向,则为 true;如果是垂直方向,则为 false。 |
opt_pair | boolean | (可选)如果滚动条是水平/垂直方向对的一部分,则为 true。 |
opt_class | string | (可选)要应用于此滚动条的类。 |
opt_margin | number | (可选)要应用于此滚动条的外边距。 |