scaletransform

Scaling results in gaps between CSS shapes

给你一囗甜甜゛ 提交于 2021-02-07 16:13:45
问题 I have a series of CSS hexagons. I would like to apply CSS scale transform for different viewport widths, though gaps are appearing within my hexagon shapes. This problem is most evident on Firefox at any scale value. It also appears in Chrome if scaled to non-integer values. Firefox additionally shows baffling horizontal lines in the :before and :after pseudo elements, though these lines are in the centre of a border and not at the edge of any shape. Snippets A simplified version of my

Scaling results in gaps between CSS shapes

孤者浪人 提交于 2021-02-07 15:57:24
问题 I have a series of CSS hexagons. I would like to apply CSS scale transform for different viewport widths, though gaps are appearing within my hexagon shapes. This problem is most evident on Firefox at any scale value. It also appears in Chrome if scaled to non-integer values. Firefox additionally shows baffling horizontal lines in the :before and :after pseudo elements, though these lines are in the centre of a border and not at the edge of any shape. Snippets A simplified version of my

Border-image shows 9-slice lines when parent element is scaled using transfrom

◇◆丶佛笑我妖孽 提交于 2020-07-22 05:11:07
问题 I am using border-image property to create styled components with 9-slice. Also I am using css transform: scale(x) property to scale down/up my elements based on screen sizes. The issue I am running into is that my 9-slice component looks fine when scale is set to a whole number like 1, 2, 3... but if its a float then the border shows 9-slice lines/gaps and I am having hard time fixing it. I have tried setting different values for border-image-slice as well as the scale . Initially thought

Changing starting angle and direction of a custom doughnut chart

元气小坏坏 提交于 2020-01-06 11:09:25
问题 I'm trying to create a doughnut chart in WPF and using this helpful previous answer. However, currently the StartAngle starts from the 3 o'clock position e.g. How can I change this code so that the StartAngle starts from the 12 o'clock position and the angle measures clockwise e.g. 1] StartAngle = 0, EndAngle = 90 => covers top right corner. 2] StartAngle = 0, EndAngle = 180 => covers right half. 3] StartAngle = 0, EndAngle = 270 => covers three quarters of the chart. I've tried changing the

webkit transform scale making items disappear

对着背影说爱祢 提交于 2020-01-03 16:48:17
问题 I am trying to scale a div in my HTML page. This div contains a lot of canvas elements and other div elements. Basically this div acts as the container for all other items in the page. With Chrome "23.0.1271.95 m" and IOS6.0 safari, the items present on the right and the bottom part of this div do not appear after scaling. If I resize the window (or change the orientation on iPad), the div scales correctly and the items begin to appear, but again disappear after a certain size. This used to

webkit transform scale making items disappear

二次信任 提交于 2020-01-03 16:48:03
问题 I am trying to scale a div in my HTML page. This div contains a lot of canvas elements and other div elements. Basically this div acts as the container for all other items in the page. With Chrome "23.0.1271.95 m" and IOS6.0 safari, the items present on the right and the bottom part of this div do not appear after scaling. If I resize the window (or change the orientation on iPad), the div scales correctly and the items begin to appear, but again disappear after a certain size. This used to

Using CSS transform scale() to zoom into an element without cropping, maintaining scrolling

£可爱£侵袭症+ 提交于 2020-01-01 01:56:33
问题 Live example: https://jsfiddle.net/b8vLg0ny/ It's possible to use the CSS scale and translate functions to zoom into element. Take this example, of 4 boxes in a 2x2 grid. HTML: <div id="container"> <div id="zoom-container"> <div class="box red">A</div> <div class="box blue">B</div> <div class="box green">C</div> <div class="box black">D</div> </div> </div> CSS: * { margin: 0; } body, html { height: 100%; } #container { height: 100%; width: 50%; margin: 0 auto; } #zoom-container { height: 100%

C# GDI+ ScaleTransform ok on picturebox but image saved is original

泪湿孤枕 提交于 2019-12-25 04:42:29
问题 Hi I have the issue that when I use ScaleTransform(zoomFactor,zoomFactor) the image saved on disk is the original version always, while on screen in the picturebox the image is distorted in proportion to the zoomFactor. Why this could be happening ? Shouldn't I have the final result as applied from e.Graphics on disk written image ? My code is the following which is a version with matrix. but the instead of matrix I have used the ScaleTransform as well. Result is always the same: g=e.Graphics

C# GDI+ ScaleTransform ok on picturebox but image saved is original

牧云@^-^@ 提交于 2019-12-25 04:42:07
问题 Hi I have the issue that when I use ScaleTransform(zoomFactor,zoomFactor) the image saved on disk is the original version always, while on screen in the picturebox the image is distorted in proportion to the zoomFactor. Why this could be happening ? Shouldn't I have the final result as applied from e.Graphics on disk written image ? My code is the following which is a version with matrix. but the instead of matrix I have used the ScaleTransform as well. Result is always the same: g=e.Graphics

Scale and center matrix on arbitrary point

跟風遠走 提交于 2019-12-23 21:34:52
问题 I'm using a custom ImageView to display a rather large bitmap. The bitmap display is being handled by a matrix that transforms it to what the user sees. I'm trying to implement a "double-tap-to-zoom" but I can't quite get it right. I'm trying to have the image zoom on the point where the user touched with this point ending up in the center of the screen at the end. I worked through a lot of the matrix math and transformations and basically the following transformation is what I need to do