* 更新简单选项值(直接赋值) * @param property 选项属性 * @param newValue 新值
(
option: PlainOptions,
newValue?: ValueOf<Pick<Options, PlainOptions>>
)
| 333 | * @param newValue 新值 |
| 334 | */ |
| 335 | protected updatePlainOptions( |
| 336 | option: PlainOptions, |
| 337 | newValue?: ValueOf<Pick<Options, PlainOptions>> |
| 338 | ): void { |
| 339 | this.options[option] = newValue as never |
| 340 | if (option === 'mask') { |
| 341 | this.loadMaskImage() |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | /** |
| 346 | * 动态设置 options 选项值 |