Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
breck7 committed Dec 16, 2024
1 parent 5cb77d6 commit afeec86
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scrollsdk",
"version": "100.1.0",
"version": "100.1.1",
"description": "This npm package includes the Particles class, the Parsers compiler-compiler, a Parsers IDE, and more, all implemented in Particles, Parsers, and TypeScript.",
"types": "./built/scrollsdk.node.d.ts",
"main": "./products/Particle.js",
Expand Down
4 changes: 2 additions & 2 deletions particle/Particle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ class Particle extends AbstractParticle {

protected _toHtmlCubeLine(indents = 0, lineIndex = 0, planeIndex = 0): particlesTypes.htmlString {
const getLine = (atomIndex: number, atom = "") =>
`<span class="htmlCubeSpan" style="top: calc(var(--topIncrement) * ${planeIndex} + var(--rowHeight) * ${lineIndex}); left:calc(var(--leftIncrement) * ${planeIndex} + var(--atomWidth) * ${atomIndex});">${atom}</span>`
`<span class="htmlCubeSpan" style="top: calc(var(--topIncrement) * ${planeIndex} + var(--rowHeight) * ${lineIndex}); left:calc(var(--leftIncrement) * ${planeIndex} + var(--atomWidth) * ${atomIndex});">${atom.replace(/</g, "&lt;")}</span>`
let atoms: string[] = []
this.atoms.forEach((atom, index) => (atom ? atoms.push(getLine(index + indents, atom)) : ""))
return atoms.join("")
Expand Down Expand Up @@ -3109,7 +3109,7 @@ class Particle extends AbstractParticle {
return str ? indent + str.replace(/\n/g, indent) : ""
}

static getVersion = () => "100.1.0"
static getVersion = () => "100.1.1"

static fromDisk(path: string): Particle {
const format = this._getFileFormat(path)
Expand Down
7 changes: 5 additions & 2 deletions products/Particle.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,10 @@ class Particle extends AbstractParticle {
}
_toHtmlCubeLine(indents = 0, lineIndex = 0, planeIndex = 0) {
const getLine = (atomIndex, atom = "") =>
`<span class="htmlCubeSpan" style="top: calc(var(--topIncrement) * ${planeIndex} + var(--rowHeight) * ${lineIndex}); left:calc(var(--leftIncrement) * ${planeIndex} + var(--atomWidth) * ${atomIndex});">${atom}</span>`
`<span class="htmlCubeSpan" style="top: calc(var(--topIncrement) * ${planeIndex} + var(--rowHeight) * ${lineIndex}); left:calc(var(--leftIncrement) * ${planeIndex} + var(--atomWidth) * ${atomIndex});">${atom.replace(
/</g,
"&lt;"
)}</span>`
let atoms = []
this.atoms.forEach((atom, index) => (atom ? atoms.push(getLine(index + indents, atom)) : ""))
return atoms.join("")
Expand Down Expand Up @@ -2610,7 +2613,7 @@ Particle.iris = `sepal_length,sepal_width,petal_length,petal_width,species
4.9,2.5,4.5,1.7,virginica
5.1,3.5,1.4,0.2,setosa
5,3.4,1.5,0.2,setosa`
Particle.getVersion = () => "100.1.0"
Particle.getVersion = () => "100.1.1"
class AbstractExtendibleParticle extends Particle {
_getFromExtended(cuePath) {
const hit = this._getParticleFromExtended(cuePath)
Expand Down
7 changes: 5 additions & 2 deletions products/Particle.js
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,10 @@ class Particle extends AbstractParticle {
}
_toHtmlCubeLine(indents = 0, lineIndex = 0, planeIndex = 0) {
const getLine = (atomIndex, atom = "") =>
`<span class="htmlCubeSpan" style="top: calc(var(--topIncrement) * ${planeIndex} + var(--rowHeight) * ${lineIndex}); left:calc(var(--leftIncrement) * ${planeIndex} + var(--atomWidth) * ${atomIndex});">${atom}</span>`
`<span class="htmlCubeSpan" style="top: calc(var(--topIncrement) * ${planeIndex} + var(--rowHeight) * ${lineIndex}); left:calc(var(--leftIncrement) * ${planeIndex} + var(--atomWidth) * ${atomIndex});">${atom.replace(
/</g,
"&lt;"
)}</span>`
let atoms = []
this.atoms.forEach((atom, index) => (atom ? atoms.push(getLine(index + indents, atom)) : ""))
return atoms.join("")
Expand Down Expand Up @@ -2600,7 +2603,7 @@ Particle.iris = `sepal_length,sepal_width,petal_length,petal_width,species
4.9,2.5,4.5,1.7,virginica
5.1,3.5,1.4,0.2,setosa
5,3.4,1.5,0.2,setosa`
Particle.getVersion = () => "100.1.0"
Particle.getVersion = () => "100.1.1"
class AbstractExtendibleParticle extends Particle {
_getFromExtended(cuePath) {
const hit = this._getParticleFromExtended(cuePath)
Expand Down
3 changes: 3 additions & 0 deletions releaseNotes.scroll
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ node_modules/scroll-cli/microlangs/changes.parsers

thinColumns 4

πŸ“¦ 100.1.1 2024-12-16
πŸ₯ escape left bracket in htmlCube

πŸ“¦ 100.1.0 2024-12-16
πŸŽ‰ add `asSExpression` getter

Expand Down

0 comments on commit afeec86

Please sign in to comment.