MCPcopy Index your code
hub / github.com/adaptlearning/adapt_framework / applyScreenSizeDefaults

Method applyScreenSizeDefaults

grunt/helpers/Framework.js:190–204  ·  view source on GitHub ↗

@returns {Framework}

({
    includedFilter = this.includedFilter,
    useOutputData = this.useOutputData,
    schemas = this.getSchemas({
      includedFilter
    }),
    data = this.getData(useOutputData)
  } = {})

Source from the content-addressed store, hash-verified

188
189 /** @returns {Framework} */
190 applyScreenSizeDefaults({
191 includedFilter = this.includedFilter,
192 useOutputData = this.useOutputData,
193 schemas = this.getSchemas({
194 includedFilter
195 }),
196 data = this.getData(useOutputData)
197 } = {}) {
198 const configSchema = schemas.getConfigSchema();
199 const { file, item: config } = data.getConfigFileItem();
200 config.screenSize = configSchema.applyDefaults(config.screenSize, 'screenSize');
201 file.changed();
202 data.save();
203 return this;
204 }
205
206}
207

Callers 1

schema-defaults.jsFile · 0.80

Calls 7

getSchemasMethod · 0.95
getDataMethod · 0.95
getConfigSchemaMethod · 0.80
getConfigFileItemMethod · 0.80
applyDefaultsMethod · 0.80
changedMethod · 0.80
saveMethod · 0.45

Tested by

no test coverage detected