Skip to content

Commit

Permalink
git reset --hard origin/master
Browse files Browse the repository at this point in the history
  • Loading branch information
samaneh-kazemi committed Nov 12, 2024
1 parent e82b3d9 commit aabe22a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
24 changes: 13 additions & 11 deletions packages/model-viewer/src/extra-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,22 @@
* limitations under the License.
*/

import { html, ReactiveElement } from 'lit';
import { property } from 'lit/decorators.js';
import { Model } from './features/scene-graph/model.js';
import {html, ReactiveElement} from 'lit';
import {property} from 'lit/decorators.js';

import {Model} from './features/scene-graph/model.js';
import ModelViewerElementBase from './model-viewer-base.js';


/**
* Definition for a basic <extra-model> element.
*/
// @customElement('extra-model')
export class ExtraModelElement extends ReactiveElement {
@property({ type: String }) src: string | null = null;
@property({ type: Boolean }) loaded: boolean | null = null;
@property({ type: Model }) model: Object | null = null;
@property({ type: Array }) availableVariants: string[] | null = null;
@property({type: String}) src: string|null = null;
@property({type: Boolean}) loaded: boolean|null = null;
@property({type: Model}) model: Object|null = null;
@property({type: Array}) availableVariants: string[]|null = null;

render() {
console.log('extra model render')
Expand All @@ -37,14 +39,14 @@ export class ExtraModelElement extends ReactiveElement {
console.log('extra model constructor')
}

updated(changedProperties: Map<string | number | symbol, any>) {
updated(changedProperties: Map<string|number|symbol, any>) {
super.updated(changedProperties);
console.log("updated is called");
console.log('updated is called');
if (changedProperties.has('src')) {
console.log("src has changed");
console.log('src has changed');
}
if (changedProperties.has('availableVariants')) {
console.log("availableVariants has changed");
console.log('availableVariants has changed');
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/model-viewer/src/test/extra-model-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/

import {expect} from '@esm-bundle/chai';
import {expect} from 'chai';

import {ExtraModelElement} from '../extra-model.js';
import {ModelViewerElement} from '../model-viewer.js';
Expand Down

0 comments on commit aabe22a

Please sign in to comment.