.view-loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.draw-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    position: relative;

    *:focus-visible {
        outline: none;
    }

    // 工具栏
    .draw-viewer-toolbar {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 9;
        display: none;

        .fit {
            font-size: 20px;
            cursor: pointer;
        }
    }

    .ant-spin,
    .ant-spin-container {
        width: 100%;
        height: 100%;
    }

    // 画布区域
    .draw-viewer-content {
        width: 100%;
        height: 100%;
        flex-grow: 1;
        background-color: var(--ant-layout-body-bg);
        position: relative;
        overflow: hidden;

        // Konva canvas 容器
        >div {
            width: 100% !important;
            height: 100% !important;

            canvas {
                display: block;
            }
        }
    }
}

.draw-viewer:hover {
    .draw-viewer-toolbar {
        display: block;
    }
}