@pubann/textae 14.1.1 → 14.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58502,7 +58502,7 @@
58502
58502
  )
58503
58503
  } // ./package.json
58504
58504
 
58505
- const package_namespaceObject = { rE: '14.1.1' } // ./src/lib/component/SettingDialog/EscapeSequence.js
58505
+ const package_namespaceObject = { rE: '14.1.2' } // ./src/lib/component/SettingDialog/EscapeSequence.js
58506
58506
  class EscapeSequence {
58507
58507
  static escape(str) {
58508
58508
  return str
@@ -58889,11 +58889,10 @@
58889
58889
  #spanConfig
58890
58890
  #functionAvailability
58891
58891
  #clipBoard
58892
- #editModeSwitch
58893
58892
  #horizontal
58894
58893
  #vertical
58895
58894
  #isActive
58896
- #editMode
58895
+ #currentEditMode
58897
58896
 
58898
58897
  /**
58899
58898
  *
@@ -58909,31 +58908,19 @@
58909
58908
  functionAvailability,
58910
58909
  clipBoard,
58911
58910
  menuState,
58912
- startUpOptions,
58913
- editModeSwitch,
58914
- editMode
58911
+ currentEditMode
58915
58912
  ) {
58916
- eventEmitter
58917
- .on('textae-event.annotation-data.all.change', (hasMultiTracks) => {
58918
- if (startUpOptions.isEditMode && hasMultiTracks) {
58919
- alertify_default().success(
58920
- 'track annotations have been merged to root annotations.'
58921
- )
58922
- }
58923
-
58924
- editModeSwitch.reset()
58925
- })
58926
- .on('textae-event.edit-mode.transition', (mode) => {
58927
- selectionModel.removeAll()
58913
+ eventEmitter.on('textae-event.edit-mode.transition', (mode) => {
58914
+ selectionModel.removeAll()
58928
58915
 
58929
- switch (mode) {
58930
- case MODE.VIEW:
58931
- annotationModel.entityInstanceContainer.clarifyLabelOfAll()
58932
- break
58933
- default:
58934
- annotationModel.entityInstanceContainer.declarifyLabelOfAll()
58935
- }
58936
- })
58916
+ switch (mode) {
58917
+ case MODE.VIEW:
58918
+ annotationModel.entityInstanceContainer.clarifyLabelOfAll()
58919
+ break
58920
+ default:
58921
+ annotationModel.entityInstanceContainer.declarifyLabelOfAll()
58922
+ }
58923
+ })
58937
58924
 
58938
58925
  this.#editorHTMLElement = editorHTMLElement
58939
58926
  this.#eventEmitter = eventEmitter
@@ -58944,21 +58931,11 @@
58944
58931
  this.#spanConfig = spanConfig
58945
58932
  this.#functionAvailability = functionAvailability
58946
58933
  this.#clipBoard = clipBoard
58947
- this.#editModeSwitch = editModeSwitch
58948
58934
  this.#horizontal = new Horizontal(editorHTMLElement, selectionModel)
58949
58935
  this.#vertical = new Vertical(editorHTMLElement, selectionModel)
58950
58936
  this.#isActive = false
58951
- this.#editMode = editMode
58952
-
58953
- forwardMethods(this, () => this.#editModeSwitch, [
58954
- 'toViewMode',
58955
- 'toTermEditMode',
58956
- 'toBlockEditMode',
58957
- 'toRelationEditMode',
58958
- 'toTextEditMode',
58959
- 'toggleSimpleMode',
58960
- 'changeModeByShortcut'
58961
- ])
58937
+ this.#currentEditMode = currentEditMode
58938
+
58962
58939
  forwardMethods(this, () => this.#clipBoard, [
58963
58940
  'copyEntitiesToLocalClipboard',
58964
58941
  'copyEntitiesToSystemClipboard',
@@ -59014,7 +58991,7 @@
59014
58991
  }
59015
58992
 
59016
58993
  cancelSelect() {
59017
- this.#editModeSwitch.hidePallet()
58994
+ this.#currentEditMode.hidePallet()
59018
58995
  this.#selectionModel.removeAll()
59019
58996
  // Focus the editor for ESC key
59020
58997
  this.#editorHTMLElement.focus()
@@ -59047,36 +59024,36 @@
59047
59024
  }
59048
59025
 
59049
59026
  selectLeft(shiftKey) {
59050
- if (this.#editModeSwitch.isTypeValuesPalletShown) {
59051
- this.#editMode.current.selectLeftAttributeTab()
59027
+ if (this.#currentEditMode.isTypeValuesPalletShown) {
59028
+ this.#currentEditMode.selectLeftAttributeTab()
59052
59029
  } else {
59053
59030
  this.#horizontal.left(shiftKey)
59054
59031
  }
59055
59032
  }
59056
59033
 
59057
59034
  selectRight(shiftKey) {
59058
- if (this.#editModeSwitch.isTypeValuesPalletShown) {
59059
- this.#editMode.current.selectRightAttributeTab()
59035
+ if (this.#currentEditMode.isTypeValuesPalletShown) {
59036
+ this.#currentEditMode.selectRightAttributeTab()
59060
59037
  } else {
59061
59038
  this.#horizontal.right(shiftKey)
59062
59039
  }
59063
59040
  }
59064
59041
 
59065
59042
  selectUp() {
59066
- if (this.#editModeSwitch.isEditDenotation) {
59043
+ if (this.#currentEditMode.isEditDenotation) {
59067
59044
  this.#vertical.up()
59068
59045
  }
59069
59046
  }
59070
59047
 
59071
59048
  selectDown() {
59072
- if (this.#editModeSwitch.isEditDenotation) {
59049
+ if (this.#currentEditMode.isEditDenotation) {
59073
59050
  this.#vertical.down()
59074
59051
  }
59075
59052
  }
59076
59053
 
59077
59054
  applyTextSelectionWithTouchDevice() {
59078
59055
  if (this.#isActive) {
59079
- this.#editMode.current.applyTextSelectionWithTouchDevice()
59056
+ this.#currentEditMode.applyTextSelectionWithTouchDevice()
59080
59057
  }
59081
59058
  }
59082
59059
  } // ./src/lib/component/enableHTMLElement.js
@@ -102882,45 +102859,19 @@ data-button-type="${type}">
102882
102859
  presenter,
102883
102860
  persistenceInterface,
102884
102861
  functionAvailability,
102885
- editMode
102862
+ currentEditMode,
102863
+ editModeSwitch
102886
102864
  ) {
102887
102865
  this._map = new Map([
102888
- [
102889
- '1',
102890
- (shiftKey) => editMode.current.manipulateAttribute(1, shiftKey)
102891
- ],
102892
- [
102893
- '2',
102894
- (shiftKey) => editMode.current.manipulateAttribute(2, shiftKey)
102895
- ],
102896
- [
102897
- '3',
102898
- (shiftKey) => editMode.current.manipulateAttribute(3, shiftKey)
102899
- ],
102900
- [
102901
- '4',
102902
- (shiftKey) => editMode.current.manipulateAttribute(4, shiftKey)
102903
- ],
102904
- [
102905
- '5',
102906
- (shiftKey) => editMode.current.manipulateAttribute(5, shiftKey)
102907
- ],
102908
- [
102909
- '6',
102910
- (shiftKey) => editMode.current.manipulateAttribute(6, shiftKey)
102911
- ],
102912
- [
102913
- '7',
102914
- (shiftKey) => editMode.current.manipulateAttribute(7, shiftKey)
102915
- ],
102916
- [
102917
- '8',
102918
- (shiftKey) => editMode.current.manipulateAttribute(8, shiftKey)
102919
- ],
102920
- [
102921
- '9',
102922
- (shiftKey) => editMode.current.manipulateAttribute(9, shiftKey)
102923
- ],
102866
+ ['1', (shiftKey) => currentEditMode.manipulateAttribute(1, shiftKey)],
102867
+ ['2', (shiftKey) => currentEditMode.manipulateAttribute(2, shiftKey)],
102868
+ ['3', (shiftKey) => currentEditMode.manipulateAttribute(3, shiftKey)],
102869
+ ['4', (shiftKey) => currentEditMode.manipulateAttribute(4, shiftKey)],
102870
+ ['5', (shiftKey) => currentEditMode.manipulateAttribute(5, shiftKey)],
102871
+ ['6', (shiftKey) => currentEditMode.manipulateAttribute(6, shiftKey)],
102872
+ ['7', (shiftKey) => currentEditMode.manipulateAttribute(7, shiftKey)],
102873
+ ['8', (shiftKey) => currentEditMode.manipulateAttribute(8, shiftKey)],
102874
+ ['9', (shiftKey) => currentEditMode.manipulateAttribute(9, shiftKey)],
102924
102875
  [
102925
102876
  'a',
102926
102877
  () => functionAvailability.isAvailable('redo') && commander.redo()
@@ -102943,19 +102894,19 @@ data-button-type="${type}">
102943
102894
  functionAvailability.isAvailable('new entity') &&
102944
102895
  presenter.createEntity()
102945
102896
  ],
102946
- ['f', () => presenter.changeModeByShortcut()],
102897
+ ['f', () => editModeSwitch.changeModeByShortcut()],
102947
102898
  [
102948
102899
  'i',
102949
102900
  () =>
102950
102901
  functionAvailability.isAvailable('import') &&
102951
102902
  persistenceInterface.importAnnotation()
102952
102903
  ],
102953
- ['m', () => presenter.changeModeByShortcut()],
102904
+ ['m', () => editModeSwitch.changeModeByShortcut()],
102954
102905
  [
102955
102906
  'q',
102956
102907
  () =>
102957
102908
  functionAvailability.isAvailable('pallet') &&
102958
- editMode.current.showPallet()
102909
+ currentEditMode.showPallet()
102959
102910
  ],
102960
102911
  [
102961
102912
  'r',
@@ -102973,7 +102924,7 @@ data-button-type="${type}">
102973
102924
  'w',
102974
102925
  () =>
102975
102926
  functionAvailability.isAvailable('edit properties') &&
102976
- editMode.current.editProperties()
102927
+ currentEditMode.editProperties()
102977
102928
  ],
102978
102929
  [
102979
102930
  'y',
@@ -103015,15 +102966,16 @@ data-button-type="${type}">
103015
102966
  persistenceInterface,
103016
102967
  menuState,
103017
102968
  annotationModel,
103018
- editMode
102969
+ currentEditMode,
102970
+ editModeSwitch
103019
102971
  ) {
103020
102972
  this._map = new Map([
103021
- ['view mode', () => presenter.toViewMode()],
103022
- ['term edit mode', () => presenter.toTermEditMode()],
103023
- ['block edit mode', () => presenter.toBlockEditMode()],
103024
- ['relation edit mode', () => presenter.toRelationEditMode()],
103025
- ['text edit mode', () => presenter.toTextEditMode()],
103026
- ['simple view', () => presenter.toggleSimpleMode()],
102973
+ ['view mode', () => editModeSwitch.toViewMode()],
102974
+ ['term edit mode', () => editModeSwitch.toTermEditMode()],
102975
+ ['block edit mode', () => editModeSwitch.toBlockEditMode()],
102976
+ ['relation edit mode', () => editModeSwitch.toRelationEditMode()],
102977
+ ['text edit mode', () => editModeSwitch.toTextEditMode()],
102978
+ ['simple view', () => editModeSwitch.toggleSimpleMode()],
103027
102979
  ['import', () => persistenceInterface.importAnnotation()],
103028
102980
  ['upload', () => persistenceInterface.uploadAnnotation()],
103029
102981
  ['undo', () => commander.undo()],
@@ -103031,23 +102983,23 @@ data-button-type="${type}">
103031
102983
  ['replicate span annotation', () => presenter.replicate()],
103032
102984
  [
103033
102985
  'create span by touch',
103034
- () => editMode.current.createSpanWithTouchDevice()
102986
+ () => currentEditMode.createSpanWithTouchDevice()
103035
102987
  ],
103036
102988
  [
103037
102989
  'expand span by touch',
103038
- () => editMode.current.expandSpanWithTouchDevice()
102990
+ () => currentEditMode.expandSpanWithTouchDevice()
103039
102991
  ],
103040
102992
  [
103041
102993
  'shrink span by touch',
103042
- () => editMode.current.shrinkSpanWithTouchDevice()
102994
+ () => currentEditMode.shrinkSpanWithTouchDevice()
103043
102995
  ],
103044
102996
  [
103045
102997
  'edit text by touch',
103046
- () => editMode.current.editTextWithTouchDevice()
102998
+ () => currentEditMode.editTextWithTouchDevice()
103047
102999
  ],
103048
103000
  ['new entity', () => presenter.createEntity()],
103049
- ['edit properties', () => editMode.current.editProperties()],
103050
- ['pallet', () => presenter.showPallet()],
103001
+ ['edit properties', () => currentEditMode.editProperties()],
103002
+ ['pallet', () => currentEditMode.showPallet()],
103051
103003
  ['delete', () => presenter.removeSelectedElements()],
103052
103004
  ['copy', () => presenter.copyEntitiesToLocalClipboard()],
103053
103005
  ['cut', () => presenter.cutEntitiesToLocalClipboard()],
@@ -103953,79 +103905,80 @@ data-button-type="${type}">
103953
103905
  }
103954
103906
  } // ./src/lib/Editor/UseCase/EditModeSwitch/index.js
103955
103907
 
103908
+ // Switches the edit mode to the specified mode or initial state.
103956
103909
  class EditModeSwitch {
103957
103910
  #editModeState
103958
- #annotationModel
103959
103911
  #startUpOptions
103960
- #editMode
103912
+ #relationInstanceContainer
103913
+ #hidePalletHandler
103961
103914
 
103962
103915
  /**
103963
103916
  *
103964
103917
  * @param {import('../../StartUpOptions').default} startUpOptions
103965
103918
  */
103966
- constructor(annotationModel, startUpOptions, editModeState, editMode) {
103967
- this.#editMode = editMode
103968
-
103969
- this.#editModeState = editModeState
103970
- this.#annotationModel = annotationModel
103919
+ constructor(
103920
+ startUpOptions,
103921
+ editModeState,
103922
+ relationInstanceContainer,
103923
+ hidePalletHandler
103924
+ ) {
103971
103925
  this.#startUpOptions = startUpOptions
103926
+ this.#editModeState = editModeState
103927
+ this.#relationInstanceContainer = relationInstanceContainer
103928
+ this.#hidePalletHandler = hidePalletHandler
103972
103929
  }
103973
103930
 
103974
103931
  toViewMode() {
103975
- this.hidePallet()
103932
+ this.#hidePalletHandler()
103976
103933
  this.#editModeState.toViewMode(this.#editModeState.nextShowRelation)
103977
103934
  }
103978
103935
 
103979
103936
  toTermEditMode() {
103980
- this.hidePallet()
103937
+ this.#hidePalletHandler()
103981
103938
  this.#editModeState.toTermEditMode(this.#editModeState.nextShowRelation)
103982
103939
  }
103983
103940
 
103984
103941
  toBlockEditMode() {
103985
- this.hidePallet()
103942
+ this.#hidePalletHandler()
103986
103943
  this.#editModeState.toBlockEditMode(
103987
103944
  this.#editModeState.nextShowRelation
103988
103945
  )
103989
103946
  }
103990
103947
 
103991
103948
  toRelationEditMode() {
103992
- this.hidePallet()
103949
+ this.#hidePalletHandler()
103993
103950
  this.#editModeState.toRelationEditMode()
103994
103951
  }
103995
103952
 
103996
103953
  toTextEditMode() {
103997
- this.hidePallet()
103954
+ this.#hidePalletHandler()
103998
103955
  this.#editModeState.toTextEditMode(this.#editModeState.nextShowRelation)
103999
103956
  }
104000
103957
 
104001
103958
  toggleSimpleMode() {
104002
- this.hidePallet()
103959
+ this.#hidePalletHandler()
104003
103960
  this.#editModeState.toggleSimpleMode()
104004
103961
  }
104005
103962
 
104006
103963
  changeModeByShortcut() {
104007
- this.hidePallet()
103964
+ this.#hidePalletHandler()
104008
103965
  this.#editModeState.changeModeByShortcut()
104009
103966
  }
104010
103967
 
104011
- get isEditDenotation() {
104012
- return this.#editMode.isEditDenotation
104013
- }
104014
-
104015
103968
  /**
104016
103969
  * For an initiation transition on an annotations data loaded.
104017
103970
  */
104018
103971
  reset() {
104019
103972
  if (this.#startUpOptions.isEditTermMode) {
104020
103973
  this.#editModeState.toTermEditMode(
104021
- this.#annotationModel.relationInstanceContainer.some
103974
+ this.#relationInstanceContainer.some
104022
103975
  )
104023
103976
  return
104024
103977
  }
104025
103978
 
104026
103979
  if (this.#startUpOptions.isEditBlockMode) {
104027
103980
  this.#editModeState.toBlockEditMode(
104028
- this.#annotationModel.relationInstanceContainer.some
103981
+ this.#relationInstanceContainer.some
104029
103982
  )
104030
103983
  return
104031
103984
  }
@@ -104037,30 +103990,12 @@ data-button-type="${type}">
104037
103990
 
104038
103991
  if (this.#startUpOptions.isTextEditMode) {
104039
103992
  this.#editModeState.toTextEditMode(
104040
- this.#annotationModel.relationInstanceContainer.some
103993
+ this.#relationInstanceContainer.some
104041
103994
  )
104042
103995
  return
104043
103996
  }
104044
103997
 
104045
- this.#editModeState.toViewMode(
104046
- this.#annotationModel.relationInstanceContainer.some
104047
- )
104048
- }
104049
-
104050
- hidePallet() {
104051
- this.#editMode.current.hidePallet()
104052
- }
104053
-
104054
- get isTypeValuesPalletShown() {
104055
- return this.#editMode.current.isPalletShown
104056
- }
104057
-
104058
- selectLeftAttributeTab() {
104059
- this.#editMode.current.pallet.selectLeftAttributeTab()
104060
- }
104061
-
104062
- selectRightAttributeTab() {
104063
- this.#editMode.current.pallet.selectRightAttributeTab()
103998
+ this.#editModeState.toViewMode(this.#relationInstanceContainer.some)
104064
103999
  }
104065
104000
  } // ./src/lib/Editor/UseCase/EditModeFactory/clearTextSelection.js
104066
104001
 
@@ -110176,9 +110111,9 @@ data-button-type="${type}">
110176
110111
  eventEmitter,
110177
110112
  annotationModel,
110178
110113
  selectionModel,
110114
+ spanConfig,
110179
110115
  commander,
110180
110116
  menuState,
110181
- spanConfig,
110182
110117
  mousePoint
110183
110118
  ) {
110184
110119
  super()
@@ -110552,9 +110487,9 @@ data-button-type="${type}">
110552
110487
  eventEmitter,
110553
110488
  annotationModel,
110554
110489
  selectionModel,
110490
+ spanConfig,
110555
110491
  commander,
110556
110492
  menuState,
110557
- spanConfig,
110558
110493
  mousePoint
110559
110494
  ) {
110560
110495
  return new TermEditMode(
@@ -110562,9 +110497,9 @@ data-button-type="${type}">
110562
110497
  eventEmitter,
110563
110498
  annotationModel,
110564
110499
  selectionModel,
110500
+ spanConfig,
110565
110501
  commander,
110566
110502
  menuState,
110567
- spanConfig,
110568
110503
  mousePoint
110569
110504
  )
110570
110505
  }
@@ -110574,6 +110509,7 @@ data-button-type="${type}">
110574
110509
  eventEmitter,
110575
110510
  annotationModel,
110576
110511
  selectionModel,
110512
+ spanConfig,
110577
110513
  commander,
110578
110514
  menuState,
110579
110515
  mousePoint
@@ -110583,6 +110519,7 @@ data-button-type="${type}">
110583
110519
  eventEmitter,
110584
110520
  annotationModel,
110585
110521
  selectionModel,
110522
+ spanConfig,
110586
110523
  commander,
110587
110524
  menuState,
110588
110525
  mousePoint
@@ -110627,9 +110564,9 @@ data-button-type="${type}">
110627
110564
  static createViewMode(editorHTMLElement, eventEmitter, annotationModel) {
110628
110565
  return new ViewMode(editorHTMLElement, eventEmitter, annotationModel)
110629
110566
  }
110630
- } // ./src/lib/Editor/UseCase/EditMode.js
110567
+ } // ./src/lib/Editor/UseCase/CurrentEditMode.js
110631
110568
 
110632
- class EditMode {
110569
+ class CurrentEditMode {
110633
110570
  #editModeState
110634
110571
  #termEditMode
110635
110572
  #blockEditMode
@@ -110655,18 +110592,36 @@ data-button-type="${type}">
110655
110592
 
110656
110593
  eventEmitter
110657
110594
  .on('textae-event.editor.relation.click', (event, relation) =>
110658
- this.current.relationClicked(event, relation)
110595
+ this.#current.relationClicked(event, relation)
110659
110596
  )
110660
110597
  .on('textae-event.editor.relation-bollard.click', (_, entity) =>
110661
- this.current.relationBollardClicked(entity)
110598
+ this.#current.relationBollardClicked(entity)
110662
110599
  )
110600
+
110601
+ forwardMethods(this, () => this.#current, [
110602
+ 'showPallet',
110603
+ 'hidePallet',
110604
+ 'selectLeftAttributeTab',
110605
+ 'selectRightAttributeTab',
110606
+ 'createSpanWithTouchDevice',
110607
+ 'expandSpanWithTouchDevice',
110608
+ 'shrinkSpanWithTouchDevice',
110609
+ 'editTextWithTouchDevice',
110610
+ 'applyTextSelectionWithTouchDevice',
110611
+ 'editProperties',
110612
+ 'manipulateAttribute'
110613
+ ])
110663
110614
  }
