Bitbybit Docs
    Preparing search index...

    Class SceneCanvasBackgroundImageDto (Inputs.BabylonScene)

    babylon.scene.canvasBackgroundImage 使用:显示在场景后方的图像,以及控制其重复、缩放、位置和滚动方式的 CSS 选项。

    Index

    Constructors

    Properties

    imageUrl?: string

    显示在场景后方的图像的地址

    undefined
    

    true

    图像是否在画布上平铺,沿一个方向平铺或完全不平铺

    noRepeat
    

    图像的缩放方式:cover 填满画布,contain 完整显示,或者 CSS 尺寸(如 100px 50px

    cover
    

    图像在画布上的位置,例如中心或某个角,或者 CSS 位置(如 50% 50%

    center
    

    图像是随页面滚动还是固定在视口上

    scroll
    

    图像相对于画布的哪个盒子定位:内边距、边框或内容盒

    paddingBox
    

    图像裁剪到画布的哪个盒子:内边距、边框或内容盒

    borderBox