@code-hike/smooth-code
Advanced tools
Comparing version 0.3.0-next.22 to 0.3.0-next.23
@@ -1126,5 +1126,12 @@ 'use strict'; | ||
function AfterDimensions(_a) { | ||
var _b = _a.config, _c = _b.minZoom, minZoom = _c === void 0 ? 1 : _c, _d = _b.maxZoom, maxZoom = _d === void 0 ? 1 : _d, _e = _b.horizontalCenter, horizontalCenter = _e === void 0 ? false : _e, theme = _b.theme, dimensions = _a.dimensions, stepInfo = _a.stepInfo, progress = _a.progress, htmlProps = _a.htmlProps; | ||
var _f = utils.getCodeColors(theme), bg = _f.bg, fg = _f.fg; | ||
return (React__default['default'].createElement(Wrapper, { htmlProps: htmlProps, style: { opacity: 1, backgroundColor: bg, color: fg } }, | ||
var _b; | ||
var _c = _a.config, _d = _c.minZoom, minZoom = _d === void 0 ? 1 : _d, _e = _c.maxZoom, maxZoom = _e === void 0 ? 1 : _e, _f = _c.horizontalCenter, horizontalCenter = _f === void 0 ? false : _f, theme = _c.theme, dimensions = _a.dimensions, stepInfo = _a.stepInfo, progress = _a.progress, htmlProps = _a.htmlProps; | ||
var _g = utils.getCodeColors(theme), bg = _g.bg, fg = _g.fg; | ||
return (React__default['default'].createElement(Wrapper, { htmlProps: htmlProps, style: (_b = { | ||
opacity: 1, | ||
backgroundColor: bg, | ||
color: fg | ||
}, | ||
_b["--ch-selection-background"] = utils.getColor(theme, utils.ColorName.SelectionBackground), | ||
_b) }, | ||
React__default['default'].createElement(SmoothLines, { codeStep: stepInfo, progress: progress, dimensions: dimensions, | ||
@@ -1131,0 +1138,0 @@ // TODO move to dimensions? |
@@ -1118,5 +1118,12 @@ import React from 'react'; | ||
function AfterDimensions(_a) { | ||
var _b = _a.config, _c = _b.minZoom, minZoom = _c === void 0 ? 1 : _c, _d = _b.maxZoom, maxZoom = _d === void 0 ? 1 : _d, _e = _b.horizontalCenter, horizontalCenter = _e === void 0 ? false : _e, theme = _b.theme, dimensions = _a.dimensions, stepInfo = _a.stepInfo, progress = _a.progress, htmlProps = _a.htmlProps; | ||
var _f = getCodeColors(theme), bg = _f.bg, fg = _f.fg; | ||
return (React.createElement(Wrapper, { htmlProps: htmlProps, style: { opacity: 1, backgroundColor: bg, color: fg } }, | ||
var _b; | ||
var _c = _a.config, _d = _c.minZoom, minZoom = _d === void 0 ? 1 : _d, _e = _c.maxZoom, maxZoom = _e === void 0 ? 1 : _e, _f = _c.horizontalCenter, horizontalCenter = _f === void 0 ? false : _f, theme = _c.theme, dimensions = _a.dimensions, stepInfo = _a.stepInfo, progress = _a.progress, htmlProps = _a.htmlProps; | ||
var _g = getCodeColors(theme), bg = _g.bg, fg = _g.fg; | ||
return (React.createElement(Wrapper, { htmlProps: htmlProps, style: (_b = { | ||
opacity: 1, | ||
backgroundColor: bg, | ||
color: fg | ||
}, | ||
_b["--ch-selection-background"] = getColor(theme, ColorName.SelectionBackground), | ||
_b) }, | ||
React.createElement(SmoothLines, { codeStep: stepInfo, progress: progress, dimensions: dimensions, | ||
@@ -1123,0 +1130,0 @@ // TODO move to dimensions? |
{ | ||
"name": "@code-hike/smooth-code", | ||
"version": "0.3.0-next.22", | ||
"version": "0.3.0-next.23", | ||
"main": "dist/index.cjs.js", | ||
@@ -18,3 +18,3 @@ "typings": "dist/index.d.ts", | ||
"devDependencies": { | ||
"@code-hike/script": "0.3.0-next.22", | ||
"@code-hike/script": "0.3.0-next.23", | ||
"@types/diff": "^4.0.2", | ||
@@ -28,4 +28,4 @@ "@types/jest": "^24.0.15", | ||
"dependencies": { | ||
"@code-hike/highlighter": "0.3.0-next.22", | ||
"@code-hike/utils": "0.3.0-next.22", | ||
"@code-hike/highlighter": "0.3.0-next.23", | ||
"@code-hike/utils": "0.3.0-next.23", | ||
"diff": "^4.0.2", | ||
@@ -51,3 +51,3 @@ "use-spring": "^0.2.3" | ||
}, | ||
"gitHead": "4c01ec74b88457f115f3fd8bbd3a75122fe90a2e" | ||
"gitHead": "84e96ac2e51b18452011b97878026260a7740158" | ||
} |
Sorry, the diff of this file is not supported yet
117412
2585
+ Added@code-hike/highlighter@0.3.0-next.23(transitive)
+ Added@code-hike/utils@0.3.0-next.23(transitive)
- Removed@code-hike/highlighter@0.3.0-next.22(transitive)
- Removed@code-hike/utils@0.3.0-next.22(transitive)