110664
110615
 
110665
110616
  get isEditDenotation() {
110666
110617
  return this.#editModeState.currentState === MODE.EDIT_DENOTATION
110667
110618
  }
110668
110619
 
110669
- get current() {
110620
+ get isTypeValuesPalletShown() {
110621
+ return this.#current.isPalletShown
110622
+ }
110623
+
110624
+ get #current() {
110670
110625
  switch (this.#editModeState.currentState) {
110671
110626
  case MODE.EDIT_DENOTATION:
110672
110627
  return this.#termEditMode
@@ -110889,10 +110844,10 @@ data-button-type="${type}">
110889
110844
 
110890
110845
  class UseCase {
110891
110846
  #contextMenu
110892
- #presenter
110893
110847
  #annotationModel
110894
110848
  #editModeState
110895
110849
  #viewMode
110850
+ #editModeSwitch
110896
110851
 
110897
110852
  /**
110898
110853
  *
@@ -110907,6 +110862,8 @@ data-button-type="${type}">
110907
110862
  startUpOptions,
110908
110863
  selectionModel
110909
110864
  ) {
110865
+ this.#annotationModel = annotationModel
110866
+
110910
110867
  const spanConfig = new SpanConfig()
110911
110868
 
110912
110869
  // Users can edit model only via commands.
@@ -110958,9 +110915,9 @@ data-button-type="${type}">
110958
110915
  eventEmitter,
110959
110916
  annotationModel,
110960
110917
  selectionModel,
110918
+ spanConfig,
110961
110919
  commander,
110962
110920
  menuState,
110963
- spanConfig,
110964
110921
  mousePoint
110965
110922
  )
110966
110923
  const blockEditMode = EditModeFactory.createBlockEditMode(
@@ -110995,7 +110952,7 @@ data-button-type="${type}">
110995
110952
  annotationModel
110996
110953
  )
110997
110954
  this.#viewMode = viewMode
110998
- const editMode = new EditMode(
110955
+ const currentEditMode = new CurrentEditMode(
110999
110956
  editModeState,
111000
110957
  termEditMode,
111001
110958
  blockEditMode,
@@ -111006,11 +110963,25 @@ data-button-type="${type}">
111006
110963
  )
111007
110964
 
111008
110965
  const editModeSwitch = new EditModeSwitch(
111009
- annotationModel,
111010
110966
  startUpOptions,
111011
110967
  editModeState,
111012
- editMode
110968
+ annotationModel.relationInstanceContainer,
110969
+ () => currentEditMode.hidePallet()
111013
110970
  )
110971
+ eventEmitter.on(
110972
+ 'textae-event.annotation-data.all.change',
110973
+ (hasMultiTracks) => {
110974
+ if (startUpOptions.isEditMode && hasMultiTracks) {
110975
+ alertify_default().success(
110976
+ 'track annotations have been merged to root annotations.'
110977
+ )
110978
+ }
110979
+
110980
+ editModeSwitch.reset()
110981
+ }
110982
+ )
110983
+ this.#editModeSwitch = editModeSwitch
110984
+
111014
110985
  const presenter = new Presenter(
111015
110986
  editorHTMLElement,
111016
110987
  eventEmitter,
@@ -111021,12 +110992,8 @@ data-button-type="${type}">
111021
110992
  functionAvailability,
111022
110993
  clipBoard,
111023
110994
  menuState,
111024
- startUpOptions,
111025
- editModeSwitch,
111026
- editMode
110995
+ currentEditMode
111027
110996
  )
111028
- this.#presenter = presenter
111029
- this.#annotationModel = annotationModel
111030
110997
 
111031
110998
  const remoteResource = new RemoteSource(eventEmitter)
111032
110999
 
@@ -111076,7 +111043,8 @@ data-button-type="${type}">
111076
111043
  persistenceInterface,
111077
111044
  menuState,
111078
111045
  annotationModel,
111079
- editMode
111046
+ currentEditMode,
111047
+ editModeSwitch
111080
111048
  )
111081
111049
 
111082
111050
  // Add the tool bar
@@ -111135,7 +111103,8 @@ data-button-type="${type}">
111135
111103
  presenter,
111136
111104
  persistenceInterface,
111137
111105
  functionAvailability,
111138
- editMode
111106
+ currentEditMode,
111107
+ editModeSwitch
111139
111108
  ).handle(event)
111140
111109
  }
111141
111110
  })
@@ -111161,7 +111130,7 @@ data-button-type="${type}">
111161
111130
  }
111162
111131
 
111163
111132
  focusDenotation(denotationID) {
111164
- this.#presenter.toTermEditMode()
111133
+ this.#editModeSwitch.toTermEditMode()
111165
111134
  this.#annotationModel.focusDenotation(denotationID)
111166
111135
  }
111167
111136