• 2023-12-19修复微前端无界[wujie]子应用window属性值在初始化后不再变化的问题
    问题部分的组件库(例如antd)使用到了window.innerWidth和window.innerHeight属性,可无界框架在初始化时仅将主应用的innerWidth和innerHeight属性赋值给子应用,导致后续不管主应用如何变化,子应用的这两个属性无法跟随变化,也就导致子应用使用的这些组件库表现异常。解决方式借用作
  • 2023-11-10innerWidth()是内部宽度,包括padding和内容区
    alert($(window).height());//浏览器当前窗口可视区域高度alert($(document).height());//浏览器当前窗口文档的高度alert($(document.body).height());//浏览器当前窗口文档body的高度alert($(document.body).outerHeight(true));//浏览器当前窗口文档body的总高度包括borde
  • 2023-04-21threejs_动态heatmap渲染
    heatmap>heatmap2d.tsimport{Mesh,Texture,MeshBasicMaterial,PlaneGeometry,Box3,Vector3,}from'three';importBasefrom'../Base';importHeatMap,{DataPoint}from'heatmap-ts';import{log}from
  • 2023-04-15heatmapts_simple-heatmap的使用
    simpleheat的使用<scriptsetuplang="ts">import{SimpleHeat}from"simpleheat-ts";import*asdatfrom"dat.gui";letframe:number|null=null;constoCanvas=document.createElement("canvas");oCanva
  • 2023-03-26浏览器对象属性 window.innerWidth 和 window.outerWidth 这两个宽度属性有何区别?
    window.innerWidth和window.outerWidth是两个浏览器对象属性,分别代表浏览器窗口的内部宽度和外部宽度。它们的区别如下:window.innerWidth:表示浏览器窗口的内部宽度
  • 2023-03-15clientHeight、clientWidth innerHeight innerWidth
    https://www.runoob.com/jsref/prop-win-innerheight-innerwidth.htmlinnerHeight返回窗口的文档显示区的高度,如果有垂直滚动条,也包括滚动条高度。innerWidth返回窗口