<?php

namespace MODELORA\Viewer;

if (! defined('ABSPATH')) {
    exit;
}

class Renderer
{
    public function register(): void
    {
        // Dependencies are enqueued centrally by the Assets service.
    }

    public function register_dependencies(): void
    {
        // Kept for backward compatibility with existing integrations.
    }

    public function build_attributes(array $base): array
    {
        $attributes = [
            'class' => 'modelora-model-viewer',
            'camera-controls' => 'true',
            'touch-action' => 'pan-y',
            'interaction-prompt' => 'none',
        ] + $base;

        return apply_filters('modelora_viewer_attributes', $attributes);
    }
}
