|
@@ -160,7 +160,7 @@ export const moveGracePosition = (needTrans?: boolean) => {
|
|
/**
|
|
/**
|
|
* TODO:曲目:摇篮曲(节奏练习)-倚音位置 特殊处理
|
|
* TODO:曲目:摇篮曲(节奏练习)-倚音位置 特殊处理
|
|
*/
|
|
*/
|
|
- const specialIds = ['1788850864767643649','1788502467554750466'];
|
|
|
|
|
|
+ const specialIds = ['1788850864767643649','1788502467554750466','1789839575249596417','1788501975122489346'];
|
|
if (specialIds.includes(state.cbsExamSongId) || needTrans) {
|
|
if (specialIds.includes(state.cbsExamSongId) || needTrans) {
|
|
const lastCurve: any = Array.from(document.getElementsByClassName('vf-curve'))?.last();
|
|
const lastCurve: any = Array.from(document.getElementsByClassName('vf-curve'))?.last();
|
|
if (lastCurve) {
|
|
if (lastCurve) {
|
|
@@ -177,20 +177,20 @@ export const moveGracePosition = (needTrans?: boolean) => {
|
|
// }
|
|
// }
|
|
} else {
|
|
} else {
|
|
const signatureDom = document.getElementById('auto2784'), fixedSigntureDom = document.getElementById('auto3022');
|
|
const signatureDom = document.getElementById('auto2784'), fixedSigntureDom = document.getElementById('auto3022');
|
|
- const needTransLateDom: any = document.getElementById('vf-auto2178')?.getElementsByClassName('vf-modifier')?.[0], fixednNeedTransLateDom: any = document.getElementById('vf-auto2390')?.getElementsByClassName('vf-modifier')?.[0];
|
|
|
|
- const arrowDom = document.getElementById('vf-auto2178-lines'), fixedArrowDom = document.getElementById('vf-auto2390-lines');
|
|
|
|
|
|
+
|
|
|
|
+ const targetIdx = ['1788502467554750466','1788501975122489346'].includes(state.cbsExamSongId) ? 29 : 17;
|
|
|
|
+ const targetNeedTransLateDom: any = document.querySelectorAll('.vf-measure')?.[targetIdx]?.getElementsByClassName('vf-stavenote')?.[1]?.getElementsByClassName('vf-modifier')?.[0];
|
|
|
|
+ const targetId = document.querySelectorAll('.vf-measure')?.[targetIdx]?.getElementsByClassName('vf-stavenote')?.[1]?.getAttribute('id');
|
|
|
|
+ const targetArrowDom = document.getElementById(targetId + '-lines');
|
|
|
|
+ // console.log(123456,targetArrowDom)
|
|
|
|
+ if (targetNeedTransLateDom) targetNeedTransLateDom.style.transform = 'translateX(-0.65rem)';
|
|
|
|
+ if (targetArrowDom) targetArrowDom.style.transform = 'translateX(-0.65rem)';
|
|
|
|
+
|
|
if (signatureDom) signatureDom.style.display = 'none';
|
|
if (signatureDom) signatureDom.style.display = 'none';
|
|
if (fixedSigntureDom) fixedSigntureDom.style.display = 'none';
|
|
if (fixedSigntureDom) fixedSigntureDom.style.display = 'none';
|
|
- if (needTransLateDom) needTransLateDom.style.transform = 'translateX(-0.65rem)';
|
|
|
|
- if (fixednNeedTransLateDom) fixednNeedTransLateDom.style.transform = 'translateX(-0.65rem)';
|
|
|
|
- if (arrowDom) {
|
|
|
|
- arrowDom.style.transform = 'translateX(-0.65rem)';
|
|
|
|
- }
|
|
|
|
- if (fixedArrowDom) {
|
|
|
|
- fixedArrowDom.style.transform = 'translateX(-0.65rem)';
|
|
|
|
- }
|
|
|
|
- if (arrowDom || fixedArrowDom) {
|
|
|
|
- const path: any = arrowDom ? arrowDom.querySelector('path') : fixedArrowDom ? fixedArrowDom.querySelector('path') : null;
|
|
|
|
|
|
+
|
|
|
|
+ if (targetArrowDom) {
|
|
|
|
+ const path: any = targetArrowDom ? targetArrowDom.querySelector('path') : null;
|
|
let d = path?.getAttribute("d");
|
|
let d = path?.getAttribute("d");
|
|
if (d) {
|
|
if (d) {
|
|
const patchStr = d.split('L')?.last()?.split(" ")?.[0];
|
|
const patchStr = d.split('L')?.last()?.split(" ")?.[0];
|