This repository has been archived by the owner on Jan 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 471
25bad6c以来发现的问题和改进 #28
Labels
Comments
请提供重现方法 |
Unable to get property 'getDrawDataIndex' of undefined or null reference Chrome 闪烁无法重现 正在学习如何使用js控制css。 链接:http://pan.baidu.com/s/1jI6A9Ye 密码:wk8f 目前正在尝试的一个很迷的修改: <div id="hexo-helper-live2d">
<canvas id="${config.id}" width="${config.width * 2}" height="${config.height * 2}" class="${config.className}"></canvas>
</div>
<style>
#${config.id} {
position: fixed;
${config.position}: ${config.horizontalOffset}px;
z-index: 999;
pointer-events: none;
bottom: ${config.verticalOffset}px;
opacity: ${config.opacity};
}
</style>
<script src="/live2d/device.min.js"></script>
<script type="text/javascript">
(function(){
if(device.mobile()){
${config.mobileShow ? `
document.getElementById("${config.id}").width = ${config.mobileWidth * 2};
document.getElementById("${config.id}").height = ${config.mobileHeight * 2};
document.getElementById("${config.id}").style.width = ${config.mobileWidth};
document.getElementById("${config.id}").style.height = ${config.mobileHeight};
document.getElementById("${config.id}").style.opacity = ${config.mobileOpacity};
document.write('<script type="text/javascript" src="/live2d/script.js"><\\/script>');
document.write('<script>loadlive2d(${JSON.stringify(config.id)}, ${JSON.stringify(url.resolve("/live2d/assets/", config.model + ".model.json"))}, 0.5)<\\/script>');
` : ``}
}else{
document.getElementById("${config.id}").style.width = ${config.width};
document.getElementById("${config.id}").style.height = ${config.height};
document.write('<script type="text/javascript" src="/live2d/script.js"><\\/script>');
document.write('<script>loadlive2d(${JSON.stringify(config.id)}, ${JSON.stringify(url.resolve("/live2d/assets/", config.model + ".model.json"))}, 0.5)<\\/script>');
}
})();
</script> |
为什么你不用 css 媒体查询呢 |
媒体查询 不太知道怎么用Orz
我现在是通过device.min.js,根据设备类型判断移动设备。 |
7问题 |
所有问题均已分散为小问题,此issue关闭 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
1,Unable to get property 'getDrawDataIndex' of undefined or null referenceat Live2DFramework.js (274,1)
与#26 有关OrzFixed, WFT, Tested.3,移动设备上的WebGL模糊 Fixed, brought bug76.opacity2,Blinking issue.即有的时候canvas会闪烁黑色7,头部位置问题4,[Improves]移动设备加入重力感应5,[Improves]每日一句The text was updated successfully, but these errors were encountered: