MCPcopy Create free account
hub / github.com/pacexy/flow / constructor

Method constructor

packages/epubjs/src/mapping.js:13–18  ·  view source on GitHub ↗
(layout, direction, axis, dev = false)

Source from the content-addressed store, hash-verified

11 */
12class Mapping {
13 constructor(layout, direction, axis, dev = false) {
14 this.layout = layout
15 this.horizontal = axis === 'horizontal' ? true : false
16 this.direction = direction || 'ltr'
17 this._dev = dev
18 }
19
20 /**
21 * Find CFI pairs for entire section at once

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected