(isValid: boolean, reason: string, childSet?: string, index?: number)
| 155 | } |
| 156 | |
| 157 | setValidity(isValid: boolean, reason: string, childSet?: string, index?: number) { |
| 158 | if ( |
| 159 | this.isValid === isValid && |
| 160 | this.invalidReason === reason && |
| 161 | childSet === this.invalidChildSetID && |
| 162 | index === this.invalidChildIndex |
| 163 | ) { |
| 164 | return |
| 165 | } |
| 166 | this.isValid = isValid |
| 167 | this.invalidReason = reason |
| 168 | this.invalidChildSetID = childSet |
| 169 | this.invalidChildIndex = index |
| 170 | const mutation = new NodeMutation() |
| 171 | mutation.node = this |
| 172 | mutation.type = NodeMutationType.SET_VALIDITY |
| 173 | mutation.validity = { valid: isValid, reason: reason, childset: childSet, index: index } |
| 174 | this.fireMutation(mutation) |
| 175 | } |
| 176 | |
| 177 | selectRuntimeCaptureFrame(index: number) { |
| 178 | console.warn(`Capture frames not supported for node type ${this.type}`) |
no test coverage detected