31d0464a60
- Scaffold: package.json, tsconfig.json, vite.config.ts, index.html - src/lib/imageProcessor.ts: full pipeline (normalize, offset, seam repair, export, validation) - src/components/UploadPanel.tsx: drag-and-drop, file picker, clipboard paste - src/components/SettingsPanel.tsx: all controls per spec - src/components/PreviewPanel.tsx: Original / Tileable / Repeated tabs - src/components/ErrorBanner.tsx: dismissible error/warning banners - src/App.tsx: root component wiring everything together - src/index.css: dark premium glassmorphism theme w/ Inter font
25 lines
495 B
JavaScript
25 lines
495 B
JavaScript
'use strict'
|
|
|
|
let Node = require('./node')
|
|
|
|
class Declaration extends Node {
|
|
get variable() {
|
|
return this.prop.startsWith('--') || this.prop[0] === '$'
|
|
}
|
|
|
|
constructor(defaults) {
|
|
if (
|
|
defaults &&
|
|
typeof defaults.value !== 'undefined' &&
|
|
typeof defaults.value !== 'string'
|
|
) {
|
|
defaults = { ...defaults, value: String(defaults.value) }
|
|
}
|
|
super(defaults)
|
|
this.type = 'decl'
|
|
}
|
|
}
|
|
|
|
module.exports = Declaration
|
|
Declaration.default = Declaration
|