Home / File/ bindings.js — svelte Source File

bindings.js — svelte Source File

Architecture documentation for bindings.js, a javascript file in the svelte codebase. 0 imports, 3 dependents.

File javascript Compiler 3 dependents

Entity Profile

Dependency Diagram

graph LR
  6c553f65_d2c2_eadd_620c_d509d9b95f06["bindings.js"]
  73221917_bc1f_2373_ac4f_643ae861aebf["BindDirective.js"]
  73221917_bc1f_2373_ac4f_643ae861aebf --> 6c553f65_d2c2_eadd_620c_d509d9b95f06
  1cd44f0d_6c78_318f_80c2_53d2fa8ee567["BindDirective.js"]
  1cd44f0d_6c78_318f_80c2_53d2fa8ee567 --> 6c553f65_d2c2_eadd_620c_d509d9b95f06
  090475a4_80b3_421f_579a_0e67cde619eb["element.js"]
  090475a4_80b3_421f_579a_0e67cde619eb --> 6c553f65_d2c2_eadd_620c_d509d9b95f06
  style 6c553f65_d2c2_eadd_620c_d509d9b95f06 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * @typedef BindingProperty
 * @property {string} [event] This is set if the binding corresponds to the property name on the dom element it's bound to
 * 							  and there's an event that notifies of a change to that property
 * @property {boolean} [bidirectional] Set this to `true` if updates are written to the dom property
 * @property {boolean} [omit_in_ssr] Set this to true if the binding should not be included in SSR
 * @property {string[]} [valid_elements] If this is set, the binding is only valid on the given elements
 * @property {string[]} [invalid_elements] If this is set, the binding is invalid on the given elements
 */

/**
 * @type {Record<string, BindingProperty>}
 */
export const binding_properties = {
	// media
	currentTime: {
		valid_elements: ['audio', 'video'],
		omit_in_ssr: true,
		bidirectional: true
	},
	duration: {
		valid_elements: ['audio', 'video'],
		event: 'durationchange',
		omit_in_ssr: true
	},
	focused: {},
	paused: {
		valid_elements: ['audio', 'video'],
		omit_in_ssr: true,
		bidirectional: true
	},
	buffered: {
		valid_elements: ['audio', 'video'],
		omit_in_ssr: true
	},
	seekable: {
		valid_elements: ['audio', 'video'],
		omit_in_ssr: true
	},
	played: {
		valid_elements: ['audio', 'video'],
		omit_in_ssr: true
	},
	volume: {
		valid_elements: ['audio', 'video'],
		omit_in_ssr: true,
		bidirectional: true
	},
	muted: {
		valid_elements: ['audio', 'video'],
		omit_in_ssr: true,
		bidirectional: true
	},
	playbackRate: {
		valid_elements: ['audio', 'video'],
		omit_in_ssr: true,
		bidirectional: true
	},
	seeking: {
		valid_elements: ['audio', 'video'],
// ... (168 more lines)

Domain

Frequently Asked Questions

What does bindings.js do?
bindings.js is a source file in the svelte codebase, written in javascript. It belongs to the Compiler domain.
What files import bindings.js?
bindings.js is imported by 3 file(s): BindDirective.js, BindDirective.js, element.js.
Where is bindings.js in the architecture?
bindings.js is located at packages/svelte/src/compiler/phases/bindings.js (domain: Compiler, directory: packages/svelte/src/compiler/phases).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free