@@ -117,7 +117,6 @@ type Journey = {
117117 */
118118 journey_name : string
119119 /**
120- * What is this?
121120 * The segments of a journey
122121 */
123122 segments : Segment [ ]
@@ -382,7 +381,7 @@ type TransitiveStyleComputeFn = (
382381) => number | string
383382
384383/**
385- * A map describing a styling override applied to a particular styleing value
384+ * A map describing a styling override applied to a particular styling value
386385 * noted with the key value. The value for this style can be either a number,
387386 * string or result of a custom function.
388387 *
@@ -604,7 +603,7 @@ export default class Transitive {
604603 display ! : CanvasDisplay | SvgDisplay
605604 el ?: HTMLElement
606605 // FIXME: somehow typing the emit method (which is injected at the end of this
607- // file by component-emitter causes the emit method to not work.
606+ // file by component-emitter) causes the emit method to not work.
608607 // emit!: (message: string, transitiveInstance: this, el?: HTMLElement) => void
609608 labeler ! : Labeler
610609 options ?: TransitiveOptions
@@ -645,7 +644,6 @@ export default class Transitive {
645644 /**
646645 * Clear the Network data and redraw the (empty) map
647646 */
648-
649647 clearData ( ) {
650648 this . network = this . data = null
651649 this . labeler . clear ( )
@@ -656,7 +654,6 @@ export default class Transitive {
656654 /**
657655 * Update the Network data and redraw the map
658656 */
659-
660657 updateData ( data : TransitiveData , resetDisplay ?: boolean ) {
661658 this . network = null
662659 this . data = data
@@ -672,7 +669,6 @@ export default class Transitive {
672669 *
673670 * @param {String } an OTP mode string
674671 */
675-
676672 getModeStyles ( mode : string ) {
677673 return this . styler . getModeStyles ( mode , this . display || new Display ( this ) )
678674 }
@@ -682,7 +678,6 @@ export default class Transitive {
682678 /**
683679 * Set the DOM element that serves as the main map canvas
684680 */
685-
686681 setElement ( el ?: HTMLElement ) {
687682 if ( this . el ) d3 . select ( this . el ) . selectAll ( '*' ) . remove ( )
688683
@@ -696,7 +691,6 @@ export default class Transitive {
696691 /**
697692 * Set the DOM element that serves as the main map canvas
698693 */
699-
700694 setRenderer ( type : RendererType ) {
701695 switch ( type ) {
702696 case 'wireframe' :
@@ -711,7 +705,6 @@ export default class Transitive {
711705 /**
712706 * Render
713707 */
714-
715708 render ( ) {
716709 if ( ! this . network ) {
717710 this . network = new Network ( this , this . data )
@@ -732,7 +725,6 @@ export default class Transitive {
732725 *
733726 * @param {Element } el
734727 */
735-
736728 renderTo ( el : HTMLElement ) {
737729 this . setElement ( el )
738730 this . render ( )
@@ -745,7 +737,6 @@ export default class Transitive {
745737 /**
746738 * focusJourney
747739 */
748-
749740 focusJourney ( journeyId : string ) {
750741 if ( ! this . network ) {
751742 console . warn ( 'Transitive network is not defined! Cannot focus journey!' )
@@ -760,7 +751,6 @@ export default class Transitive {
760751 * Sets the Display bounds
761752 * @param {Array } lon/lat bounds expressed as [[west, south], [east, north]]
762753 */
763-
764754 setDisplayBounds ( llBounds : Bounds ) {
765755 if ( ! this . display ) return
766756 const smWestSouth = sm . forward ( llBounds [ 0 ] )
@@ -780,7 +770,6 @@ export default class Transitive {
780770 * Gets the Network bounds
781771 * @returns {Array } lon/lat bounds expressed as [[west, south], [east, north]]
782772 */
783-
784773 getNetworkBounds ( ) {
785774 if ( ! this . network || ! this . network . graph ) return null
786775 const graphBounds = this . network . graph . bounds ( )
@@ -795,7 +784,6 @@ export default class Transitive {
795784 /**
796785 * resize
797786 */
798-
799787 resize ( width : number , height : number ) {
800788 if ( ! this . display ) return
801789 // @ts -expect-error I have no idea what magic this display object uses to
@@ -811,7 +799,6 @@ export default class Transitive {
811799 /**
812800 * trigger a display resize action (for externally-managed SVG containers)
813801 */
814-
815802 resized ( width : number , height : number ) {
816803 // @ts -expect-error I have no idea what magic this display object uses to
817804 // get a resized method. - Evan :(
0 commit comments