Compare commits

..

4 commits

Author SHA1 Message Date
themancalledjakob
15b2b9543b no relative imports... well.. whatever 2024-04-13 18:05:02 +02:00
themancalledjakob
5c6be0f49d deleted vim temp files 2024-04-13 18:04:22 +02:00
themancalledjakob
c60e63f5be mostly cleanup 2024-04-13 09:42:45 +02:00
themancalledjakob
8955df7ddb mostly cleanup 2024-04-13 09:41:37 +02:00
3 changed files with 17 additions and 28 deletions

View file

@ -2,21 +2,21 @@ const path = require('path')
module.exports = {
rules: {
'no-relative-imports': [
'warn',
{
aliases: [
{name: '@theatre/core', path: path.resolve(__dirname, './core/src')},
{
name: '@theatre/shared',
path: path.resolve(__dirname, './shared/src'),
},
{
name: '@theatre/studio',
path: path.resolve(__dirname, './studio/src'),
},
],
},
],
//'no-relative-imports': [
//'warn',
//{
//aliases: [
//{name: '@theatre/core', path: path.resolve(__dirname, './core/src')},
//{
//name: '@theatre/shared',
//path: path.resolve(__dirname, './shared/src'),
//},
//{
//name: '@theatre/studio',
//path: path.resolve(__dirname, './studio/src'),
//},
//],
//},
//],
},
}

View file

@ -558,7 +558,6 @@ export default class TheatreStudio implements IStudio {
propAddress,
propConfig,
)
console.log('inner setPropAsSequenced', performance.now())
})
},
__experimental_setPropAsStatic<V>(prop: Pointer<V>): void {
@ -693,7 +692,6 @@ export default class TheatreStudio implements IStudio {
if (propConfig === undefined) {
throw new Error('propConfig is undefined. so, yeah.')
}
console.log({propConfig, propAddress})
stateEditors.coreByProject.historic.sheetsById.sequence.setPrimitivePropAsSequenced(
propAddress,
propConfig,
@ -842,7 +840,6 @@ export default class TheatreStudio implements IStudio {
root.template.staticConfig,
path,
) as PropTypeConfig
console.log(path, propConfig)
const addStaticOrKeyframeProp = <T>(value: T, path: PathToProp) => {
const propAddress = {...root.address, pathToProp: path}
@ -865,12 +862,6 @@ export default class TheatreStudio implements IStudio {
keyframes,
},
)
console.log({
a: {...root.address},
objectKey,
trackId,
keyframes,
})
} else if (propConfig !== undefined) {
throw Error('hmmm')
}
@ -880,13 +871,11 @@ export default class TheatreStudio implements IStudio {
forEachPropDeep(
defaultValue,
(v, pathToProp) => {
console.log('comp compoumnD')
addStaticOrKeyframeProp(v, pathToProp)
},
getPointerParts(prop).path,
)
} else {
console.log('singlerer', {defaultValue, path})
addStaticOrKeyframeProp(defaultValue, path)
}
} else {

View file

@ -1052,7 +1052,7 @@ namespace stateEditors {
if (!track) return
if (p.keyframes.length < 1)
throw new Error(
'holy shit, you are trying to add non-existing keyframes',
'holy shit, we are trying to add non-existing keyframes',
)
//const {keyframes} = track
if (!override)