久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <small id='UBtyo'></small><noframes id='UBtyo'>

    <legend id='UBtyo'><style id='UBtyo'><dir id='UBtyo'><q id='UBtyo'></q></dir></style></legend>

    <tfoot id='UBtyo'></tfoot>

    <i id='UBtyo'><tr id='UBtyo'><dt id='UBtyo'><q id='UBtyo'><span id='UBtyo'><b id='UBtyo'><form id='UBtyo'><ins id='UBtyo'></ins><ul id='UBtyo'></ul><sub id='UBtyo'></sub></form><legend id='UBtyo'></legend><bdo id='UBtyo'><pre id='UBtyo'><center id='UBtyo'></center></pre></bdo></b><th id='UBtyo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='UBtyo'><tfoot id='UBtyo'></tfoot><dl id='UBtyo'><fieldset id='UBtyo'></fieldset></dl></div>
      <bdo id='UBtyo'></bdo><ul id='UBtyo'></ul>

      1. 旋轉(zhuǎn)后調(diào)整大小時(shí)如何計(jì)算平移x和y值..?

        How to calculate translate x and y value when resize after rotate..?(旋轉(zhuǎn)后調(diào)整大小時(shí)如何計(jì)算平移x和y值..?)
          <legend id='vLVyS'><style id='vLVyS'><dir id='vLVyS'><q id='vLVyS'></q></dir></style></legend>
          <tfoot id='vLVyS'></tfoot>
            <bdo id='vLVyS'></bdo><ul id='vLVyS'></ul>

              1. <small id='vLVyS'></small><noframes id='vLVyS'>

                • <i id='vLVyS'><tr id='vLVyS'><dt id='vLVyS'><q id='vLVyS'><span id='vLVyS'><b id='vLVyS'><form id='vLVyS'><ins id='vLVyS'></ins><ul id='vLVyS'></ul><sub id='vLVyS'></sub></form><legend id='vLVyS'></legend><bdo id='vLVyS'><pre id='vLVyS'><center id='vLVyS'></center></pre></bdo></b><th id='vLVyS'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='vLVyS'><tfoot id='vLVyS'></tfoot><dl id='vLVyS'><fieldset id='vLVyS'></fieldset></dl></div>
                    <tbody id='vLVyS'></tbody>
                  本文介紹了旋轉(zhuǎn)后調(diào)整大小時(shí)如何計(jì)算平移x和y值..?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我正在使用 HTML div 元素 javascript 中基于角的調(diào)整大小.

                  I am working with HTML div element corner based resize in javascript.

                  基于角的調(diào)整大小在選擇框 div 未旋轉(zhuǎn)(即 rotate(0 deg))時(shí)完美運(yùn)行.

                  Corner based resize working perfect when selection box div is unrotated (i.e. rotate(0 deg)).

                  旋轉(zhuǎn)后,當(dāng)左上角需要保持在同一位置時(shí),我使用右下角作為手柄來(lái)調(diào)整選擇框div的大小.p>

                  就像有四個(gè)手柄一樣,調(diào)整大小時(shí)對(duì)角需要保持在同一位置.

                  After rotate, i am using bottom-right corner as handle to resize the selection box div, when top-left corner needs to remain in same position.

                  但問(wèn)題是,選擇框左上角角不保持在同一位置.

                  As like having four handles, with opposite corner needs to remain in same position when resize.

                  我需要為旋轉(zhuǎn)后基于角的調(diào)整大小計(jì)算平移 x 和 y 值.

                  But the problem is, the selection box top-left corner not remains in same position.

                  scale, center_x, center_y, previous_x, previous_y, width, height, previous_width, previous_height, diff_width, diff_height, radian_angle, rotated_degree.

                  I need to calculate translate x and y value for corner based resize after rotate.

                  scale, center_x, center_y, previous_x, previous_y, width, height, previous_width, previous_height, diff_width, diff_height, radian_angle, rotated_degree.

                  用于旋轉(zhuǎn)后調(diào)整大小的示例代碼:

                  switch (handle) {
                    case 'bottom-right':
                      x = previous_x - ? ;        //logic behind after rotated some angles..?
                      y = previous_y + ? ;
                      break;
                    case 'bottom-left':
                      x = ? ;
                      y = ? ;
                      break;
                    case 'top-left':
                      x = ? ;
                      y = ? ;
                      break;
                    case 'top-right':
                      x = ? ;
                      y = ? ;
                      break;
                    default:
                  }
                  

                  當(dāng)使用未旋轉(zhuǎn)的 div (rotate(0 deg)) 調(diào)整大小時(shí),基于角的調(diào)整大小代碼可以完美運(yùn)行:

                  Below corner based resize code works perfect when resize with unrotated div (rotate(0 deg)):

                  case 'bottom-right':
                    x = previous_x;
                    y = previous_y;
                    break;
                  case 'bottom-left':
                    x = previous_x - diff_width;
                    y = previous_y;
                    break;
                  

                  如何計(jì)算 translate x &調(diào)整大小時(shí)旋轉(zhuǎn)后的y值以獲得固定角.?

                  How to calculate translate x & y value after rotate to get fixed corner when resize.?

                  推薦答案

                  不知道你是否還需要幫助.但我認(rèn)為你可以用三角函數(shù)(余弦、正弦和你的旋轉(zhuǎn)角度)來(lái)達(dá)到它,因?yàn)槟愕男D(zhuǎn)畫了一個(gè)圓.

                  I don't know if you still need help. But I think you can reach it with Trigonometry (cosinus, sinus and your rotation angle) because your rotation draw a circle.

                  這篇關(guān)于旋轉(zhuǎn)后調(diào)整大小時(shí)如何計(jì)算平移x和y值..?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調(diào)用 abort (jQuery) 之后,瀏覽器也會(huì)等待 ajax 調(diào)用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無(wú)法加載,請(qǐng)求的資源上不存在“Access-Control-Allow-Origin標(biāo)頭) - IT屋-程序員軟件開發(fā)技術(shù)分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請(qǐng)求是否有可能不遵循重定向 (301 302))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內(nèi)容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)

                  <i id='EkYOF'><tr id='EkYOF'><dt id='EkYOF'><q id='EkYOF'><span id='EkYOF'><b id='EkYOF'><form id='EkYOF'><ins id='EkYOF'></ins><ul id='EkYOF'></ul><sub id='EkYOF'></sub></form><legend id='EkYOF'></legend><bdo id='EkYOF'><pre id='EkYOF'><center id='EkYOF'></center></pre></bdo></b><th id='EkYOF'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='EkYOF'><tfoot id='EkYOF'></tfoot><dl id='EkYOF'><fieldset id='EkYOF'></fieldset></dl></div>

                  <small id='EkYOF'></small><noframes id='EkYOF'>

                  1. <tfoot id='EkYOF'></tfoot>
                        <tbody id='EkYOF'></tbody>
                    1. <legend id='EkYOF'><style id='EkYOF'><dir id='EkYOF'><q id='EkYOF'></q></dir></style></legend>
                      • <bdo id='EkYOF'></bdo><ul id='EkYOF'></ul>

                          • 主站蜘蛛池模板: 国产高清久久 | 日韩一区二区在线视频 | 成年人免费在线视频 | 欧美午夜激情在线 | 成人一级片在线观看 | 日本aa毛片a级毛片免费观看 | 天天曰天天干 | 亚洲激情综合 | 欧美中文字幕一区二区 | 91视频在线看 | 亚洲精品性视频 | 欧美1区| 综合色在线 | 亚洲视频中文字幕 | 午夜一区二区三区视频 | 热re99久久精品国产99热 | 欧美精品久久久久久久久久 | 久久久高清 | 毛片毛片毛片毛片毛片 | 国产欧美一区二区三区国产幕精品 | 欧美视频在线观看 | 久草视频在线播放 | 一区二区三区视频在线 | 极品国产视频 | 亚洲精品一区二区三区在线 | 狠狠草视频 | 亚洲国产精品99久久久久久久久 | 日韩在线免费观看视频 | 天天综合日日夜夜 | 亚洲一级在线 | 亚洲精品99999| 日本福利片 | av国产精品 | 男人的天堂中文字幕 | ww 255hh 在线观看 | 99re6在线 | 日韩aⅴ片 | 五月天天丁香婷婷在线中 | 亚洲成色777777在线观看影院 | 久久久国产精品网站 | 日韩av福利在线观看 |