Changeset 35633 for main/trunk
- Timestamp:
- 2021-10-18T21:29:06+13:00 (3 years ago)
- Location:
- main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItemEditor.vue
r35631 r35633 21 21 22 22 <word-timing-selector class="word-timing-selector" @wordUpdated="onWordUpdated" v-if="enableEditing" 23 :surroundingWords="surroundingWords" :wordIndex="surroundingWordPrincipleIndex" />23 :surroundingWords="surroundingWords" :wordIndex="surroundingWordPrincipleIndex" :transcriptionID="transcription.id" /> 24 24 </div> 25 25 </template> -
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/WordTimingSelector.vue
r35608 r35633 1 1 <template> 2 2 <div class="word-timing-selector-root"> 3 <span>{{ minTimeString }}</span> 3 <span class="boundary-time-string">{{ minTimeString }}</span> 4 <div class="boundary" /> 4 5 5 6 <div class="words-container" v-width="onWordsContainerWidthChanged"> … … 24 25 </div> 25 26 26 <span>{{ maxTimeString }}</span> 27 <div class="boundary" /> 28 <span class="boundary-time-string">{{ maxTimeString }}</span> 27 29 </div> 28 30 </template> … … 33 35 align-items: flex-end; 34 36 justify-content: center; 35 gap: 1em;36 37 height: 3em; 37 38 } … … 41 42 position: relative; 42 43 height: 1.5em; 44 } 45 46 .boundary { 47 width: 3px; 48 background-color: rgba(var(--bg-color-raw), 0.6); 49 height: 1.5em; 50 } 51 52 .boundary-time-string { 53 margin: 0 0.5em; 43 54 } 44 55 … … 110 121 name: "WordTimingSelector", 111 122 props: { 123 transcriptionID: String, 112 124 /** @type {Array<TWord>} */ 113 125 surroundingWords: Array, … … 169 181 } 170 182 171 // Gives 0.5s of time to play with while adjusting the last word.183 // The last word can be adjusted up to the length of the backing audio. 172 184 if (this.wordIndex === this.surroundingWords.length - 1) { 173 length += 0.5;185 length = this.$store.getters.transcriptionPlaybackLength(this.transcriptionID) - this.surroundingWords[0].startTime; 174 186 } 175 187
Note:
See TracChangeset
for help on using the changeset viewer.