第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

使用 getPointAtLength() 向路徑添加圓被移動

使用 getPointAtLength() 向路徑添加圓被移動

胡說叔叔 2021-09-04 15:06:35
我會動態(tài)地向路徑添加點這是我的代碼const cir1 = document.createElementNS('http://www.w3.org/2000/svg', 'circle');let path= document.getElementById('path9');this.getPath=path;let g = document.createElementNS('http://www.w3.org/2000/svg', 'g');let pt = path.getPointAtLength('60');g.setAttribute('transform', `translate(${pt.x},${pt.y})`);g.appendChild(cir1)cir1.setAttribute('r', '3');cir1.setAttribute('fill', 'red');cir1.setAttribute('id','123');let svg =document.getElementById('Calque_1');svg.appendChild(g)實際上點被移動了,而不是在我無法弄清楚為什么的路徑上。
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 337 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號