Closed fuzhenn closed 5 months ago
如图,填充图片边角存在空袭。
图片的base64:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAKJJREFUWEfF0McNACEMRFHTm4ujKHpjBYfVBoJxHOnfnyblnGspBVoRS4hYEbEDIhAJADogCtEB7fooxA2IQrwAEYgfwBsxBHgipgAvxBLggdgCrBEkgCWCDLBCHAEsEMcAbQQLoIlgA7QQIoAGQgyQIlQAEoQagItQBXAQ6oBThAngBGEGoCJMARSEOWCHcAGsEG6AGcIVMEK4A76IEMATcQFyttll7WbCCgAAAABJRU5ErkJggg==
研究后发现该空隙是正常的,对角线上确实会出现空隙。
发现大级别下,纹理会发生扭曲变形,后来发现是因为originOffset在大级别下,数值太大精度不够导致,将originOffset的计算结果取余后解决。
如图,填充图片边角存在空袭。![image](https://github.com/maptalks/issues/assets/13678919/c4a00dc9-a6b9-4284-86c7-0f2daa1e62ba)
图片的base64:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAKJJREFUWEfF0McNACEMRFHTm4ujKHpjBYfVBoJxHOnfnyblnGspBVoRS4hYEbEDIhAJADogCtEB7fooxA2IQrwAEYgfwBsxBHgipgAvxBLggdgCrBEkgCWCDLBCHAEsEMcAbQQLoIlgA7QQIoAGQgyQIlQAEoQagItQBXAQ6oBThAngBGEGoCJMARSEOWCHcAGsEG6AGcIVMEK4A76IEMATcQFyttll7WbCCgAAAABJRU5ErkJggg==