fix validate path call (warning) & playground dom: Fix namespace warning
This commit is contained in:
parent
efc33d4989
commit
63056c5a58
2 changed files with 2 additions and 4 deletions
|
@ -7,8 +7,6 @@ import {onChange, types} from '@theatre/core'
|
||||||
import type {IScrub, IStudio} from '@theatre/studio'
|
import type {IScrub, IStudio} from '@theatre/studio'
|
||||||
import type {ShorthandCompoundPropsToInitialValue} from '@theatre/core/propTypes/internals'
|
import type {ShorthandCompoundPropsToInitialValue} from '@theatre/core/propTypes/internals'
|
||||||
|
|
||||||
studio.initialize({usePersistentStorage: false})
|
|
||||||
|
|
||||||
const textInterpolate = (left: string, right: string, progression: number) => {
|
const textInterpolate = (left: string, right: string, progression: number) => {
|
||||||
if (!left || right.startsWith(left)) {
|
if (!left || right.startsWith(left)) {
|
||||||
const length = Math.floor(
|
const length = Math.floor(
|
||||||
|
@ -223,7 +221,7 @@ export const Scene: React.FC<{project: IProject}> = ({project}) => {
|
||||||
{boxes.map((id) => (
|
{boxes.map((id) => (
|
||||||
<Box
|
<Box
|
||||||
key={'box' + id}
|
key={'box' + id}
|
||||||
id={`Boxes/${id}`}
|
id={`Box / ${id}`}
|
||||||
sheet={sheet}
|
sheet={sheet}
|
||||||
selection={selection ?? []}
|
selection={selection ?? []}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -99,7 +99,7 @@ export default class TheatreSheet implements ISheet {
|
||||||
const internal = privateAPI(this)
|
const internal = privateAPI(this)
|
||||||
const sanitizedPath = validateAndSanitiseSlashedPathOrThrow(
|
const sanitizedPath = validateAndSanitiseSlashedPathOrThrow(
|
||||||
key,
|
key,
|
||||||
`sheet.object("${key}", ...)`,
|
`sheet.object`,
|
||||||
)
|
)
|
||||||
|
|
||||||
const existingObject = internal.getObject(sanitizedPath as ObjectAddressKey)
|
const existingObject = internal.getObject(sanitizedPath as ObjectAddressKey)
|
||||||
|
|
Loading…
Reference in a new issue