jsoncode
jsoncode
哥们,我看了tradingview的源码,解决这个问题,是需要引入一个hidpi-canvas.js的类库,但是我试了多遍,还是没解决移动端模糊的问题, 这是我从tradingview中摘出来的一段hidpi的代码。希望对你有用 ``` (function(prototype) { var pixelRatio = (function() { var canvas = document.createElement('canvas'), context = canvas.getContext('2d'), backingStore = context.backingStorePixelRatio || context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio || context.msBackingStorePixelRatio || context.oBackingStorePixelRatio || context.backingStorePixelRatio...
tradingview源码给你也用不了,要向官方申请授权,可以免费使用。api都是官方授权后才能打开的
我用的是作者一年前的代码,这里贴一下自己实现的移动端拖动,缩放功能: 这是作者源码: ``` document.querySelector('#chart_overlayCanvas').addEventListener('mousedown', function(e) { if (e.which != 1) { return; } KlineIns.buttonDown = true; var r = e.target.getBoundingClientRect(); var x = e.clientX - r.left; var y = e.clientY...
I also encountered the same problem. /layouts/default.vue ``` ... // ... .div{} .div{} ``` and cannot delete either. and cannot be empty. ------ 
I’m also looking forward to the launch of the feature that can train new models
阿里是个鸽王,我star了好几个项目,几个月过去了,一个开源的都没见到,都是一个readme
> I have modified the windows installation instructions an re-arranged some of the files in the repo to make it work easilly on Windows: https://github.com/bmaltais/PhotoMaker It's worked! cool
ios中如下代码无效: dom.style="width:100px;height:100px;" 必须写成: dom.style.width=100+"px"; dom.style.height=100+"px"; window,和移动端判断横竖屏问题: var angle = 0; try { angle = window.screen.orientation.angle } catch (e) { angle =window.orientation } Math.abs(angle) === 90//横屏
发起取关运动,我已取关