(tour: Tour, options: StepOptions = {})
| 374 | tour: Tour; |
| 375 | |
| 376 | constructor(tour: Tour, options: StepOptions = {}) { |
| 377 | super(); |
| 378 | |
| 379 | this.tour = tour; |
| 380 | this.classPrefix = this.tour.options |
| 381 | ? normalizePrefix(this.tour.options.classPrefix) |
| 382 | : ''; |
| 383 | // @ts-expect-error TODO: investigate where styles comes from |
| 384 | this.styles = tour.styles; |
| 385 | |
| 386 | /** |
| 387 | * Resolved attachTo options. Due to lazy evaluation, we only resolve the options during `before-show` phase. |
| 388 | * Do not use this directly, use the _getResolvedAttachToOptions method instead. |
| 389 | * @type {StepOptionsAttachTo | null} |
| 390 | * @private |
| 391 | */ |
| 392 | this._resolvedAttachTo = null; |
| 393 | |
| 394 | /** |
| 395 | * Map to store original tabIndex values of elements that are modified during the tour. |
| 396 | * @type {Map<Element, string | null>} |
| 397 | * @private |
| 398 | */ |
| 399 | this._originalTabIndexes = new Map(); |
| 400 | |
| 401 | autoBind(this); |
| 402 | |
| 403 | this._setOptions(options); |
| 404 | |
| 405 | return this; |
| 406 | } |
| 407 | |
| 408 | /** |
| 409 | * Cancel the tour |
nothing calls this directly
no test coverage detected