defaultNodeValidatorBuilder top-level property

NodeValidatorBuilder defaultNodeValidatorBuilder
getter/setter pair

Implementation

NodeValidatorBuilder defaultNodeValidatorBuilder = NodeValidatorBuilder.common()
  ..allowElement(
    'meta',
    attributes: ['name', 'content'],
    uriPolicy: AllowAllUri(),
  )
  ..allowElement('style')
  ..allowElement(
    'script',
    attributes: [
      'src',
      'type',
      'defer',
      'async',
      'crossorigin',
      'integrity',
      'nomodule',
      'nonce',
      'referrerpolicy',
    ],
    uriPolicy: AllowAllUri(),
  )
  ..allowCustomElement(
    'model-viewer',
    attributes: [
      'style',

      // Loading Attributes
      'src',
      'alt',
      'poster',
      'loading',
      'reveal',
      'with-credentials',

      // Augmented Reality Attributes
      'ar',
      'ar-modes',
      'ar-scale',
      'ar-placement',
      'ios-src',
      'xr-environment',

      // Staing & Cameras Attributes
      'camera-controls',
      'disable-pan',
      'disable-tap',
      'touch-action',
      'disable-zoom',
      'orbit-sensitivity',
      'auto-rotate',
      'auto-rotate-delay',
      'rotation-per-second',
      'interaction-prompt',
      'interaction-prompt-style',
      'interaction-prompt-threshold',
      'camera-orbit',
      'camera-target',
      'field-of-view',
      'max-camera-orbit',
      'min-camera-orbit',
      'max-field-of-view',
      'min-field-of-view',
      'interpolation-decay',

      // Lighting & Env Attributes
      'skybox-image',
      'environment-image',
      'exposure',
      'shadow-intensity',
      'shadow-softness ',

      // Animation Attributes
      'animation-name',
      'animation-crossfade-duration',
      'autoplay',

      // Materials & Scene Attributes
      'variant-name',
      'orientation',
      'scale',
    ],
    uriPolicy: AllowAllUri(),
  );